TypeMappingConvention Kelas
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Perhatian
Use IModelRuntimeInitializer.Initialize instead.
Konvensi yang membuat dan menetapkan pemetaan jenis penyimpanan ke properti entitas.
public class TypeMappingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class TypeMappingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[System.Obsolete("Use IModelRuntimeInitializer.Initialize instead.")]
public class TypeMappingConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type TypeMappingConvention = class
interface IModelFinalizedConvention
interface IConvention
type TypeMappingConvention = class
interface IModelFinalizingConvention
interface IConvention
[<System.Obsolete("Use IModelRuntimeInitializer.Initialize instead.")>]
type TypeMappingConvention = class
interface IModelFinalizingConvention
interface IConvention
Public Class TypeMappingConvention
Implements IModelFinalizedConvention
Public Class TypeMappingConvention
Implements IModelFinalizingConvention
- Warisan
-
TypeMappingConvention
- Atribut
- Penerapan
Keterangan
Lihat Konvensi pembuatan model untuk informasi selengkapnya.
Konstruktor
TypeMappingConvention(ProviderConventionSetBuilderDependencies) |
Kedaluwarsa.
Membuat instans baru .TypeMappingConvention |
Properti
Dependencies |
Kedaluwarsa.
Dependensi untuk layanan ini. |
Metode
ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Kedaluwarsa.
Dipanggil setelah model diselesaikan. |
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Kedaluwarsa.
Dipanggil ketika model sedang diselesaikan. |
Berlaku untuk
Entity Framework
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk