共用方式為


RelationalConnection 建構函式

定義

多載

RelationalConnection(RelationalConnectionDependencies)

初始化 RelationalConnection 類別的新執行個體。

RelationalConnection(IDbContextOptions, ILogger)

初始化 IRelationalConnection 類別的新執行個體。

RelationalConnection(RelationalConnectionDependencies)

初始化 RelationalConnection 類別的新執行個體。

protected RelationalConnection (Microsoft.EntityFrameworkCore.Storage.RelationalConnectionDependencies dependencies);
new Microsoft.EntityFrameworkCore.Storage.RelationalConnection : Microsoft.EntityFrameworkCore.Storage.RelationalConnectionDependencies -> Microsoft.EntityFrameworkCore.Storage.RelationalConnection
Protected Sub New (dependencies As RelationalConnectionDependencies)

參數

dependencies
RelationalConnectionDependencies

包含此服務相依性的參數物件。

適用於

RelationalConnection(IDbContextOptions, ILogger)

初始化 IRelationalConnection 類別的新執行個體。

protected RelationalConnection (Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions options, Microsoft.Extensions.Logging.ILogger logger);
new Microsoft.EntityFrameworkCore.Storage.RelationalConnection : Microsoft.EntityFrameworkCore.Infrastructure.IDbContextOptions * Microsoft.Extensions.Logging.ILogger -> Microsoft.EntityFrameworkCore.Storage.RelationalConnection
Protected Sub New (options As IDbContextOptions, logger As ILogger)

參數

options
IDbContextOptions

此連接將搭配使用之內容的選項。

logger
ILogger

要寫入的記錄器。

適用於