示例#1
0
 /// <summary>
 /// Sets the default value for this <see cref="Column"/>.
 /// </summary>
 /// <param name="value">The default value.</param>
 /// <returns>The column.</returns>
 public Column Default(object value)
 {
     Table.AddDefaultConstraint(Name, value);
     return(this);
 }
示例#2
0
 /// <summary>
 /// Sets the default value for this <see cref="Column"/>.
 /// </summary>
 /// <param name="name">The name of the default constraint.</param>
 /// <param name="value">The default value.</param>
 /// <returns>The column.</returns>
 public Column Default(string name, object value)
 {
     Table.AddDefaultConstraint(name, Name, value);
     return(this);
 }