public static Expression Include(QueryMapper mapper, Expression expression) { return(new RelationshipIncluder(mapper).Visit(expression)); }
private RelationshipIncluder(QueryMapper mapper) { this.mapper = mapper; this.policy = mapper.Translator.Police.Policy; }
private RelationshipBinder(QueryMapper mapper) { this.mapper = mapper; this.mapping = mapper.Mapping; this.language = mapper.Translator.Linguist.Language; }
public static Expression Bind(QueryMapper mapper, Expression expression) { return(new RelationshipBinder(mapper).Visit(expression)); }
public QueryTranslator(QueryLanguage language, QueryMapping mapping, QueryPolicy policy) { this.linguist = language.CreateLinguist(this); this.mapper = mapping.CreateMapper(this); this.police = policy.CreatePolice(this); }