错误异常:

 

Unable to update the EntitySet 'XXX' because it has a DefiningQuery and no <InsertFunction> 

element exists in the <ModificationFunctionMapping> element to support the current operation.

 

解决方案

在使用AdO.NET Entity Framework的时候,你可能会遇到这个问题,这个问题就是告诉你,你使用的“XXX”这张表在数据库没有定义主键,

只要设置了主键,就不会出现这个异常或这个错误了。

 

相关文章:

  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2021-05-29
猜你喜欢
  • 2021-08-31
  • 2021-09-07
  • 2021-10-12
  • 2021-11-24
  • 2022-01-19
相关资源
相似解决方案