What problem does NHibernate solve?

I saw some tasks requiring nhibernate knowledge, as well as numerous stack questions. I found another question that pointed me to Summer of NHibernate , and now I'm watching a video. However, it does not explain why NHibernate was created and what problem is being solved. If you look at Wikipedia, I vaguely see what it does, but it seems to me that .NET already has an entity infrastructure that seems to do the same.

Can someone explain why nhibernate exists?

+4
source share
3 answers

This solves several problems related to object-relational impedance mismatch, provides a unit of work, allows a measure of database independence, and also facilitates the Driven Design domain, facilitating persistence of ignorance and providing the ability to generate your database schema as the domain develops.

Thus, it is a beast of the program in scope and width and requires knowledge of the above words! This is actually a bit more, so Summer of NHib is 13 weird TV shows we recommend going through. The NHib book in action is also very good.

Most importantly, give yourself a break and allow yourself up to six weeks to take it all.

NTN
Berryl

+1
source

NHibernate has its roots in the Java Hibernate framework. According to Wikipedia, NHibernate was first released in 2005, a few years before the Entity Framework , which was released in 2008.

From what I heard, NHibernate is the more mature and flexible of the two, but I have not used it myself. Entity Framework can be seen as Microsoft (but unsuccessfully) trying to suppress NHibernate.

+2
source

NHibernate protects you from having to interact with database interactions and processes database details for you. This leads to the fact that you can spend less time creating infrastructure code and pay more attention to the interesting parts of your project.

+1
source

Source: https://habr.com/ru/post/1308605/


All Articles