Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When choosing an ORM, is LINQ to SQL or LINQ to Entities better than NHibernate?

I find I can do more with NHibernate, and even Castle than with the Linq to Entities, or linq to SQL.

Am I crazy?

like image 657
mrbradleyt Avatar asked Sep 16 '08 13:09

mrbradleyt


2 Answers

No you're not crazy. nHibernate is a full OR Mapper, Linq to SQL and Linq to Entities don't implement everything you'd expect from an OR mapper and targeted at a slightly different group of developers.

But don't let that put you off linq though. Linq is still a pretty good idea.. Try Linq to nHibernate :-)

like image 200
Mendelt Avatar answered Nov 03 '22 00:11

Mendelt


The big drawbacks to NHibernate, Castle, etc., is that they're not exactly light-weight (especially NHibernate.)

Linq to SQL is good for a light-weight, limited use ORM.

like image 27
Ian P Avatar answered Nov 03 '22 00:11

Ian P