Entity Framework 4.1 DatabaseGeneratedOption.Identity Performance

后端 未结 2 1290
盖世英雄少女心
盖世英雄少女心 2021-01-17 05:38

I currently working on a application that use Entity Framework 4.1 (code first) and SQL Server CE 4.0. One of the new things I really like from SQL Server CE 4.0 are the com

2条回答
  •  情深已故
    2021-01-17 06:02

    Keep an ObjectContext / connection open for the liftime of your app. EF is not ideal for bulk inserts, use SqlCeResultSet for that for max perf.

提交回复
热议问题