开发者

What is the difference between nhibernate and entity framework in batching?

开发者 https://www.devze.com 2023-03-07 08:06 出处:网络
I want to select one of the above orm. What is the difference between nhibernate and开发者_JAVA百科 entity framework in batching?NHibernate can:

I want to select one of the above orm. What is the difference between nhibernate and开发者_JAVA百科 entity framework in batching?


NHibernate can:

  • Send multiple updates/inserts/deletes at once
  • Load multiple proxies of a type at once
  • Load multiple collections of a type at once
  • Execute object oriented DML statements
  • Manually group queries in a single roundtrip (multiqueries, futures)

EF can:

  • None of the above


The difference is that EF natively doesn't have any command batching so every update, insert or delete is executed in separate round trip to the database - but in my previous question are some links to workarounds. EF also doesn't have any alternative to NHibernate future queries (way to batch multiple queries to single database round trip).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号