public override IEnumerable <IDataValue> Evaluate(Model.IDataDefinition dataDefinition) { return(base.Evaluate(dataDefinition).Select(kvp => new DataValue(_trucator.Truncate(kvp.ColumnName), kvp.Value)).Cast <IDataValue>()); }
public override string Generate(AlterDefaultConstraintExpression expression) { truncator.Truncate(expression); return(String.Format("ALTER TABLE {0} ALTER COLUMN {1} SET DEFAULT {2}", Quoter.QuoteTableName(expression.TableName), Quoter.QuoteColumnName(expression.ColumnName), Quoter.QuoteValue(expression.DefaultValue) )); }