다음을 통해 공유


OperationExecutor.ScriptMigration 클래스

정의

마이그레이션에서 SQL 스크립트를 생성하는 작업을 나타냅니다.

public class OperationExecutor.ScriptMigration : Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase
type OperationExecutor.ScriptMigration = class
    inherit OperationExecutor.OperationBase
Public Class OperationExecutor.ScriptMigration
Inherits OperationExecutor.OperationBase
상속
OperationExecutor.ScriptMigration
상속
OperationExecutor.ScriptMigration

생성자

OperationExecutor.ScriptMigration(OperationExecutor, IOperationResultHandler, IDictionary)

OperationExecutor.ScriptMigration 클래스의 새 인스턴스를 초기화합니다.

OperationExecutor.ScriptMigration(OperationExecutor, Object, IDictionary)

OperationExecutor.ScriptMigration 클래스의 새 인스턴스를 초기화합니다.

에서 지원하는 args 인수는 다음과 같습니다.

fromMigration--시작 마이그레이션입니다. 기본값은 InitialDatabase입니다.

toMigration--종료 마이그레이션입니다. 기본값은 마지막 마이그레이션입니다.

idempotent--마이그레이션 시 데이터베이스에서 사용할 수 있는 스크립트를 생성합니다.

contextType--사용할 입니다 DbContext .

메서드

Execute(Action)

예외를 에 전달하는 작업을 실행합니다 IOperationResultHandler.

(다음에서 상속됨 OperationExecutor.OperationBase)
Execute<T>(Func<IEnumerable<T>>)

결과 또는 예외를 에 전달하는 작업을 실행합니다 IOperationResultHandler.

(다음에서 상속됨 OperationExecutor.OperationBase)
Execute<T>(Func<T>)

결과 또는 예외를 에 전달하는 작업을 실행합니다 IOperationResultHandler.

(다음에서 상속됨 OperationExecutor.OperationBase)

적용 대상