RelationalQueryContext 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RelationalQueryContext(QueryContextDependencies, RelationalQueryContextDependencies) |
建立新的 RelationalQueryContext 執行個體。 此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。 |
RelationalQueryContext(QueryContextDependencies, Func<IQueryBuffer>, IRelationalConnection, IExecutionStrategyFactory) |
此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。 |
RelationalQueryContext(Func<IQueryBuffer>, IRelationalConnection, IStateManager, IConcurrencyDetector) |
此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。 |
RelationalQueryContext(Func<IQueryBuffer>, IRelationalConnection, LazyRef<IStateManager>, IConcurrencyDetector, IExecutionStrategyFactory) |
此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。 |
RelationalQueryContext(QueryContextDependencies, RelationalQueryContextDependencies)
建立新的 RelationalQueryContext 執行個體。
此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。
public RelationalQueryContext (Microsoft.EntityFrameworkCore.Query.QueryContextDependencies dependencies, Microsoft.EntityFrameworkCore.Query.RelationalQueryContextDependencies relationalDependencies);
new Microsoft.EntityFrameworkCore.Query.RelationalQueryContext : Microsoft.EntityFrameworkCore.Query.QueryContextDependencies * Microsoft.EntityFrameworkCore.Query.RelationalQueryContextDependencies -> Microsoft.EntityFrameworkCore.Query.RelationalQueryContext
Public Sub New (dependencies As QueryContextDependencies, relationalDependencies As RelationalQueryContextDependencies)
參數
- dependencies
- QueryContextDependencies
參數物件,其中包含這個類別的相依性。
- relationalDependencies
- RelationalQueryContextDependencies
參數物件,其中包含這個類別的關聯式相依性。
適用於
RelationalQueryContext(QueryContextDependencies, Func<IQueryBuffer>, IRelationalConnection, IExecutionStrategyFactory)
此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。
public RelationalQueryContext (Microsoft.EntityFrameworkCore.Query.QueryContextDependencies dependencies, Func<Microsoft.EntityFrameworkCore.Query.Internal.IQueryBuffer> queryBufferFactory, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory);
new Microsoft.EntityFrameworkCore.Query.RelationalQueryContext : Microsoft.EntityFrameworkCore.Query.QueryContextDependencies * Func<Microsoft.EntityFrameworkCore.Query.Internal.IQueryBuffer> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Query.RelationalQueryContext
Public Sub New (dependencies As QueryContextDependencies, queryBufferFactory As Func(Of IQueryBuffer), connection As IRelationalConnection, executionStrategyFactory As IExecutionStrategyFactory)
參數
- dependencies
- QueryContextDependencies
- queryBufferFactory
- Func<Microsoft.EntityFrameworkCore.Query.Internal.IQueryBuffer>
- connection
- IRelationalConnection
- executionStrategyFactory
- IExecutionStrategyFactory
適用於
RelationalQueryContext(Func<IQueryBuffer>, IRelationalConnection, IStateManager, IConcurrencyDetector)
此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。
public RelationalQueryContext (Func<Microsoft.EntityFrameworkCore.Query.Internal.IQueryBuffer> queryBufferFactory, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IStateManager stateManager, Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector concurrencyDetector);
new Microsoft.EntityFrameworkCore.Query.RelationalQueryContext : Func<Microsoft.EntityFrameworkCore.Query.Internal.IQueryBuffer> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IStateManager * Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector -> Microsoft.EntityFrameworkCore.Query.RelationalQueryContext
Public Sub New (queryBufferFactory As Func(Of IQueryBuffer), connection As IRelationalConnection, stateManager As IStateManager, concurrencyDetector As IConcurrencyDetector)
參數
- queryBufferFactory
- Func<Microsoft.EntityFrameworkCore.Query.Internal.IQueryBuffer>
- connection
- IRelationalConnection
- stateManager
- Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IStateManager
- concurrencyDetector
- Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector
適用於
RelationalQueryContext(Func<IQueryBuffer>, IRelationalConnection, LazyRef<IStateManager>, IConcurrencyDetector, IExecutionStrategyFactory)
此 API 支援 Entity Framework Core 基礎結構,而且不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。
public RelationalQueryContext (Func<Microsoft.EntityFrameworkCore.Query.Internal.IQueryBuffer> queryBufferFactory, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, Microsoft.EntityFrameworkCore.Internal.LazyRef<Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IStateManager> stateManager, Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector concurrencyDetector, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory executionStrategyFactory);
new Microsoft.EntityFrameworkCore.Query.RelationalQueryContext : Func<Microsoft.EntityFrameworkCore.Query.Internal.IQueryBuffer> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * Microsoft.EntityFrameworkCore.Internal.LazyRef<Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IStateManager> * Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector * Microsoft.EntityFrameworkCore.Storage.IExecutionStrategyFactory -> Microsoft.EntityFrameworkCore.Query.RelationalQueryContext
Public Sub New (queryBufferFactory As Func(Of IQueryBuffer), connection As IRelationalConnection, stateManager As LazyRef(Of IStateManager), concurrencyDetector As IConcurrencyDetector, executionStrategyFactory As IExecutionStrategyFactory)
參數
- queryBufferFactory
- Func<Microsoft.EntityFrameworkCore.Query.Internal.IQueryBuffer>
- connection
- IRelationalConnection
- stateManager
- Microsoft.EntityFrameworkCore.Internal.LazyRef<Microsoft.EntityFrameworkCore.ChangeTracking.Internal.IStateManager>
- concurrencyDetector
- Microsoft.EntityFrameworkCore.Internal.IConcurrencyDetector
- executionStrategyFactory
- IExecutionStrategyFactory