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