예제 #1
0
 /// <summary>
 /// Specifies SQL Server VARBINARY(n) data type for column.
 /// </summary>
 /// <param name="column">The column.</param>
 /// <param name="size">The size of the data type.</param>
 /// <returns>This column for fluent coding.</returns>
 public static _Binary AsSqlVarBinary(this _Binary column, int size = MAX_VARBINARY_SIZE)
 {
     column.VerifyNotNull(nameof(column));
     if (size < MIN_VARBINARY_SIZE || size > MAX_VARBINARY_SIZE)
     {
         throw new ArgumentOutOfRangeException(nameof(size));
     }
     column.SetSqlType(SqlType.VarBinary(column, size));
     return(column);
 }
예제 #2
0
 /// <summary>
 /// Specifies SQL Server TIMESTAMP data type for column.
 /// </summary>
 /// <param name="column">The column.</param>
 /// <returns>This column for fluent coding.</returns>
 public static _Binary AsSqlTimestamp(this _Binary column)
 {
     column.VerifyNotNull(nameof(column));
     column.SetSqlType(SqlType.Timestamp(column));
     return(column);
 }
예제 #3
0
 /// <summary>
 /// Specifies SQL Server BINARY(MAX) data type for column.
 /// </summary>
 /// <param name="column">The column.</param>
 /// <returns>This column for fluent coding.</returns>
 public static _Binary AsSqlBinaryMax(this _Binary column)
 {
     column.VerifyNotNull(nameof(column));
     column.SetSqlType(SqlType.Binary(column, -1));
     return(column);
 }
예제 #4
0
 /// <summary>
 /// Specifies MySQL LONGBLOB data type for column.
 /// </summary>
 /// <param name="column">The column.</param>
 /// <returns>This column for fluent coding.</returns>
 public static _Binary AsMySqlLongBlob(this _Binary column)
 {
     column.VerifyNotNull(nameof(column));
     column.SetMySqlType(MySqlType.LongBlob(column));
     return(column);
 }