コード例 #1
0
 internal Visitor(Options options, IEnumerable<System.Data.Linq.SqlClient.SqlParameter> parentParameters, SqlFactory sqlFactory) {
     this.options = options;
     this.sql = sqlFactory;
     this.canJoin = true;
     this.isTopLevel = true;
     this.parentParameters = parentParameters;
 }
コード例 #2
0
 internal Visitor(Options options, IEnumerable <System.Data.Linq.SqlClient.SqlParameter> parentParameters, SqlFactory sqlFactory)
 {
     this.options          = options;
     this.sql              = sqlFactory;
     this.canJoin          = true;
     this.isTopLevel       = true;
     this.parentParameters = parentParameters;
 }
コード例 #3
0
            private void CoerceTypeFamily(SqlExpression arg1, SqlExpression arg2)
            {
                if ((arg1.SqlType.HasPrecisionAndScale && arg2.SqlType.HasPrecisionAndScale && arg1.SqlType != arg2.SqlType) ||
                    SqlFactory.IsSqlHighPrecisionDateTimeType(arg1) || SqlFactory.IsSqlHighPrecisionDateTimeType(arg2))
                {
                    ProviderType best = typeProvider.GetBestType(arg1.SqlType, arg2.SqlType);
                    SetSqlTypeIfSimpleExpression(arg1, best);
                    SetSqlTypeIfSimpleExpression(arg2, best);
                    return;
                }

                // The SQL data type DATE is special, in that it has a higher range but lower
                // precedence, so we need to account for that here (DevDiv 175229)
                if (SqlFactory.IsSqlDateType(arg1) && !SqlFactory.IsSqlHighPrecisionDateTimeType(arg2))
                {
                    SetSqlTypeIfSimpleExpression(arg2, arg1.SqlType);
                }
                else if (SqlFactory.IsSqlDateType(arg2) && !SqlFactory.IsSqlHighPrecisionDateTimeType(arg1))
                {
                    SetSqlTypeIfSimpleExpression(arg1, arg2.SqlType);
                }
            }
コード例 #4
0
ファイル: QueryConverter.cs プロジェクト: uQr/referencesource
 internal QueryConverter(IDataServices services, TypeSystemProvider typeProvider, Translator translator, SqlFactory sql) {
     if (services == null) {
         throw Error.ArgumentNull("services");
     }
     if (sql == null) {
         throw Error.ArgumentNull("sql");
     }
     if (translator == null) {
         throw Error.ArgumentNull("translator");
     }
     if (typeProvider == null) {
         throw Error.ArgumentNull("typeProvider");
     }
     this.services = services;
     this.translator = translator;
     this.sql = sql;
     this.typeProvider = typeProvider;
     this.map = new Dictionary<ParameterExpression, SqlExpression>();
     this.exprMap = new Dictionary<ParameterExpression, Expression>();
     this.dupMap = new Dictionary<ParameterExpression, SqlNode>();
     this.gmap = new Dictionary<SqlNode, GroupInfo>();
     this.allowDeferred = true;
 }
コード例 #5
0
 internal LongTypeConverter(SqlFactory sql) {
     this.visitor = new Visitor(sql);
 }
コード例 #6
0
 internal SqlBinder(Translator translator, SqlFactory sqlFactory, MetaModel model, DataLoadOptions shape, SqlColumnizer columnizer, bool canUseOuterApply) {
     this.sql = sqlFactory;
     this.columnizer = columnizer;
     this.visitor = new Visitor(this, translator, this.columnizer, this.sql, model, shape, canUseOuterApply);
 }
コード例 #7
0
 internal static SqlNode Convert(SqlNode node, SqlFactory sql, MetaModel model)
 {
     return(new Visitor(sql, model).Visit(node));
 }
コード例 #8
0
 internal SqlExpander(SqlFactory factory) {
     this.factory = factory;
 }
コード例 #9
0
 internal SqlRewriteScalarSubqueries(SqlFactory sqlFactory)
 {
     this.visitor = new Visitor(sqlFactory);
 }
コード例 #10
0
 internal Visitor(SqlFactory sql, SqlColumnizer columnizer)
 {
     this.sql        = sql;
     this.columnizer = columnizer;
     this.isTopLevel = true;
 }
コード例 #11
0
        internal static SqlNode Reduce(SqlNode node, SqlFactory factory, SqlNodeAnnotations annotations)
        {
            Visitor r = new Visitor(factory, annotations);

            return(r.Visit(node));
        }
