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); } }
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); } }
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); } }