예제 #1
0
 /// <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);
     }
 }
예제 #2
0
파일: AgencyDTO.cs 프로젝트: yienit/KST
 public AgencyDTO(Agency agency, AgencyConfig config, int creatorID)
     : this(agency)
 {
     this.Config = config;
     this.CreatorID = creatorID;
 }