摘要: 1、新建interface public interface ISoftDelete { public bool isdeleted { get; set; } } 2、需要使用到软删除的entity要继承这个interface 3、然后在DBContext的OnModelCreating中为每个继 阅读全文
posted @ 2022-07-09 16:26 Cody& 阅读(349) 评论(0) 推荐(0) 编辑