Exemplo n.º 1
0
 public override HqlTreeNode BuildHql(MethodInfo method, Expression targetObject, ReadOnlyCollection <Expression> arguments, HqlTreeBuilder treeBuilder, IHqlExpressionVisitor visitor)
 {
     return(treeBuilder.Like(
                visitor.Visit(targetObject).AsExpression(),
                treeBuilder.Concat(
                    treeBuilder.Constant("%"),
                    visitor.Visit(arguments[0]).AsExpression())));
 }
Exemplo n.º 2
0
 public override HqlTreeNode BuildHql(MethodInfo method, Expression targetObject, ReadOnlyCollection <Expression> arguments, HqlTreeBuilder treeBuilder, IHqlExpressionVisitor visitor)
 {
     LogIgnoredStringComparisonParameter(method, MethodWithComparer);
     return(treeBuilder.Like(
                visitor.Visit(targetObject).AsExpression(),
                treeBuilder.Concat(
                    visitor.Visit(arguments[0]).AsExpression(),
                    treeBuilder.Constant("%"))));
 }