다음을 통해 공유


MigrationCodeGenerator.Generate 메서드

정의

사용자 프로젝트에 추가해야 하는 코드를 생성합니다.

public abstract System.Data.Entity.Migrations.Design.ScaffoldedMigration Generate (string migrationId, System.Collections.Generic.IEnumerable<System.Data.Entity.Migrations.Model.MigrationOperation> operations, string sourceModel, string targetModel, string namespace, string className);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId="namespace")]
public abstract System.Data.Entity.Migrations.Design.ScaffoldedMigration Generate (string migrationId, System.Collections.Generic.IEnumerable<System.Data.Entity.Migrations.Model.MigrationOperation> operations, string sourceModel, string targetModel, string namespace, string className);
abstract member Generate : string * seq<System.Data.Entity.Migrations.Model.MigrationOperation> * string * string * string * string -> System.Data.Entity.Migrations.Design.ScaffoldedMigration
Public MustOverride Function Generate (migrationId As String, operations As IEnumerable(Of MigrationOperation), sourceModel As String, targetModel As String, namespace As String, className As String) As ScaffoldedMigration

매개 변수

migrationId
String

마이그레이션의 고유 식별자입니다.

operations
IEnumerable<MigrationOperation>

마이그레이션에서 수행할 작업입니다.

sourceModel
String

마이그레이션 메타데이터에 저장할 원본 모델입니다.

targetModel
String

마이그레이션 메타데이터에 저장할 대상 모델입니다.

namespace
String

코드를 생성해야 하는 네임스페이스입니다.

className
String

생성해야 하는 클래스의 이름입니다.

반환

생성된 코드입니다.

특성

적용 대상