언어

IMigrationsCodeGenerator.GenerateSnapshot 메서드

정의

오버로드

속성 Description
GenerateSnapshot(String, Type, String, IModel)

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

GenerateSnapshot(String, Type, String, IModel, String)

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

GenerateSnapshot(String, Type, String, IModel)

Source:
IMigrationsCodeGenerator.cs
Source:
IMigrationsCodeGenerator.cs
Source:
IMigrationsCodeGenerator.cs
Source:
IMigrationsCodeGenerator.cs

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

public string GenerateSnapshot(string? modelSnapshotNamespace, Type contextType, string modelSnapshotName, Microsoft.EntityFrameworkCore.Metadata.IModel model);
public string GenerateSnapshot(string modelSnapshotNamespace, Type contextType, string modelSnapshotName, Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member GenerateSnapshot : string * Type * string * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
Public 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

모델.

반품

모델 스냅샷 코드입니다.

적용 대상

GenerateSnapshot(String, Type, String, IModel, String)

Source:
IMigrationsCodeGenerator.cs

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

public string GenerateSnapshot(string? modelSnapshotNamespace, Type contextType, string modelSnapshotName, Microsoft.EntityFrameworkCore.Metadata.IModel model, string? latestMigrationId = default);
abstract member GenerateSnapshot : string * Type * string * Microsoft.EntityFrameworkCore.Metadata.IModel * string -> string
Public Function GenerateSnapshot (modelSnapshotNamespace As String, contextType As Type, modelSnapshotName As String, model As IModel, Optional latestMigrationId As String = Nothing) As String

매개 변수

modelSnapshotNamespace
String

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

contextType
Type

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

modelSnapshotName
String

모델 스냅샷의 이름입니다.

model
IModel

모델.

latestMigrationId
String

모델에 적용된 최신 마이그레이션의 ID입니다.

반품

모델 스냅샷 코드입니다.

적용 대상