Exemple #1
0
 /// <summary>
 /// Adds a new <see cref="Column"/> with the specified <paramref name="name"/>
 /// this this <see cref="Table"/>.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="type">The data type.</param>
 /// <returns>The column.</returns>
 public Column AddColumn(string name, Type type)
 {
     Column c = new Column(this, name, Modifier.Add).Type(type);
     Columns.Add(c);
     return c;
 }
Exemple #2
0
 /// <summary>
 /// Adds a new <see cref="Column"/> with the specified <paramref name="name"/>
 /// this this <see cref="Table"/>.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="type">The data type.</param>
 /// <param name="scale">The scale.</param>
 /// <param name="precision">The precision.</param>
 /// <returns>The column.</returns>
 public Column AddColumn(string name, SqlTypes type, int scale, int precision)
 {
     Column c = new Column(this, name, Modifier.Add).Type(type, scale, precision);
     Columns.Add(c);
     return c;
 }
Exemple #3
0
 /// <summary>
 /// Alters the <see cref="Column"/> with the specified <paramref name="name"/>.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <returns>The column.</returns>
 public Column AlterColumn(string name)
 {
     Column c = new Column(this, name, Modifier.Alter);
     Columns.Add(c);
     return c;
 }
Exemple #4
0
 /// <summary>
 /// Adds a new <see cref="Column"/> with the specified <paramref name="name"/>
 /// this this <see cref="Table"/>.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="type">The data type.</param>
 /// <param name="length">The data type's length.</param>
 /// <returns>The column.</returns>
 public Column AddColumn(string name, SqlTypes type, int length)
 {
     Column c = new Column(this, name, Modifier.Add).Type(type, length);
     Columns.Add(c);
     return c;
 }