Getting Ambiguous match found exception while calling DeleteAsync

醉酒当歌 提交于 2019-12-02 06:02:25

Ambiguous match found is likely caused by property hiding of Id in Entity Framework. FullAuditedEntity<int> already defined Id identically to what you do, so you can remove that.

On another note, _testRepository.DeleteAsync(code) deletes by comparing the Id. To delete by code, do _testRepository.DeleteAsync(test => test.Code == code);

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!