/// <summary> /// Specifies SQL Server DATETIME2 data type for column. /// </summary> /// <param name="column">The column.</param> /// <param name="precision">The precision of the data type.</param> /// <returns>This column for fluent coding.</returns> public static _DateTime AsSqlDateTime2(this _DateTime column, byte precision) { column.VerifyNotNull(nameof(column)); if (precision < MIN_DATETIME2_PRECISION || precision > MAX_DATETIME2_PRECISION) { throw new ArgumentOutOfRangeException(nameof(precision)); } column.SetSqlType(SqlType.DateTime2(column, precision)); return(column); }
/// <summary> /// Specifies SQL Server DATETIME data type for column. /// </summary> /// <param name="column">The column.</param> /// <returns>This column for fluent coding.</returns> public static _DateTime AsSqlDateTime(this _DateTime column) { column.VerifyNotNull(nameof(column)); column.SetSqlType(SqlType.DateTime(column)); return(column); }