Hello everyone please let me know what is different in
NHibernate vs Entity framework and which one is fast.
Hello everyone please let me know what is different in
NHibernate vs Entity framework and which one is fast.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Jul 5, 2022, 1:51 AM EDT
nHibernate supports all types of databases but Entity framework need additional connectors to support databases other than MSSQL
For example if you want to use EF with MySql then you will have to install MySQL Connector/NET connector.
nHibernate can be extended in terms of data loading, SQL generation, custom column types, custom collections etc but entity framework has limited extension points.
In short nHibernate is better.
But if you are using MSSql server and .NET then you must be already familiar with EF/EF Core, so stick to it.
At the end Both are ORMs and ORMs will always have some limitations.
If you write many stored procedures then Don't use any major ORM (EF/nhibernate), use Micro-ORM like Dapper instead.
Amit MohantyRank #112 · 20K reputationPosted Jul 5, 2022, 2:02 AM EDT