Batching DB commands in Entity Framework 4.0

后端 未结 5 985
野趣味
野趣味 2020-11-28 13:51

My current project requires everyday synchronization with external system. The synchronization is based on complex import file structure which is parsed and processed with e

5条回答
  •  遥遥无期
    2020-11-28 14:18

    There are some workarounds in SQL Server:

    • Batch Inserts are described in the Entity Framework Bulk Copy article

    • Batch Updates (and Deletes) are described in the Multiple entity updates with Entity Framework – EF Fetch Updates article.

    In case you are interested in Oracle, MySQL, POstgreSQL, or SQLite, you can use the latest Devart dotConnect providers. The BatchUpdates functionality is already integrated in the SaveChanges method in the latest versions of these providers.

提交回复
热议问题