Reputation: 53223
I am not very familiar with both LINQ to SQL and NHibernate.
As far as I understand LINQ to SQL is a kind of replacement of NHIbernate for .Net in many ways.
So does this mean that LINQ to SQL is a built-in replacament of NHibernate which let's a .Net developer to skip NHibernate and start to work with LINQ to SQL?
Thanks
Upvotes: 1
Views: 166
Reputation: 9611
They do not compare. LINQ to SQL is not an ORM. However, I believe NHibernate to be the best ORM out there, far outweighing Microsoft's Entity Framework.
Upvotes: 0
Reputation: 52725
NHibernate is much more mature and powerful that either Linq2Sql or EF. In any case, it's useful to know both NH and EF.
Upvotes: 3
Reputation: 3856
NHibernate is definitely a great alternative. At the moment, it's still the most powerful ORM in .NET field.
Personally, I'd prefer Entity Framework. It's not yet as powerful as NHibernate but it's Microsoft's tailor made ORM which provides best integration with other MS tools. (E.g. next version of Reporting Services will support EF models.)
Upvotes: 0
Reputation: 2741
ummmmmmmmmmmm, they are quite different.
Linq to sql is just a translator from linq to sql, it has not any context, cache and all the nhibernate stuff.
nhibernate compares better to entity framework.
but linq to sql is very light, stackoverflow uses it :).
Upvotes: 0
Reputation: 102468
Instead of using the word "replacement" use the word "alternative".
So yes, it is an alternative to NHibernate, however, as with most things, it is worth looking at all of the features of both when deciding which route you wish to take.
Upvotes: 0
Reputation: 115701
This is highly controversial, but I've yet to see an ORM tool which can compete with NHibernate. Granted, LINQ to SQL has strong points -- major one being actual LINQ -- and it's perfectly fine for some purposes, it just is not as flexible and powerful.
Upvotes: 1