using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace IStation.DAL { /// /// /// public partial class BaseTraceDAL_UseStatus_TagName : BaseTraceDAL_UseStatus where T : Entity.BaseTraceEntity, Entity.IUseStatus, Entity.ITagName, new() { /// /// 更新TagName /// public virtual bool UpdateTagName(long ID, string TagName, long UpdateUserID, DateTime UpdateTime) { using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) { return db.Updateable() .SetColumns(x => x.TagName == TagName) .SetColumns(x => x.UpdateUserID == UpdateUserID) .SetColumns(x => x.UpdateTime == UpdateTime) .Where(x => x.ID == ID) .ExecuteCommandHasChange(); } } } }