MigrationCommand 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
MigrationCommand(IRelationalCommand, Boolean)
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
创建 命令的新实例。
public MigrationCommand (Microsoft.EntityFrameworkCore.Storage.IRelationalCommand relationalCommand, bool transactionSuppressed = false);
new Microsoft.EntityFrameworkCore.Migrations.MigrationCommand : Microsoft.EntityFrameworkCore.Storage.IRelationalCommand * bool -> Microsoft.EntityFrameworkCore.Migrations.MigrationCommand
Public Sub New (relationalCommand As IRelationalCommand, Optional transactionSuppressed As Boolean = false)
参数
- relationalCommand
- IRelationalCommand
将用于执行命令的基础 IRelationalCommand 。
- transactionSuppressed
- Boolean
指示在执行命令时是否应取消事务。
适用于
MigrationCommand(IRelationalCommand, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, Boolean)
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
创建 命令的新实例。
public MigrationCommand (Microsoft.EntityFrameworkCore.Storage.IRelationalCommand relationalCommand, Microsoft.EntityFrameworkCore.DbContext context, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> logger, bool transactionSuppressed = false);
new Microsoft.EntityFrameworkCore.Migrations.MigrationCommand : Microsoft.EntityFrameworkCore.Storage.IRelationalCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Command> * bool -> Microsoft.EntityFrameworkCore.Migrations.MigrationCommand
Public Sub New (relationalCommand As IRelationalCommand, context As DbContext, logger As IDiagnosticsLogger(Of DbLoggerCategory.Database.Command), Optional transactionSuppressed As Boolean = false)
参数
- relationalCommand
- IRelationalCommand
将用于执行命令的基础 IRelationalCommand 。
命令记录器。
- transactionSuppressed
- Boolean
指示在执行命令时是否应取消事务。
适用于
MigrationCommand(IRelationalCommand, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
- Source:
- MigrationCommand.cs
创建 命令的新实例。
public MigrationCommand (Microsoft.EntityFrameworkCore.Storage.IRelationalCommand relationalCommand, Microsoft.EntityFrameworkCore.DbContext? context, Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger logger, bool transactionSuppressed = false);
new Microsoft.EntityFrameworkCore.Migrations.MigrationCommand : Microsoft.EntityFrameworkCore.Storage.IRelationalCommand * Microsoft.EntityFrameworkCore.DbContext * Microsoft.EntityFrameworkCore.Diagnostics.IRelationalCommandDiagnosticsLogger * bool -> Microsoft.EntityFrameworkCore.Migrations.MigrationCommand
Public Sub New (relationalCommand As IRelationalCommand, context As DbContext, logger As IRelationalCommandDiagnosticsLogger, Optional transactionSuppressed As Boolean = false)
参数
- relationalCommand
- IRelationalCommand
将用于执行命令的基础 IRelationalCommand 。
命令记录器。
- transactionSuppressed
- Boolean
指示在执行命令时是否应取消事务。