/// <summary> /// 更新实体信息 /// </summary> public void Update(AgencyConfig config) { const string sql = @"UPDATE AgencyConfig SET IsLockDevice = @IsLockDevice, Notice= @Notice, Contact= @Contact WHERE IsDeleted = 0 AND AgencyID = @AgencyID"; using (DbConnection connection = ConnectionManager.OpenConnection) { connection.Execute(sql, config); } }
public AgencyDTO(Agency agency, AgencyConfig config, int creatorID) : this(agency) { this.Config = config; this.CreatorID = creatorID; }