Esempio n. 1
0
        public static Expression <Func <T, TKey> > BuildSelector <T, TKey>(ParameterExpression p, ExpressionCriteria criteria)
        {
            var property = Expression.Property(p, criteria.PropertyName);

            return(Expression.Lambda <Func <T, TKey> >(property, p));
        }
Esempio n. 2
0
        public static Expression <Func <T, TKey> > BuildSelector <T, TKey>(ExpressionCriteria criteria)
        {
            ParameterExpression p = Expression.Parameter(typeof(T), "p");

            return(BuildSelector <T, TKey>(p, criteria));
        }