언어

MigrationCommand 클래스

정의

데이터베이스로 전송하여 마이그레이션할 준비가 된 명령을 나타냅니다.

public class MigrationCommand
[System.Runtime.CompilerServices.Nullable(0)]
public class MigrationCommand
type MigrationCommand = class
[<System.Runtime.CompilerServices.Nullable(0)>]
type MigrationCommand = class
Public Class MigrationCommand
상속
MigrationCommand
특성

설명

자세한 내용 및 예제는 데이터베이스 마이그레이션 을 참조하세요.

생성자

속성 Description
MigrationCommand(IRelationalCommand, Boolean)

명령의 새 인스턴스를 만듭니다.

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

명령의 새 인스턴스를 만듭니다.

MigrationCommand(IRelationalCommand, DbContext, IRelationalCommandDiagnosticsLogger, Boolean)

명령의 새 인스턴스를 만듭니다.

속성

속성 Description
CommandLogger

연결된 명령 로거입니다.

CommandText

데이터베이스에 대해 실행될 SQL 명령 텍스트입니다.

TransactionSuppressed

명령을 실행하는 동안 트랜잭션을 표시하지 않아야 하는지 여부를 나타냅니다.

메서드

속성 Description
ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)

데이터베이스로 전송하여 마이그레이션할 준비가 된 명령을 나타냅니다.

ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String,Object>)

명령을 실행하고 영향을 받는 행 수를 반환합니다.

ExecuteNonQueryAsync(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean, CancellationToken)

데이터베이스로 전송하여 마이그레이션할 준비가 된 명령을 나타냅니다.

ExecuteNonQueryAsync(IRelationalConnection, IReadOnlyDictionary<String,Object>, CancellationToken)

명령을 실행하고 영향을 받는 행 수를 반환합니다.

적용 대상