Пример #1
0
 public override IProjection ToLowerMethod(ToLowerMethod method, Expression[] arguments)
 {
     return(new SqlFunctionProjection(
                "lower",
                NHibernateUtil.String,
                ProjectionVisitor.CreateProjection(arguments[0])
                ));
 }
Пример #2
0
        public Expression ToLowerMethod(ToLowerMethod method, LiteralExpression[] arguments)
        {
            if (LiteralUtil.IsAnyNull(arguments))
            {
                return(new LiteralExpression(null, LiteralType.Null));
            }
            else
            {
                string result = LiteralUtil.CoerceString(arguments[0]).ToLowerInvariant();

                return(new LiteralExpression(result, LiteralType.String));
            }
        }
 public virtual TResult ToLowerMethod(ToLowerMethod method, Expression[] arguments)
 {
     throw new QueryNotSupportException();
 }