Beispiel #1
0
 public static Expression GetCastExpression(Session session, Expression e, SqlType dataType)
 {
     if (e.GetExprType() == 1)
     {
         return(new ExpressionValue(dataType.CastToType(session, e.GetValue(session), e.GetDataType()), dataType));
     }
     return(new ExpressionOp(e, dataType));
 }