Exemplo n.º 1
0
 /// <summary>
 /// Specifies MySQL TIMESTAMP 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 AsMySqlTimestamp(this _DateTime column, int precision = 0)
 {
     column.VerifyNotNull(nameof(column));
     VerifyTimePrecision(precision, nameof(precision));
     column.SetMySqlType(MySqlType.Timestamp(column, precision));
     return(column);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Specifies MySQL DATE data type for column.
 /// </summary>
 /// <param name="column">The column.</param>
 /// <returns>This column for fluent coding.</returns>
 public static _DateTime AsMySqlDate(this _DateTime column)
 {
     column.VerifyNotNull(nameof(column));
     column.SetMySqlType(MySqlType.Date(column));
     return(column);
 }