コード例 #12
0
 internal SqlReorderer(TypeSystemProvider typeProvider, SqlFactory sqlFactory) {
     this.typeProvider = typeProvider;
     this.sql = sqlFactory;
 }
コード例 #13
0
 internal SqlTypeConverter(SqlFactory sql)
 {
     this.sql = sql;
 }
コード例 #14
0
 internal SqlTypeConverter(SqlFactory sql) {
     this.sql = sql;
 }
コード例 #15
0
 internal SqlMultiplexer(Options options, IEnumerable <System.Data.Linq.SqlClient.SqlParameter> parentParameters, SqlFactory sqlFactory)
 {
     this.visitor = new Visitor(options, parentParameters, sqlFactory);
 }
コード例 #16
0
 internal SqlReorderer(TypeSystemProvider typeProvider, SqlFactory sqlFactory)
 {
     this.typeProvider = typeProvider;
     this.sql          = sqlFactory;
 }
コード例 #17
0
 internal Visitor(SqlNodeAnnotations annotations, SqlFactory sql)
 {
     this.annotations = annotations;
     this.sql         = sql;
 }
コード例 #18
0
 internal Visitor(SqlFactory sql)
 {
     this.sql = sql;
 }
コード例 #19
0
 internal Visitor(SqlFactory factory, SqlNodeAnnotations annotations)
 {
     this.factory     = factory;
     this.annotations = annotations;
 }
コード例 #20
0
 internal static SqlNode Reduce(SqlNode node, SqlNodeAnnotations annotations, SqlFactory sql)
 {
     return(new Visitor(annotations, sql).Visit(node));
 }
コード例 #21
0
		internal static SqlNode Reduce(SqlNode node, SqlFactory factory, SqlNodeAnnotations annotations) {
			Visitor r = new Visitor(factory, annotations);
			return r.Visit(node);			
		}
コード例 #22
0
 internal SqlMultiplexer(Options options, IEnumerable<System.Data.Linq.SqlClient.SqlParameter> parentParameters, SqlFactory sqlFactory) {
     this.visitor = new Visitor(options, parentParameters, sqlFactory);
 }
コード例 #23
0
 internal Visitor(SqlFactory factory, SqlNodeAnnotations annotations) {
     this.factory = factory;
     this.annotations = annotations;
 }
コード例 #24
0
 internal Translator(IDataServices services, SqlFactory sqlFactory, TypeSystemProvider typeProvider)
 {
     this.services     = services;
     this.sql          = sqlFactory;
     this.typeProvider = typeProvider;
 }
コード例 #25
0
 internal static SqlNode Convert(SqlNode node, SqlFactory sql, MetaModel model) {
     return new Visitor(sql, model).Visit(node);
 }
コード例 #26
0
 internal Visitor(SqlFactory sql, MetaModel model)
 {
     this.sql   = sql;
     this.model = model;
 }
コード例 #27
0
 internal Visitor(SqlFactory sql, MetaModel model) {
     this.sql = sql;
     this.model = model;
 }
コード例 #28
0
 internal SqlMethodTransformer(SqlFactory sql)
 {
     this.sql = sql;
 }
コード例 #29
0
 internal Lifter(TypeSystemProvider typeProvider, MetaModel model)
 {
     this.sql = new SqlFactory(typeProvider, model);
     this.aggregateChecker = new SqlAggregateChecker();
     this.rowNumberChecker = new SqlRowNumberChecker();
 }
コード例 #30
0
 internal Visitor(SqlFactory factory)
     : base(true) {
     this.factory = factory;
 }
コード例 #31
0
 internal SqlRewriteScalarSubqueries(SqlFactory sqlFactory) {
     this.visitor = new Visitor(sqlFactory);
 }
コード例 #32
0
 internal Visitor(SqlBinder binder, Translator translator, SqlColumnizer columnizer, SqlFactory sqlFactory, MetaModel model, DataLoadOptions shape, bool canUseOuterApply) {
     this.binder = binder;
     this.translator = translator;
     this.columnizer = columnizer;
     this.sql = sqlFactory;
     this.typeProvider = sqlFactory.TypeProvider;
     this.expander = new SqlExpander(this.sql);
     this.aggregateChecker = new SqlAggregateChecker();
     this.linkMap = new LinkOptimizationScope(null);
     this.outerAliasMap = new Dictionary<SqlAlias, SqlAlias>();
     this.model = model;
     this.shape = shape;
     this.canUseOuterApply = canUseOuterApply;
 }
