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

前端 未结 2 1628
伪装坚强ぢ
伪装坚强ぢ 2021-01-15 16:52

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

相关标签:
2条回答
  • 2021-01-15 17:21

    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
    0 讨论(0)
  • 2021-01-15 17:23

    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 讨论(0)
提交回复
热议问题