How to make Entity Framework 2 and NHibernate infrastructure?

I would like to know things like:

  • Advantages / disadvantages between the two?
  • Similarities / differences between the two structures?
  • How are they similar / different in architecture?
  • How many templates are required to use each?
  • Can Entity Framework be used effectively outside of Visual Studio compared to NHibernate? Is Entity Framework more efficient than NHibernate when used with Visual Studio?

Note. This question relates to Entity Framework 2 (currently still under development).

+3
source share
1 answer

: , Entity Framework. , .

:

Entity Framework (EF) , . , , , .

NHibernate (NH) - , , , , MyGeneration of CodeSmith, , Fluent NHibernate.

:

EF, , . , , EF , , , .

NHibernate, , gen. , .

:

EF , . NHibernate . , "", .

LINQ:

EF whacky LINQ v1 NH 1.0 LINQ to NH, .

:

EF , , , . , POCO EF, , POCO - NHibernate. POCO EF , , , POCO/DDD, - EF.

NHibernate POCO, DDD, 2.1, , Hibernate Java. NHibernate, , DDD/POCO/ALT.NET .

Lazy Loading:

EF . NHibernate .

:

, , . EF , Visual Studio , , . , EF , .

NHibernate , . , LINQ to NH 1.0, , NH, Fluent NHibernate , . .

+8

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


All Articles