/// <summary> /// Defines a DEFAULT value for a column in the table declaration block. /// </summary> /// <param name="prev">A predecessor object.</param> /// <param name="value">A DEFAULT value.</param> public static BeginTableColumnDefaultChainer Default(this IBeginTableColumn prev, Value value) { return(new BeginTableColumnDefaultChainer((Chainer)prev, value)); }
/// <summary> /// Defines a CHECK constraint on the column in the table declaration block. /// </summary> /// <param name="prev">A predecessor object.</param> /// <param name="expression">An expression of the CHECK constraint.</param> public static BeginTableColumnCheckChainer Check(this IBeginTableColumn prev, Expression expression) { return(new BeginTableColumnCheckChainer((Chainer)prev, expression)); }
/// <summary> /// Defines a NOT NULL property of the column in the table declaration block. /// </summary> /// <param name="prev">A predecessor object.</param> public static BeginTableColumnNullableChainer NotNull(this IBeginTableColumn prev) { return(new BeginTableColumnNullableChainer((Chainer)prev, false)); }
/// <summary> /// Defines an identity column in the table declaration block. /// </summary> /// <param name="prev">A predecessor object.</param> /// <param name="seed">Is the value that is used for the very first row loaded into the table.</param> /// <param name="increment">Is the incremental value that is added to the identity value of the previous row that was loaded.</param> public static BeginTableColumnIdentityChainer Identity(this IBeginTableColumn prev, long seed = 1, long increment = 1) { return(new BeginTableColumnIdentityChainer((Chainer)prev, seed, increment)); }
/// <summary> /// Adds a new column in the table declaration block. /// </summary> /// <param name="prev">A predecessor object.</param> /// <param name="column">A column argument.</param> /// <typeparam name="T">A type of a column.</typeparam> public static BeginTableColumnChainer AddColumn <T>(this IBeginTableColumn prev, NonSelectColumnArgument column) { return(new BeginTableColumnChainer((Chainer)prev, column, typeof(T))); }
/// <summary> /// Adds a new column in the table declaration block. /// </summary> /// <param name="prev">A predecessor object.</param> /// <param name="column">A column argument.</param> /// <param name="dataTypeDef">A column data type definition.</param> public static BeginTableColumnChainer AddColumn(this IBeginTableColumn prev, NonSelectColumnArgument column, DataType dataTypeDef) { return(new BeginTableColumnChainer((Chainer)prev, column, dataTypeDef)); }