public Query <T> Include <TProperty>(Expression <Func <T, TProperty> > property) { var expression = property.Body; switch (expression.NodeType) { case ExpressionType.MemberAccess: var members = DecodeMemberExpression(expression as MemberExpression); Includes.AddRange(members); break; case ExpressionType.Call: var calls = DecodeCallExpression(expression as MethodCallExpression); Includes.AddRange(calls); break; } return(this); }
public void AddIncludeRange(List <Expression <Func <TEntity, object> > > includesExpression) { Includes.AddRange(includesExpression); }
public void AddPatternSet(PatternSet patternSet) { Includes.AddRange(patternSet.GetIncludePatterns()); Excludes.AddRange(patternSet.GetExcludePatterns()); }
public Include(params string[] includes) : this() { Includes.AddRange(includes); }