Ejemplo n.º 1
0
        public override System.Linq.Expressions.Expression ToLinqExpression(System.Linq.IQueryable queryable, ParameterExpression parameterExpression, string propertyName)
        {
            if (queryable == null)
            {
                throw new ArgumentNullException("queryable");
            }

            if (parameterExpression == null)
            {
                throw new ArgumentNullException("parameterExpression");
            }

            if (String.IsNullOrEmpty(propertyName))
            {
                if (propertyName == null)
                {
                    throw new ArgumentNullException("propertyName");
                }

                throw new ArgumentException("PropertyName must not be empty.", "propertyName");
            }

            return(queryable.CreateGreaterThanExpression(parameterExpression, propertyName, this.Value));
        }