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