Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a Website From Scratch With MVC, Which ORM is Better, EF or NHibernate? [closed]

I want to create a website, with many users and obviously with a big amount of database, and I do not have experience in either EF or NHibernate, what is recommended one for me?

like image 491
Akbar Avatar asked Jun 06 '11 06:06

Akbar


People also ask

Which is better MVC or entity framework?

MVC is framework mainly concentrates on how you deliver a webpage from server to client. Entity framework is an object relational mapper which helps you to abstract different types of databases (MSSQL,MySQL etc) and helps querying objects instead of having sql strings in our project.

What is the difference between nHibernate and Entity Framework?

nHibernate supports all types of databases but Entity framework need additional connectors to support databases other than MSSQL. nHibernate can be extended in terms of data loading, SQL generation, custom column types, custom collections etc but entity framework has limited extension points.

Is it good to use Entity Framework?

Entity Framework is the best way to develop database applications. I used to develop my applications using LINQ to SQL but since Microsoft is not going to support it in future, it recommends to use Entity Framework. By the way, Entity Framework 4 in . NET 4 has much better performance than previous versions.

Which of the ORM support in net?

NHibernate and Entity Framework both are equally capable Object Relation Mapping (ORM) and suitable for all types of ASP.NET software applications.


2 Answers

EF is very well integrated with .NET and Visual Studio. Gives you a very good designer inside Visual Studio, and leverage LINQ to write queries that are very easy to read.

For me, this is a no-brainer. I would go with EF4 without a doubt.

like image 168
Øyvind Bråthen Avatar answered Sep 29 '22 20:09

Øyvind Bråthen


If you are doing first time I would recommend you to go with EF because its easy to paly with it no more configuration and hidden properties....no need to apply any extra efforts just add the object and your task is done.

but if you are looking better performance go for NHibernate.

like image 41
Pranay Rana Avatar answered Sep 29 '22 18:09

Pranay Rana