What ORM should I use for a ASP.Net MVC project?

前端 未结 9 2113
清酒与你
清酒与你 2021-02-06 09:23

I am starting a new ASP.Net MVC project and was wondering what is the best Model approach to take.

Most demos recommend LinqToSQL but I know Microsoft are not really en

9条回答
  •  一向
    一向 (楼主)
    2021-02-06 10:14

    I use linq2sql and I think it works absolutely great if you use MSSQL as your database (it works on other databases too, but it requires some 3rd party tools). Yes, Microsoft has 'discontinued' its development, but it is mature enough for the average project. I doubt you will run into any walls. If you're starting a big project that you need to support for years to come, then the Entity Framework might be more suitable.

    I personally haven't used NHibernate and Subsonic before, but like Craig says, the learning curve of NHibernate is a bit more steep, though it is supposed to be a great framework (everything from what I heard or read).

提交回复
热议问题