阅读背景:

ASP。附加一个“MODELNAME”类型的实体失败,因为另一个相同类型的实体已经具有相同的主键值

来源:互联网 

In a nutshell the exception is thrown during POSTing wrapper model and changing the state of one entry to 'Modified'. Before changing the state, the state is set to 'Detached' but calling Attach() does throw the same error. I'm using EF6.In a nutshell the exception is thrown during PO




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: