Пример #1
0
        public static CompareNode <T, TProperty> GreaterThanOrEqual <T, TProperty>(this RuntimeConfigurator configurator,
                                                                                   TProperty value)
            where T : class
            where TProperty : IComparable <TProperty>
        {
            var comparator = new GreaterThanOrEqualValueComparator <TProperty>();

            return(Compare <T, TProperty>(configurator, comparator, value));
        }
        public static CompareNode <T, TProperty> GreaterThanOrEqual <T, TProperty>(this RuntimeConfigurator configurator,
                                                                                   TProperty value)
            where T : class
            where TProperty : IComparable <TProperty>
        {
            Value <TProperty> rightValue = Conditional.Constant(value);
            TokenValueFactory <T, TProperty> tokenValue = Conditional.Property <T, TProperty>();

            var comparator = new GreaterThanOrEqualValueComparator <TProperty>();

            return(configurator.CreateNode(id => new CompareNode <T, TProperty>(id, tokenValue, comparator, rightValue)));
        }