Exemplo n.º 1
0
 protected QueryBinder(QueryMapper mapper, Expression root)
 {
     this.mapper = mapper;
     this.language = mapper.Translator.Linguist.Language;
     this.map = new Dictionary<ParameterExpression, Expression>();
     this.groupByMap = new Dictionary<Expression, GroupByInfo>();
     this.root = root;
     this.repoType = mapper.Mapping.RepositoryType;
 }
Exemplo n.º 2
0
 public static new Expression Bind(QueryMapper mapper, Expression expression)
 {
     return new OQueryBinder(mapper, expression).Visit(expression);
 }
Exemplo n.º 3
0
 protected OQueryBinder(QueryMapper mapper, Expression root)
     : base(mapper, root)
 {
 }
Exemplo n.º 4
0
 public static Expression Include(QueryMapper mapper, Expression expression)
 {
     return new RelationshipIncluder(mapper).Visit(expression);
 }
Exemplo n.º 5
0
 protected RelationshipIncluder(QueryMapper mapper)
 {
     this.mapper = mapper;
     this.policy = mapper.Translator.Police.Policy;
 }
Exemplo n.º 6
0
 public static new Expression Bind(QueryMapper mapper, Expression expression)
 {
     return new ORelationshipIncluder(mapper).Visit(expression);
 }
Exemplo n.º 7
0
 protected ORelationshipIncluder(QueryMapper mapper)
     : base(mapper)
 {
 }
Exemplo n.º 8
0
 public static Expression Bind(QueryMapper mapper, Expression expression)
 {
     return new RelationshipBinder(mapper).Visit(expression);
 }
Exemplo n.º 9
0
 protected RelationshipBinder(QueryMapper mapper)
 {
     this.mapper = mapper;
     this.mapping = mapper.Mapping;
     this.language = mapper.Translator.Linguist.Language;
 }
Exemplo n.º 10
0
 protected ORelationshipBinder(QueryMapper mapper)
     : base(mapper)
 {
 }
Exemplo n.º 11
0
 public QueryTranslator(QueryLanguage language, QueryMapping mapping, QueryPolicy policy)
 {
     this.linguist = language.CreateLinguist(this);
     this.mapper = mapping.CreateMapper(this);
     this.police = policy.CreatePolice(this);
 }