public ColumnValuePair(string columnName, object value) { this.Field = new DataField(columnName, value?.GetType()); this.Value = new SqlValue(value); }
public string AddColumn(string column, object defaultValue) { string value = new SqlValue(defaultValue).ToString("N"); return($"ALTER TABLE {formalName} ADD {column} DEFAULT({value})"); }