You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Three constraints must not be missing 【where T:class,IDeleted,new()】publicvoidFalseDelete<T>(Expression<Func<T,bool>>exp)whereT:class,IDeleted,new(){db.Updateable<T>().SetColumns(it =>newT(){IsDeleted=true},true)//true supports updating the data filter assignment field together.Where(exp).ExecuteCommand();}//建一个接口,继承这个接口的类就能用FalseDeletepublicinterfaceIDeleted{boolIsDeleted{get;set;}}