IMigrationsCodeGenerator.GenerateSnapshot 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| 속성 | 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
모델 스냅샷의 네임스페이스입니다.
- 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
모델 스냅샷의 네임스페이스입니다.
- modelSnapshotName
- String
모델 스냅샷의 이름입니다.
- model
- IModel
모델.
- latestMigrationId
- String
모델에 적용된 최신 마이그레이션의 ID입니다.
반품
모델 스냅샷 코드입니다.