/// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public CosmosShapedQueryCompilingExpressionVisitorFactory( ShapedQueryCompilingExpressionVisitorDependencies dependencies, ISqlExpressionFactory sqlExpressionFactory, IQuerySqlGeneratorFactory querySqlGeneratorFactory) { _dependencies = dependencies; _sqlExpressionFactory = sqlExpressionFactory; _querySqlGeneratorFactory = querySqlGeneratorFactory; }
/// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public RelationalShapedQueryCompilingExpressionVisitorFactory( ShapedQueryCompilingExpressionVisitorDependencies dependencies, RelationalShapedQueryCompilingExpressionVisitorDependencies relationalDependencies) { Check.NotNull(dependencies, nameof(dependencies)); Check.NotNull(relationalDependencies, nameof(relationalDependencies)); Dependencies = dependencies; RelationalDependencies = relationalDependencies; }
public RelationalShapedQueryCompilingExpressionVisitor(ShapedQueryCompilingExpressionVisitorDependencies dependencies, RelationalShapedQueryCompilingExpressionVisitorDependencies relationalDependencies, QueryCompilationContext queryCompilationContext) : base(dependencies, relationalDependencies, queryCompilationContext) { _contextType = queryCompilationContext.ContextType; _logger = AppContext.TryGetSwitch("Microsoft.EntityFrameworkCore.Issue21016", out var isEnabled) && isEnabled ? queryCompilationContext.Logger : null; _tags = queryCompilationContext.Tags; _useRelationalNulls = RelationalOptionsExtension.Extract(queryCompilationContext.ContextOptions).UseRelationalNulls; }
/// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public CosmosShapedQueryCompilingExpressionVisitor( [NotNull] ShapedQueryCompilingExpressionVisitorDependencies dependencies, [NotNull] CosmosQueryCompilationContext cosmosQueryCompilationContext, [NotNull] ISqlExpressionFactory sqlExpressionFactory, [NotNull] IQuerySqlGeneratorFactory querySqlGeneratorFactory) : base(dependencies, cosmosQueryCompilationContext) { _sqlExpressionFactory = sqlExpressionFactory; _querySqlGeneratorFactory = querySqlGeneratorFactory; _contextType = cosmosQueryCompilationContext.ContextType; _partitionKeyFromExtension = cosmosQueryCompilationContext.PartitionKeyFromExtension; }
/// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public CosmosShapedQueryCompilingExpressionVisitor( ShapedQueryCompilingExpressionVisitorDependencies dependencies, QueryCompilationContext queryCompilationContext, ISqlExpressionFactory sqlExpressionFactory, IQuerySqlGeneratorFactory querySqlGeneratorFactory) : base(dependencies, queryCompilationContext) { _sqlExpressionFactory = sqlExpressionFactory; _querySqlGeneratorFactory = querySqlGeneratorFactory; _contextType = queryCompilationContext.ContextType; _logger = queryCompilationContext.Logger; }
public CosmosShapedQueryCompilingExpressionVisitorFactory( ShapedQueryCompilingExpressionVisitorDependencies dependencies, ISqlExpressionFactory sqlExpressionFactory, IQuerySqlGeneratorFactory querySqlGeneratorFactory) { Check.NotNull(dependencies, nameof(dependencies)); Check.NotNull(sqlExpressionFactory, nameof(sqlExpressionFactory)); Check.NotNull(querySqlGeneratorFactory, nameof(querySqlGeneratorFactory)); Dependencies = dependencies; _sqlExpressionFactory = sqlExpressionFactory; _querySqlGeneratorFactory = querySqlGeneratorFactory; }
public CosmosShapedQueryCompilingExpressionVisitor( ShapedQueryCompilingExpressionVisitorDependencies dependencies, CosmosQueryCompilationContext cosmosQueryCompilationContext, ISqlExpressionFactory sqlExpressionFactory, IQuerySqlGeneratorFactory querySqlGeneratorFactory) : base(dependencies, cosmosQueryCompilationContext) { _sqlExpressionFactory = sqlExpressionFactory; _querySqlGeneratorFactory = querySqlGeneratorFactory; _contextType = cosmosQueryCompilationContext.ContextType; _threadSafetyChecksEnabled = dependencies.CoreSingletonOptions.AreThreadSafetyChecksEnabled; _partitionKeyFromExtension = cosmosQueryCompilationContext.PartitionKeyFromExtension; }
public HarmonyShapedQueryCompilingExpressionVisitor( ShapedQueryCompilingExpressionVisitorDependencies dependencies, QueryCompilationContext queryCompilationContext) : base(dependencies, queryCompilationContext) { _contextType = queryCompilationContext.ContextType; _logger = queryCompilationContext.Logger; _compilationContext = queryCompilationContext as HarmonyQueryCompilationContext; if (_compilationContext == null) { throw new Exception("invalid compilation context"); } }
/// <summary> /// Creates a new instance of the <see cref="ShapedQueryCompilingExpressionVisitor" /> class. /// </summary> /// <param name="dependencies">Parameter object containing dependencies for this class.</param> /// <param name="relationalDependencies">Parameter object containing relational dependencies for this class.</param> /// <param name="queryCompilationContext">The query compilation context object to use.</param> public RelationalShapedQueryCompilingExpressionVisitor( ShapedQueryCompilingExpressionVisitorDependencies dependencies, RelationalShapedQueryCompilingExpressionVisitorDependencies relationalDependencies, QueryCompilationContext queryCompilationContext) : base(dependencies, queryCompilationContext) { RelationalDependencies = relationalDependencies; _contextType = queryCompilationContext.ContextType; _tags = queryCompilationContext.Tags; _threadSafetyChecksEnabled = dependencies.CoreSingletonOptions.AreThreadSafetyChecksEnabled; _detailedErrorsEnabled = dependencies.CoreSingletonOptions.AreDetailedErrorsEnabled; _useRelationalNulls = RelationalOptionsExtension.Extract(queryCompilationContext.ContextOptions).UseRelationalNulls; }
/// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public InMemoryShapedQueryCompilingExpressionVisitorFactory( [NotNull] ShapedQueryCompilingExpressionVisitorDependencies dependencies) { _dependencies = dependencies; }
public HarmonyShapedQueryCompilingExpressionVisitorFactory(ShapedQueryCompilingExpressionVisitorDependencies dependencies) { _dependencies = dependencies; }
public FileContextShapedQueryCompilingExpressionVisitorFactory(ShapedQueryCompilingExpressionVisitorDependencies dependencies) { _dependencies = dependencies; }