using SqlSugar; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Transactions; namespace IStation.DAL { /// /// 员工 /// public partial class Employee : CorpTraceDAL_Sorter_UseStatus_TagName_TerminalId { /// /// /// public override ConnectionConfig ConnectionConfig { get { return ConfigHelper.DefaultConnectionConfig; } } /// /// 更新照片 /// public bool UpdatePhotoImg(long CorpID, long ID, string PhotoImg,long UpdateUserID,DateTime UpdateTime) { using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig)) { return db.Updateable() .SetColumns(x => x.PhotoImg == PhotoImg) .SetColumns(x => x.UpdateUserID == UpdateUserID) .SetColumns(x => x.UpdateTime == UpdateTime) .Where(x => x.CorpID == CorpID && x.ID == ID) .ExecuteCommand() > 0; } } } }