コード例 #33
0
 internal static SqlNode Simplify(SqlNode node, SqlFactory sql) {
     return new Visitor(sql).Visit(node);
 }
コード例 #34
0
 internal LongTypeConverter(SqlFactory sql)
 {
     this.visitor = new Visitor(sql);
 }
コード例 #35
0
 internal SqlFlattener(SqlFactory sql, SqlColumnizer columnizer) {
     this.visitor = new Visitor(sql, columnizer);
 }
コード例 #36
0
 internal Translator(IDataServices services, SqlFactory sqlFactory, TypeSystemProvider typeProvider) {
     this.services = services;
     this.sql = sqlFactory;
     this.typeProvider = typeProvider;
 }
コード例 #37
0
 internal Booleanizer(TypeSystemProvider typeProvider, MetaModel model) {
     this.sql = new SqlFactory(typeProvider, model);
 }
コード例 #38
0
 internal Visitor(SqlFactory sqlFactory) {
     this.sql = sqlFactory;
     this.aggregateChecker = new SqlAggregateChecker();
 }
コード例 #39
0
ファイル: SqlExpander.cs プロジェクト: dox0/DotNet471RS3
 internal SqlExpander(SqlFactory factory)
 {
     this.factory = factory;
 }
コード例 #40
0
 internal Visitor(SqlFactory sql) {
     this.sql = sql;
 }
コード例 #41
0
ファイル: SqlExpander.cs プロジェクト: dox0/DotNet471RS3
 internal Visitor(SqlFactory factory)
     : base(true)
 {
     this.factory = factory;
 }
コード例 #42
0
 internal Visitor(SqlFactory sql, SqlColumnizer columnizer) {
     this.sql = sql;
     this.columnizer = columnizer;
     this.isTopLevel = true;
 }
コード例 #43
0
 internal Lifter(TypeSystemProvider typeProvider, MetaModel model) {
     this.sql = new SqlFactory(typeProvider, model);
     this.aggregateChecker = new SqlAggregateChecker();
     this.rowNumberChecker = new SqlRowNumberChecker();
 }
コード例 #44
0
 internal Visitor(TypeSystemProvider typeProvider, SqlFactory sqlFactory) {
     this.orders = new List<SqlOrderExpression>();
     this.typeProvider = typeProvider;
     this.sql = sqlFactory;
     this.aggregateChecker = new SqlAggregateChecker();
 }
コード例 #45
0
 internal static SqlNode Convert(SqlNode node, SqlFactory sql, SqlProvider.ProviderMode providerMode) {
     return new Visitor(sql, providerMode).Visit(node);
 }
コード例 #46
0
 internal Visitor(SqlFactory sql, SqlProvider.ProviderMode providerMode) {
     this.sql = sql;
     this.providerMode = providerMode;
     this.skipper = new SqlSelectionSkipper(this);
 }
コード例 #47
0
 internal SqlMethodTransformer(SqlFactory sql) {
     this.sql = sql;
 }
コード例 #48
0
 internal Visitor(SqlFactory sqlFactory)
 {
     this.sql = sqlFactory;
     this.aggregateChecker = new SqlAggregateChecker();
 }
コード例 #49
0
 internal static SqlNode Reduce(SqlNode node, SqlNodeAnnotations annotations, SqlFactory sql) {
     return new Visitor(annotations, sql).Visit(node);
 }
コード例 #50
0
 internal SqlFlattener(SqlFactory sql, SqlColumnizer columnizer)
 {
     this.visitor = new Visitor(sql, columnizer);
 }
コード例 #51
0
 internal Visitor(SqlNodeAnnotations annotations, SqlFactory sql) {
     this.annotations = annotations;
     this.sql = sql;
 }
コード例 #52
0
 internal Visitor(TypeSystemProvider typeProvider, MetaModel model)
 {
     this.sql          = new SqlFactory(typeProvider, model);
     this.typeProvider = typeProvider;
 }
コード例 #53
0
 internal static SqlNode Simplify(SqlNode node, SqlFactory sql)
 {
     return(new Visitor(sql).Visit(node));
 }
コード例 #54
0
 internal Visitor(TypeSystemProvider typeProvider, MetaModel model) {
     this.sql = new SqlFactory(typeProvider, model);
     this.typeProvider = typeProvider;
 }
コード例 #55
0
ファイル: SqlBooleanizer.cs プロジェクト: dox0/DotNet471RS3
 internal Booleanizer(TypeSystemProvider typeProvider, MetaModel model)
 {
     this.sql = new SqlFactory(typeProvider, model);
 }