RelationalDatabase 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RelationalDatabase(DatabaseDependencies, RelationalDatabaseDependencies)
初始化 RelationalDatabase 類別的新執行個體。
public RelationalDatabase (Microsoft.EntityFrameworkCore.Storage.DatabaseDependencies dependencies, Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseDependencies relationalDependencies);
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabase : Microsoft.EntityFrameworkCore.Storage.DatabaseDependencies * Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseDependencies -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabase
Public Sub New (dependencies As DatabaseDependencies, relationalDependencies As RelationalDatabaseDependencies)
參數
- dependencies
- DatabaseDependencies
參數物件,其中包含此服務基底的相依性。
- relationalDependencies
- RelationalDatabaseDependencies
參數物件,其中包含此服務的關聯式相依性。
適用於
RelationalDatabase(IQueryCompilationContextFactory, ICommandBatchPreparer, IBatchExecutor, IRelationalConnection)
初始化 RelationalDatabase 類別的新執行個體。
public RelationalDatabase (Microsoft.EntityFrameworkCore.Query.IQueryCompilationContextFactory queryCompilationContextFactory, Microsoft.EntityFrameworkCore.Update.ICommandBatchPreparer batchPreparer, Microsoft.EntityFrameworkCore.Update.IBatchExecutor batchExecutor, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection);
new Microsoft.EntityFrameworkCore.Storage.RelationalDatabase : Microsoft.EntityFrameworkCore.Query.IQueryCompilationContextFactory * Microsoft.EntityFrameworkCore.Update.ICommandBatchPreparer * Microsoft.EntityFrameworkCore.Update.IBatchExecutor * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection -> Microsoft.EntityFrameworkCore.Storage.RelationalDatabase
Public Sub New (queryCompilationContextFactory As IQueryCompilationContextFactory, batchPreparer As ICommandBatchPreparer, batchExecutor As IBatchExecutor, connection As IRelationalConnection)
參數
- queryCompilationContextFactory
- IQueryCompilationContextFactory
- batchPreparer
- ICommandBatchPreparer
要使用的 ICommandBatchPreparer。
- batchExecutor
- IBatchExecutor
要使用的 IBatchExecutor。
- connection
- IRelationalConnection
要使用的 IRelationalConnection。