Example #1
0
 public static IExpressionBuilder Function(this IExpressionBuilder builder, ObjectName functionName, params Action <IExpressionBuilder>[] args)
 {
     return(builder.Function(functionName, args.Select(x => {
         var expBuilder = new ExpressionBuilder();
         x(expBuilder);
         return expBuilder.Build();
     }).ToArray()));
 }
Example #2
0
 public static IExpressionBuilder Function(this IExpressionBuilder builder, string functionName,
                                           params SqlExpression[] args)
 {
     return(builder.Function(ObjectName.Parse(functionName), args));
 }
Example #3
0
 public static IExpressionBuilder Function(this IExpressionBuilder builder, string functionName)
 {
     return(builder.Function(functionName, new SqlExpression[0]));
 }