ADO.NET Entity Framework vs NHibernate

前端 未结 7 1455
不知归路
不知归路 2020-12-05 09:31

So the ADO.NET Entity Framework has gotten a little bit of bad press (in the form of blog entries and a petition) but I don\'t want to rush to judgement. I\'m limited in tim

7条回答
  •  萌比男神i
    2020-12-05 10:29

    NHibernate may be more mature. That does not necessarily mean it is a "better" solution. Having used it at my job for some time, I would personally prefer to use almost anything than NHibernate (even straight SQL, if migration were remotely feasible). The number of error messages thrown by NHibernate that don't mean anything (or that do mean something but should never occur) is absolutely staggering, as are some of its default behaviours (such as flushing the session once for each object returned in a Find).

    Personally, when I have a choice, I use LINQ to SQL for all database work.

提交回复
热议问题