Micro ORM Data Mapping with PetaPoco and ASP.NET MVC 4

added by Arroyocode
3/6/2012 2:00:50 PM

4 Kicks, 557 Views

Wrap your database objects with PetaPoco, a micro ORM for use with non-dynamic POCO objects in your ASP.NET MVC application. Tiny, fast and easily run on .NET 3.5 or greater without the overhead of more mainstream ORMs.


2 comments

dpeterson
3/6/2012 1:58:03 PM
At first glance, I liked a lot of things about PetaPoco more than massive or some of the other micro-ORMs. One feature that kept me from adopting it was a lack of foreign-key support, but it looks like they added that last year.

Arroyocode
3/6/2012 2:41:59 PM
Indeed. Using POCO decorations saves a ton of time and keeps things nice and tidy. The post was originally using Massive, but later transitioned to PetaPoco for non-dynamic need. Absolutely love the control over wrapping and have/will continue to use MicroORMs for projects over EF in most cases. I can do without the VS model browser, auto-generated EF metadata in favor of performance.