Entity attachment issues in LINQ

后端 未结 3 1907
执念已碎
执念已碎 2020-12-10 11:38

I am trying to attach a LINQ entity to the data context after I receive it from a form POST. However, all I get is the following exception:

An entity can onl         


        
3条回答
  •  暖寄归人
    2020-12-10 12:16

    I solved by setting UpdateCheck=Never to my property in .Dbml file and context.entity.Attach(entity, true);

提交回复
热议问题