I am new to ASP.NET mvc. Is there a good alternative for entity framework in for MVC?
Asked
Active
Viewed 2,388 times
0
-
3Alternative that does what exactly? – Oded Dec 25 '11 at 15:43
-
ASP.NET MVC doesn't care about which ORM you choose, or if you do choose an ORM or do Micro ORMS, or plain old DataSets, hence I think this is a possible duplicate of [.net ORM Comparison](http://stackoverflow.com/questions/5101974/net-orm-comparison) – flq Dec 25 '11 at 15:48
-
.NET ORMs: http://stackoverflow.com/questions/1377236/nhibernate-entity-framework-active-records-or-linq2sql/ – Michael Maddox Dec 26 '11 at 11:35
1 Answers
4
You can use any ORM you want with MVC.
A popular choice is nHibernate, though there are many many more.
Other popular alternatives (some commercial) are:
StackOverflow uses their own in-house (now open sourced), micro-ORM, Dapper.

Oded
- 489,969
- 99
- 883
- 1,009
-
-
I am converting my website from asp.net to mvc. should i use an ORM at all, or should i just work directly with the DB? – uriz Dec 25 '11 at 16:08
-
@user563823 - Only you can answer that. ORMs are an abstraction over databases, whether you need one or not is your decision. – Oded Dec 25 '11 at 16:25
-
on the one hand, i like to have full control over my DB and on the other hand, I don't want to duplicate the data scheme and maintain data consistency between the DB and the model. How can i combine them – uriz Dec 25 '11 at 16:37