Beispiel #1
0
 public ColumnValuePair(string columnName, object value)
 {
     this.Field = new DataField(columnName, value?.GetType());
     this.Value = new SqlValue(value);
 }
Beispiel #2
0
        public string AddColumn(string column, object defaultValue)
        {
            string value = new SqlValue(defaultValue).ToString("N");

            return($"ALTER TABLE {formalName} ADD {column} DEFAULT({value})");
        }