PetaPoco - NuGet Package
Monday, 21 March 2011
Any .NET library worth it's while these days should come as a NuGet package - so PetaPoco is now up there and ready to use. See Here.
This post is about PetaPoco - "a tiny ORMish thing for your POCOs". Read more on the PetaPoco Project Page.
If you're not familiar with NuGet, you really should be - read this.
Now, getting your DB wired up with PetaPoco couldn't be easier:
- Install the "PetaPoco" NuGet package.
- Make sure you've got the correct a connection string for your database in your web.config or app.config.
- Update the newly added Records.tt file to use that connection string.
- Save Records.tt to generate classes for to represent all your database's tables.
Start coding. See here for more.
Leave a comment