/// <summary> /// Specifies SQL Server BINARY(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 AsSqlBinary(this _Binary column, int size) { column.VerifyNotNull(nameof(column)); if (size < MIN_BINARY_SIZE || size > MAX_BINARY_SIZE) { throw new ArgumentOutOfRangeException(nameof(size)); } column.SetSqlType(SqlType.Binary(column, size)); return(column); }
/// <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); }