Entity Framework 4.1 DatabaseGeneratedOption.Identity Performance

后端 未结 2 1263
盖世英雄少女心
盖世英雄少女心 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:06

    I decided to go the "generate my own key" way as a workaround. I added the required features for key generation to my DBContext class.

    If Microsoft change something on this behavior, I switch back to auto generation.

提交回复
热议问题