开发者

How to overcome the the problem with Identity Fields and the Entity Framework for SQLServerCompact 3.5SP2?

开发者 https://www.devze.com 2023-03-14 06:20 出处:网络
This question should be easily found on the net, but I failed: I开发者_运维技巧 have an \"ID\" field on my SQLServerCompact 3.5 databasetable that has its Identity property set to True. When I manual

This question should be easily found on the net, but I failed:

I开发者_运维技巧 have an "ID" field on my SQLServerCompact 3.5 databasetable that has its Identity property set to True. When I manually insert values the ID column is incremented automatically. However, when I try to add records through the Entity Framework, I get an error message stating that "Server side generation of values is not supported".

How do I solve this (apart from upgrading to SQLServerCompact 4.0)?

0

精彩评论

暂无评论...
验证码 换一张
取 消