无法在表中插入标识列的显式值 - 代码优先使用EF生成的DB [英] Cannot insert explicit value for identity column in table - code-first with EF generated DB

查看:72
本文介绍了无法在表中插入标识列的显式值 - 代码优先使用EF生成的DB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


抱歉,最初发布在"发布"中论坛,我不知道预先发布的那些......

解决方案

我刚尝试重现这个和我我没有收到这个错误。


你实际插入实体的代码是什么样的,你使用的是什么版本的CTP / VS2010?


[)amien


Sorry, posted this originally in the "release" forum, I didn't know the pre-release ones existed...

解决方案

I've just tried to reproduce this and I'm not getting that error.

What does your code to actually insert the entity look like and what version of the CTP/VS2010 are you using?

[)amien


这篇关于无法在表中插入标识列的显式值 - 代码优先使用EF生成的DB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