namespace IStation.DAL { /// /// /// public partial class LogicDma : Yw.DAL.BaseDAL_Sorter_Paras_Flags_TagName_UseStatus { /// /// /// public override ConnectionConfig ConnectionConfig { get { return ConfigHelper.DefaultConnectionConfig; } } /// /// 更新 Code /// public bool UpdateCode(long ID, string Code) { using (var db = new SqlSugarClient(ConnectionConfig)) { return db.Updateable() .SetColumns(x => x.Code == Code) .Where(x => x.ID == ID) .ExecuteCommandHasChange(); } } } }