public static void Cast(string value, SqlTypeCode destTypeCode, int p, int s, object expected)
 {
     OperatorsUtil.Cast(value, destTypeCode, p, s, expected);
 }
 private static void BinaryOp(Func <SqlBoolean, SqlBoolean, SqlBoolean> op, bool value1, bool value2, bool expected)
 {
     OperatorsUtil.Binary((x, y) => op((SqlBoolean)x, (SqlBoolean)y), value1, value2, expected);
 }
Example #3
0
 private static void BinaryOp(Func <SqlType, Func <ISqlValue, ISqlValue, ISqlValue> > selector, bool value1, bool value2,
                              bool expected)
 {
     OperatorsUtil.Binary(PrimitiveTypes.Boolean(), selector, value1, value2, expected);
 }
Example #4
0
 private static void BinaryOp(Func <SqlType, Func <ISqlValue, ISqlValue, SqlBoolean> > selector, object value1, object value2, bool expected)
 {
     OperatorsUtil.Binary(PrimitiveTypes.Double(), selector, value1, value2, expected);
 }
Example #5
0
 private static void Cast(object value, SqlTypeCode destType, int p, int s, object expected)
 {
     OperatorsUtil.Cast(value, destType, p, s, expected);
 }
Example #6
0
 public static void Negate(object value, object expected)
 {
     OperatorsUtil.Unary(type => type.Negate, value, expected);
 }
Example #7
0
 public static void UnaryPlus(object value, object expected)
 {
     OperatorsUtil.Unary(type => type.UnaryPlus, value, expected);
 }