随笔分类 -  EF Core

摘要:1、新建interface public interface ISoftDelete { public bool isdeleted { get; set; } } 2、需要使用到软删除的entity要继承这个interface 3、然后在DBContext的OnModelCreating中为每个继 阅读全文
posted @ 2022-07-09 16:26 Cody& 阅读(399) 评论(0) 推荐(0) 编辑
摘要:在做单元测试的时候碰到以下报错: The instance of entity type 'XXX' cannot be tracked because another instance with the same key value for {'XX'} is already being trac 阅读全文
posted @ 2020-12-23 16:32 Cody& 阅读(4692) 评论(0) 推荐(1) 编辑
该文被密码保护。
posted @ 2020-06-12 22:23 Cody& 阅读(8) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示