Exemple #1
0
 public void Merge(DatabaseSetting setting)
 {
     if (Default != setting.Default)
     {
         Default = setting.Default;
     }
     if (NameMapper != setting.NameMapper)
     {
         NameMapper = setting.NameMapper;
     }
     if (SqlTimeOut != setting.SqlTimeOut)
     {
         SqlTimeOut = setting.SqlTimeOut;
     }
     if (TimeConsumingSqlTimeOut != setting.TimeConsumingSqlTimeOut)
     {
         TimeConsumingSqlTimeOut = setting.TimeConsumingSqlTimeOut;
     }
     if (MaxRecords != setting.MaxRecords)
     {
         MaxRecords = setting.MaxRecords;
     }
     if (UseParameter != setting.UseParameter)
     {
         UseParameter = setting.UseParameter;
     }
     if (Cache != setting.Cache)
     {
         Cache = setting.Cache;
     }
     if (DbTimeCheckMinutes != setting.DbTimeCheckMinutes)
     {
         DbTimeCheckMinutes = setting.DbTimeCheckMinutes;
     }
     if (UseForeignKey != setting.UseForeignKey)
     {
         UseForeignKey = setting.UseForeignKey;
     }
     if (PartialUpdate != setting.PartialUpdate)
     {
         PartialUpdate = setting.PartialUpdate;
     }
     if (setting.Context != null && setting.Context.Count > 0)
     {
         Context = setting.Context;
     }
 }
Exemple #2
0
 public void Merge(CacheSetting setting)
 {
     if (Enabled != setting.Enabled)
     {
         Enabled = setting.Enabled;
     }
     if (Size != setting.Size)
     {
         Size = setting.Size;
     }
     if (KeepSecends != setting.KeepSecends)
     {
         KeepSecends = setting.KeepSecends;
     }
     if (AllSelectedItem != setting.AllSelectedItem)
     {
         AllSelectedItem = setting.AllSelectedItem;
     }
 }