다음을 통해 공유


CSharpMigrationsGenerator.GenerateSnapshot 메서드

정의

모델 스냅샷 코드를 생성합니다.

public override string GenerateSnapshot (string modelSnapshotNamespace, Type contextType, string modelSnapshotName, Microsoft.EntityFrameworkCore.Metadata.IModel model);
public override string GenerateSnapshot (string? modelSnapshotNamespace, Type contextType, string modelSnapshotName, Microsoft.EntityFrameworkCore.Metadata.IModel model);
override this.GenerateSnapshot : string * Type * string * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
Public Overrides Function GenerateSnapshot (modelSnapshotNamespace As String, contextType As Type, modelSnapshotName As String, model As IModel) As String

매개 변수

modelSnapshotNamespace
String

모델 스냅샷 네임스페이스입니다.

contextType
Type

모델 스냅샷 형식입니다DbContext.

modelSnapshotName
String

모델 스냅샷 이름입니다.

model
IModel

모델입니다.

반환

모델 스냅샷 코드입니다.

적용 대상