/// <summary> /// Specifies SQL Server NCHAR(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 _String AsSqlNChar(this _String column, int size) { column.VerifyNotNull(nameof(column)); if (size < MIN_CHAR_SIZE || size > MAX_CHAR_SIZE) { throw new ArgumentOutOfRangeException(nameof(size)); } column.SetSqlType(SqlType.NChar(column, size)); return(column); }
/// <summary> /// Specifies SQL Server NCHAR(MAX) data type for column. /// </summary> /// <param name="column">The column.</param> /// <returns>This column for fluent coding.</returns> public static _String AsSqlNCharMax(this _String column) { column.VerifyNotNull(nameof(column)); column.SetSqlType(SqlType.NChar(column, -1)); return(column); }