Пример #1
0
        public void Add(Expression <Func <TTableObject, object> > updateCriteria, object value)
        {
            var visitor = new DumpMemberAccessNameVisitor();

            visitor.Visit(updateCriteria);
            var memberAccessName = visitor.MemberAccessName;

            if (!ContainsKey(memberAccessName))
            {
                Add(memberAccessName, value);
            }
        }
Пример #2
0
        public void Add(Expression <Func <TAggregateRoot, object> > sortExpression, SortOrder sortOrder)
        {
            var visitor = new DumpMemberAccessNameVisitor();

            visitor.Visit(sortExpression);
            var memberAccessName = visitor.MemberAccessName;

            if (!ContainsKey(memberAccessName))
            {
                Add(memberAccessName, sortOrder);
            }
        }
Пример #3
0
        public void Add(Expression <Func <T, object> > sortExpression, SortDirection dir)
        {
            var visitor = new DumpMemberAccessNameVisitor();

            visitor.Visit(sortExpression);
            var memberAccessName = visitor.MemberAccessName;

            if (!ContainsKey(memberAccessName))
            {
                Add(memberAccessName, dir);
            }
        }