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

和自甴很熟 提交于 2019-12-01 07:28:56

问题


I want to select one of the above orm. What is the difference between nhibernate and entity framework in batching?


回答1:


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



回答2:


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).



来源:https://stackoverflow.com/questions/6086739/what-is-the-difference-between-nhibernate-and-entity-framework-in-batching

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!