Thursday, June 08, 2006 9:37 AM
Why the name dohickey?
I accidentally found this word in Dictionary.com while looking a nice synonym of the word
"object". And since I am someone unpopular
or "not known" in the IT Industry so I decided to name my framework "dohickey"!
What is Dohickey Persistence Framework?
It's an O/R mapper that I made to help me with my personal/freelance projects (which
is currently in beta 2). FYI I made
this not for the intention of competing with other people.
Now some sample code:
DataManager
manager = DataManager.CreateManager("mapping
file", "connection string",
ProviderType.MsSql2K5);
ApplicantEntity
applicant;
// Insert an object
applicant
= new ApplicantEntity();
applicant.FirstName
= "Chris";
applicant.LastName
= "Ongsuco";
manager.Save(applicant);
// Update an object by primary key
applicant
= new ApplicantEntity();
applicant.FirstName
= "Chris Adrian";
applicant.LastName
= "Ongsuco";
manager.Save(applicant,
100);
// Delete an object by primary key
manager.Delete<ApplicantEntity>(125);
// Retrieve a single object by primary key
applicant
= manager.GetEntity<ApplicantEntity>(200);
// Retrieve a collection of objects
EntityList<ApplicantEntity> applicants = manager.GetEntityList<ApplicantEntity>(new
DynamicQuery());
Well that’s about it for now.