开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