public RelationalQueryableMethodTranslatingExpressionVisitor( IModel model, IRelationalSqlTranslatingExpressionVisitorFactory relationalSqlTranslatingExpressionVisitorFactory, ISqlExpressionFactory sqlExpressionFactory) { _sqlTranslator = relationalSqlTranslatingExpressionVisitorFactory.Create(model, this); _projectionBindingExpressionVisitor = new RelationalProjectionBindingExpressionVisitor(this, _sqlTranslator); _model = model; _sqlExpressionFactory = sqlExpressionFactory; }
public RelationalQueryableMethodTranslatingExpressionVisitor( IModel model, IRelationalSqlTranslatingExpressionVisitorFactory relationalSqlTranslatingExpressionVisitorFactory, ISqlExpressionFactory sqlExpressionFactory) : base(subquery: false) { _sqlTranslator = relationalSqlTranslatingExpressionVisitorFactory.Create(model, this); _weakEntityExpandingExpressionVisitor = new WeakEntityExpandingExpressionVisitor(_sqlTranslator, sqlExpressionFactory); _projectionBindingExpressionVisitor = new RelationalProjectionBindingExpressionVisitor(this, _sqlTranslator); _model = model; _sqlExpressionFactory = sqlExpressionFactory; }
public RelationalSqlTranslatingExpressionVisitor Create(IModel model, QueryableMethodTranslatingExpressionVisitor queryableMethodTranslatingExpressionVisitor) { RelationalSqlTranslatingExpressionVisitor originalVisitor = _originalFactory.Create(model, queryableMethodTranslatingExpressionVisitor); return(new FixSqlServerSqlTranslatingExpressionVisitor(_dependencies, model, queryableMethodTranslatingExpressionVisitor)); }