SqlBulkCopy Multiple Tables Insert under single Transaction OR Bulk Insert Operation between Entity Framework and Classic Ado.net

前端 未结 2 609
借酒劲吻你
借酒劲吻你 2021-02-19 06:55

I have two tables which need to be inserted when my application run.
Let\'s say that I have tables as followed

  • tbl_FirstTable and tbl_SecondTable
<
2条回答
  •  梦如初夏
    2021-02-19 06:57

    Have you tried setting AutoDetectChangesEnabled = false in the Context.Configuration before all the inserts?

提交回复
热议问题