public override HqlTreeNode BuildHql(MethodInfo method, Expression targetObject, ReadOnlyCollection<Expression> arguments, HqlTreeBuilder treeBuilder, IHqlExpressionVisitor visitor) { HqlExpression argument0Expression = visitor.Visit(arguments[0]).AsExpression(); HqlExpression argument1Expression = visitor.Visit(arguments[1]).AsExpression(); HqlTreeNode result = treeBuilder.Coalesce(argument0Expression, argument1Expression); return result; }
public HqlTreeNode BuildHql(MethodInfo method, Expression targetObject, ReadOnlyCollection<Expression> arguments, HqlTreeBuilder treeBuilder, IHqlExpressionVisitor visitor) { return treeBuilder.Coalesce(visitor.Visit(targetObject).AsExpression(), GetRhs(method, arguments, treeBuilder, visitor)); }