예제 #1
0
 protected RelationalQueryableMethodTranslatingExpressionVisitor(RelationalQueryableMethodTranslatingExpressionVisitor parentVisitor)
     : base(parentVisitor)
 {
     _model         = parentVisitor._model;
     _sqlTranslator = parentVisitor._sqlTranslator;
     _weakEntityExpandingExpressionVisitor = parentVisitor._weakEntityExpandingExpressionVisitor;
     _projectionBindingExpressionVisitor   = new RelationalProjectionBindingExpressionVisitor(this, _sqlTranslator);
     _sqlExpressionFactory = parentVisitor._sqlExpressionFactory;
     _subquery             = true;
 }
예제 #2
0
 public RelationalQueryableMethodTranslatingExpressionVisitor(QueryableMethodTranslatingExpressionVisitorDependencies dependencies,
                                                              RelationalQueryableMethodTranslatingExpressionVisitorDependencies relationalDependencies,
                                                              IModel model) : base(dependencies, relationalDependencies, model)
 {
     _model         = model;
     _sqlTranslator = relationalDependencies.RelationalSqlTranslatingExpressionVisitorFactory.Create(model, this);
     _projectionBindingExpressionVisitor = new RelationalProjectionBindingExpressionVisitor(this, _sqlTranslator);
     _sqlExpressionFactory = relationalDependencies.SqlExpressionFactory as ISqlExpressionFactoryWithCrossDb;
     _weakEntityExpandingExpressionVisitor = new WeakEntityExpandingExpressionVisitor(_sqlTranslator, _sqlExpressionFactory);
 }