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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit MohantyPosted Jul 5, 2022, 6:02 AM
Sachin SinghPosted Jul 5, 2022, 5:51 AM
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.