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