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

要写入的记录器。

适用于