public override IProjection ToUpperMethod(ToUpperMethod method, Expression[] arguments) { return(new SqlFunctionProjection( "upper", NHibernateUtil.String, ProjectionVisitor.CreateProjection(arguments[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(); }