using SqlSugar; using System; using System.Collections.Generic; using System.Text; namespace TEAMModelOS.SDK.Module.SqlSugar.Configuration { /// /// 扩展ORM /// /// public class DbSet : SimpleClient where T : class, new() { public DbSet(SqlSugarClient context) : base(context) { } /// /// 扩展假删除功能 /// /// /// /// public bool FalseDelete(DbModel dbModel) where DbModel : BaseDbModel, new() { return this.Context.Updateable(dbModel).UpdateColumns(it => new DbModel() { IsDel = true }).ExecuteCommand() > 0; } /// /// 扩展假删除功能 /// /// /// /// public bool FalseDelete(DbModel[] dbModels) where DbModel : BaseDbModel, new() { return this.Context.Updateable(dbModels).UpdateColumns(it => new DbModel() { IsDel = true }).ExecuteCommand() > 0; } } }