Explicit construction of entity type [MyClass] in query is not allowed

前端 未结 2 1433
盖世英雄少女心
盖世英雄少女心 2020-12-03 15:54

Like the title says, I have the following exception:

Description: Event code: 3005 Event message: An unhandled exception has occurred. Excepti

2条回答
  •  情话喂你
    2020-12-03 16:27

    It will work if you don't have PrimaryKey set on any columns in your Friends class. That way changes won't be tracked for that class anymore, but your code will work.

提交回复
热议问题