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

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