MigrationCommand 构造函数

定义

重载

MigrationCommand(IRelationalCommand, Boolean)

创建 命令的新实例。

MigrationCommand(IRelationalCommand, DbContext, IDiagnosticsLogger<DbLoggerCategory.Database.Command>, Boolean)

创建 命令的新实例。

MigrationCommand(IRelationalCommand, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

创建 命令的新实例。

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

context
DbContext

当前 DbContext 或 null(如果未知)。

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

context
DbContext

当前 DbContextnull (如果未知)。

logger
IRelationalCommandDiagnosticsLogger

命令记录器。

transactionSuppressed
Boolean

指示在执行命令时是否应取消事务。

适用于