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; }
public void SetMapping(string tableName, string columnName, object newValue) { var mapping = new MappingWithCondition { NewValue = newValue, Condition = null }; _mappings[GetMappingKey(tableName, columnName)] = mapping; }
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); }
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); }
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; }
public void SetMapping(string tableName, string columnName, object newValue) { var mapping = new MappingWithCondition {NewValue = newValue, Condition = null}; _mappings[GetMappingKey(tableName, columnName)] = mapping; }