在使用SQLite Entity Framework操作数据删除的时候出现了如下异常

An error occurred while updating the entries. See the inner exception for details.

inner exception的内容是:Unable to update the EntitySet 'Relationship' because it has a DefiningQuery and no element exists in the element to support the current operation."}

这是由于数据库中没有为表添加主键,只需要添加主键就能修正这个问题。

相关文章:

  • 2021-12-10
  • 2021-07-22
  • 2021-08-01
  • 2021-10-13
  • 2021-09-13
  • 2021-10-31
  • 2022-12-23
猜你喜欢
  • 2022-02-25
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-12-03
相关资源
相似解决方案