QueryCompilationContextDependencies 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
QueryCompilationContextDependencies(IModel, IQueryTranslationPreprocessorFactory, IQueryableMethodTranslatingExpressionVisitorFactory, IQueryTranslationPostprocessorFactory, IShapedQueryCompilingExpressionVisitorFactory, ICurrentDbContext, IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Query>)
建立 的服務 QueryCompilationContext 相依性參數物件。
請勿直接從提供者或應用程式程式碼呼叫此建構函式,因為它可能會在新增相依性時變更。 請改用建構函式中的這個類型,以便由相依性插入容器自動建立和插入實例。 若要建立已取代某些相依服務的實例,請先從相依性插入容器解析物件,然後使用 'With...' 取代選取的服務方法。 請勿在此進程中的任何時間點呼叫建構函式。
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public QueryCompilationContextDependencies (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Query.IQueryTranslationPreprocessorFactory queryTranslationPreprocessorFactory, Microsoft.EntityFrameworkCore.Query.IQueryableMethodTranslatingExpressionVisitorFactory queryableMethodTranslatingExpressionVisitorFactory, Microsoft.EntityFrameworkCore.Query.IQueryTranslationPostprocessorFactory queryTranslationPostprocessorFactory, Microsoft.EntityFrameworkCore.Query.IShapedQueryCompilingExpressionVisitorFactory shapedQueryCompilingExpressionVisitorFactory, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Query.IQueryTranslationPreprocessorFactory * Microsoft.EntityFrameworkCore.Query.IQueryableMethodTranslatingExpressionVisitorFactory * Microsoft.EntityFrameworkCore.Query.IQueryTranslationPostprocessorFactory * Microsoft.EntityFrameworkCore.Query.IShapedQueryCompilingExpressionVisitorFactory * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Sub New (model As IModel, queryTranslationPreprocessorFactory As IQueryTranslationPreprocessorFactory, queryableMethodTranslatingExpressionVisitorFactory As IQueryableMethodTranslatingExpressionVisitorFactory, queryTranslationPostprocessorFactory As IQueryTranslationPostprocessorFactory, shapedQueryCompilingExpressionVisitorFactory As IShapedQueryCompilingExpressionVisitorFactory, currentContext As ICurrentDbContext, contextOptions As IDbContextOptions, logger As IDiagnosticsLogger(Of DbLoggerCategory.Query))
參數
- model
- IModel
- queryTranslationPreprocessorFactory
- IQueryTranslationPreprocessorFactory
- queryableMethodTranslatingExpressionVisitorFactory
- IQueryableMethodTranslatingExpressionVisitorFactory
- queryTranslationPostprocessorFactory
- IQueryTranslationPostprocessorFactory
- shapedQueryCompilingExpressionVisitorFactory
- IShapedQueryCompilingExpressionVisitorFactory
- currentContext
- ICurrentDbContext
- contextOptions
- IDbContextOptions
- 屬性
適用於
QueryCompilationContextDependencies(IModel, IQueryTranslationPreprocessorFactory, IQueryableMethodTranslatingExpressionVisitorFactory, IQueryTranslationPostprocessorFactory, IShapedQueryCompilingExpressionVisitorFactory, IExecutionStrategy, ICurrentDbContext, IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Query>)
建立 的服務 QueryCompilationContext 相依性參數物件。
請勿直接從提供者或應用程式程式碼呼叫此建構函式,因為它可能會在新增相依性時變更。 請改用建構函式中的這個類型,以便由相依性插入容器自動建立和插入實例。 若要建立已取代某些相依服務的實例,請先從相依性插入容器解析物件,然後使用 'With...' 取代選取的服務方法。 請勿在此進程中的任何時間點呼叫建構函式。
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public QueryCompilationContextDependencies (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Query.IQueryTranslationPreprocessorFactory queryTranslationPreprocessorFactory, Microsoft.EntityFrameworkCore.Query.IQueryableMethodTranslatingExpressionVisitorFactory queryableMethodTranslatingExpressionVisitorFactory, Microsoft.EntityFrameworkCore.Query.IQueryTranslationPostprocessorFactory queryTranslationPostprocessorFactory, Microsoft.EntityFrameworkCore.Query.IShapedQueryCompilingExpressionVisitorFactory shapedQueryCompilingExpressionVisitorFactory, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy executionStrategy, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Query.IQueryTranslationPreprocessorFactory * Microsoft.EntityFrameworkCore.Query.IQueryableMethodTranslatingExpressionVisitorFactory * Microsoft.EntityFrameworkCore.Query.IQueryTranslationPostprocessorFactory * Microsoft.EntityFrameworkCore.Query.IShapedQueryCompilingExpressionVisitorFactory * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Sub New (model As IModel, queryTranslationPreprocessorFactory As IQueryTranslationPreprocessorFactory, queryableMethodTranslatingExpressionVisitorFactory As IQueryableMethodTranslatingExpressionVisitorFactory, queryTranslationPostprocessorFactory As IQueryTranslationPostprocessorFactory, shapedQueryCompilingExpressionVisitorFactory As IShapedQueryCompilingExpressionVisitorFactory, executionStrategy As IExecutionStrategy, currentContext As ICurrentDbContext, contextOptions As IDbContextOptions, logger As IDiagnosticsLogger(Of DbLoggerCategory.Query))
參數
- model
- IModel
- queryTranslationPreprocessorFactory
- IQueryTranslationPreprocessorFactory
- queryableMethodTranslatingExpressionVisitorFactory
- IQueryableMethodTranslatingExpressionVisitorFactory
- queryTranslationPostprocessorFactory
- IQueryTranslationPostprocessorFactory
- shapedQueryCompilingExpressionVisitorFactory
- IShapedQueryCompilingExpressionVisitorFactory
- executionStrategy
- IExecutionStrategy
- currentContext
- ICurrentDbContext
- contextOptions
- IDbContextOptions
- 屬性
適用於
QueryCompilationContextDependencies(IModel, IQueryTranslationPreprocessorFactory, IQueryableMethodTranslatingExpressionVisitorFactory, IQueryTranslationPostprocessorFactory, IShapedQueryCompilingExpressionVisitorFactory, IExecutionStrategyFactory, ICurrentDbContext, IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Query>)
建立 的服務 QueryCompilationContext 相依性參數物件。
請勿直接從提供者或應用程式程式碼呼叫此建構函式,因為它可能會在新增相依性時變更。 請改用建構函式中的這個類型,以便由相依性插入容器自動建立和插入實例。 若要建立已取代某些相依服務的實例,請先從相依性插入容器解析物件,然後使用 'With...' 取代選取的服務方法。 請勿在此進程中的任何時間點呼叫建構函式。
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public QueryCompilationContextDependencies (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Query.IQueryTranslationPreprocessorFactory queryTranslationPreprocessorFactory, Microsoft.EntityFrameworkCore.Query.IQueryableMethodTranslatingExpressionVisitorFactory queryableMethodTranslatingExpressionVisitorFactory, Microsoft.EntityFrameworkCore.Query.IQueryTranslationPostprocessorFactory queryTranslationPostprocessorFactory, Microsoft.EntityFrameworkCore.Query.IShapedQueryCompilingExpressionVisitorFactory shapedQueryCompilingExpressionVisitorFactory, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Query.IQueryTranslationPreprocessorFactory * Microsoft.EntityFrameworkCore.Query.IQueryableMethodTranslatingExpressionVisitorFactory * Microsoft.EntityFrameworkCore.Query.IQueryTranslationPostprocessorFactory * Microsoft.EntityFrameworkCore.Query.IShapedQueryCompilingExpressionVisitorFactory * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Sub New (model As IModel, queryTranslationPreprocessorFactory As IQueryTranslationPreprocessorFactory, queryableMethodTranslatingExpressionVisitorFactory As IQueryableMethodTranslatingExpressionVisitorFactory, queryTranslationPostprocessorFactory As IQueryTranslationPostprocessorFactory, shapedQueryCompilingExpressionVisitorFactory As IShapedQueryCompilingExpressionVisitorFactory, executionStrategyFactory As IExecutionStrategyFactory, currentContext As ICurrentDbContext, contextOptions As IDbContextOptions, logger As IDiagnosticsLogger(Of DbLoggerCategory.Query))
參數
- model
- IModel
- queryTranslationPreprocessorFactory
- IQueryTranslationPreprocessorFactory
- queryableMethodTranslatingExpressionVisitorFactory
- IQueryableMethodTranslatingExpressionVisitorFactory
- queryTranslationPostprocessorFactory
- IQueryTranslationPostprocessorFactory
- shapedQueryCompilingExpressionVisitorFactory
- IShapedQueryCompilingExpressionVisitorFactory
- executionStrategyFactory
- IExecutionStrategyFactory
- currentContext
- ICurrentDbContext
- contextOptions
- IDbContextOptions
- 屬性
適用於
QueryCompilationContextDependencies(IModel, IQueryTranslationPreprocessorFactory, IQueryableMethodTranslatingExpressionVisitorFactory, IQueryTranslationPostprocessorFactory, IShapedQueryCompilingExpressionVisitorFactory, IExecutionStrategy, ICurrentDbContext, IDbContextOptions, IDiagnosticsLogger<DbLoggerCategory.Query>, IInterceptors)
這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。
[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
public QueryCompilationContextDependencies (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Query.IQueryTranslationPreprocessorFactory queryTranslationPreprocessorFactory, Microsoft.EntityFrameworkCore.Query.IQueryableMethodTranslatingExpressionVisitorFactory queryableMethodTranslatingExpressionVisitorFactory, Microsoft.EntityFrameworkCore.Query.IQueryTranslationPostprocessorFactory queryTranslationPostprocessorFactory, Microsoft.EntityFrameworkCore.Query.IShapedQueryCompilingExpressionVisitorFactory shapedQueryCompilingExpressionVisitorFactory, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy executionStrategy, Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext currentContext, Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions contextOptions, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> logger, Microsoft.EntityFrameworkCore.Diagnostics.IInterceptors interceptors);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
new Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Query.IQueryTranslationPreprocessorFactory * Microsoft.EntityFrameworkCore.Query.IQueryableMethodTranslatingExpressionVisitorFactory * Microsoft.EntityFrameworkCore.Query.IQueryTranslationPostprocessorFactory * Microsoft.EntityFrameworkCore.Query.IShapedQueryCompilingExpressionVisitorFactory * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy * Microsoft.EntityFrameworkCore.Infrastructure.ICurrentDbContext * Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Query> * Microsoft.EntityFrameworkCore.Diagnostics.IInterceptors -> Microsoft.EntityFrameworkCore.Query.QueryCompilationContextDependencies
Public Sub New (model As IModel, queryTranslationPreprocessorFactory As IQueryTranslationPreprocessorFactory, queryableMethodTranslatingExpressionVisitorFactory As IQueryableMethodTranslatingExpressionVisitorFactory, queryTranslationPostprocessorFactory As IQueryTranslationPostprocessorFactory, shapedQueryCompilingExpressionVisitorFactory As IShapedQueryCompilingExpressionVisitorFactory, executionStrategy As IExecutionStrategy, currentContext As ICurrentDbContext, contextOptions As IDbContextOptions, logger As IDiagnosticsLogger(Of DbLoggerCategory.Query), interceptors As IInterceptors)
參數
- model
- IModel
- queryTranslationPreprocessorFactory
- IQueryTranslationPreprocessorFactory
- queryableMethodTranslatingExpressionVisitorFactory
- IQueryableMethodTranslatingExpressionVisitorFactory
- queryTranslationPostprocessorFactory
- IQueryTranslationPostprocessorFactory
- shapedQueryCompilingExpressionVisitorFactory
- IShapedQueryCompilingExpressionVisitorFactory
- executionStrategy
- IExecutionStrategy
- currentContext
- ICurrentDbContext
- contextOptions
- IDbContextOptions
- interceptors
- IInterceptors
- 屬性
備註
請勿直接從提供者或應用程式程式碼呼叫此建構函式,因為它可能會在新增相依性時變更。 請改用建構函式中的這個類型,以便由相依性插入容器自動建立和插入實例。 若要建立已取代某些相依服務的實例,請先從相依性插入容器解析物件,然後使用 C# 'with' 運算子取代選取的服務。 請勿在此進程中的任何時間點呼叫建構函式。