RelationalConnection 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RelationalConnection(RelationalConnectionDependencies) |
初始化 RelationalConnection 类的新实例。 |
RelationalConnection(IDbContextOptions, ILogger) |
初始化 IRelationalConnection 类的新实例。 |
RelationalConnection(RelationalConnectionDependencies)
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
- Source:
- RelationalConnection.cs
初始化 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
要写入的记录器。