Bagikan melalui


OwnedTypesConvention Kelas

Definisi

Perhatian

Entity types with defining navigations have been replaced by shared-type entity types

Konvensi yang mengonfigurasi jenis entitas yang dimiliki dengan menentukan navigasi sebagai jenis entitas yang dimiliki tanpa menentukan navigasi jika hanya ada satu navigasi jenis ini.

public class OwnedTypesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
[System.Obsolete("Entity types with defining navigations have been replaced by shared-type entity types")]
public class OwnedTypesConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeRemovedConvention
type OwnedTypesConvention = class
    interface IEntityTypeRemovedConvention
    interface IConvention
[<System.Obsolete("Entity types with defining navigations have been replaced by shared-type entity types")>]
type OwnedTypesConvention = class
    interface IEntityTypeRemovedConvention
    interface IConvention
Public Class OwnedTypesConvention
Implements IEntityTypeRemovedConvention
Warisan
OwnedTypesConvention
Atribut
Penerapan

Keterangan

Lihat Konvensi pembuatan model untuk informasi selengkapnya.

Konstruktor

OwnedTypesConvention(ProviderConventionSetBuilderDependencies)
Kedaluwarsa.

Membuat instans baru .OwnedTypesConvention

Properti

Dependencies
Kedaluwarsa.

Dependensi untuk layanan ini.

Metode

ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)
Kedaluwarsa.

Dipanggil setelah jenis entitas dihapus dari model.

Berlaku untuk