예제 #1
0
        public void SetMapping(string tableName, string columnName, object newValue, Func <object, bool> mappingCondition)
        {
            var mapping = new MappingWithCondition {
                NewValue = newValue, Condition = mappingCondition
            };

            _mappings[GetMappingKey(tableName, columnName)] = mapping;
        }
예제 #2
0
        public void SetMapping(string tableName, string columnName, object newValue)
        {
            var mapping = new MappingWithCondition {
                NewValue = newValue, Condition = null
            };

            _mappings[GetMappingKey(tableName, columnName)] = mapping;
        }
예제 #3
0
        public void SetMapping(string tableName, string columnName, object oldValue, object newValue)
        {
            if (tableName == "tenants_tenants")
            {
                var mapping = new MappingWithCondition { NewValue = newValue, OldValue = oldValue};
                AddMappingInternal(GetMappingKey(tableName, columnName), mapping);

            }
            AddMappingInternal(GetMappingKey(tableName, columnName, oldValue), newValue);
        }
예제 #4
0
 public void SetMapping(string tableName, string columnName, object oldValue, object newValue)
 {
     if (tableName == "tenants_tenants")
     {
         var mapping = new MappingWithCondition {
             NewValue = newValue, OldValue = oldValue
         };
         AddMappingInternal(GetMappingKey(tableName, columnName), mapping);
     }
     AddMappingInternal(GetMappingKey(tableName, columnName, oldValue), newValue);
 }
예제 #5
0
 public void SetMapping(string tableName, string columnName, object newValue, Func<object, bool> mappingCondition)
 {
     var mapping = new MappingWithCondition {NewValue = newValue, Condition = mappingCondition};
     _mappings[GetMappingKey(tableName, columnName)] = mapping;
 }
예제 #6
0
 public void SetMapping(string tableName, string columnName, object newValue)
 {
     var mapping = new MappingWithCondition {NewValue = newValue, Condition = null};
     _mappings[GetMappingKey(tableName, columnName)] = mapping;
 }