NHibernate vs. Entity Framework: Usage
Join the DZone community and get the full member experience.Join For Free
this is in a response to a question on twitter:
in general, for applications, i would always use nhibernate. mostly because i am able to do so much more with it.
for one off utilities and such, where i just need to get the data and i don’t really care how, i would generally just use the ef wizard to generate a model and do something with it. mostly, it is so i can get the code gen stuff asap and have the data working.
for example, the routine to import the data from the subtext database to the racconblog database is using entity framework. mostly because it is easier and it is a one time thing.
i guess that if i was running any of the tools for generating nhibernate model from the database, i would be using it, but honestly, it just doesn’t really matter at that point. i just don’t care for those sort of tools.
Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.