예제 #1
0
 public override void Visit(SqlDataType expression)
 {
     _writer.WriteDataType(expression);
 }
예제 #2
0
 /// <summary>
 /// Creates a <see cref="SqlCast"/> that represents a conversion of the specified <paramref name="value"/>
 /// to the specified data type.
 /// </summary>
 /// <param name="value">
 /// The <see cref="SqlValue"/> to convert.
 /// </param>
 /// <param name="dataType">
 /// The <see cref="SqlDataType"/> to convert to.
 /// </param>
 /// <returns>
 /// A <see cref="SqlCast"/> that represents a conversion of the specified <paramref name="value"/>
 /// to the specified data type.
 /// </returns>
 public static SqlCast Cast(SqlValue value, SqlDataType dataType)
 {
     return(new SqlCast(value, dataType));
 }