Bagikan melalui


NotMappedMemberAttributeConvention Kelas

Definisi

Konvensi yang mengabaikan anggota pada jenis entitas yang memiliki NotMappedAttribute.

public class NotMappedMemberAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
public class NotMappedMemberAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
type NotMappedMemberAttributeConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
type NotMappedMemberAttributeConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IComplexPropertyAddedConvention
Public Class NotMappedMemberAttributeConvention
Implements IEntityTypeAddedConvention
Public Class NotMappedMemberAttributeConvention
Implements IComplexPropertyAddedConvention, IEntityTypeAddedConvention
Warisan
NotMappedMemberAttributeConvention
Penerapan

Keterangan

Lihat Konvensi pembuatan model untuk informasi dan contoh selengkapnya.

Konstruktor

NotMappedMemberAttributeConvention(ProviderConventionSetBuilderDependencies)

Membuat instans baru .NotMappedMemberAttributeConvention

Properti

Dependencies

Dependensi untuk layanan ini.

Metode

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Dipanggil setelah properti kompleks ditambahkan ke objek seperti jenis.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Dipanggil setelah jenis entitas ditambahkan ke model.

ShouldIgnore(MemberInfo)

Mengembalikan nilai yang menunjukkan apakah anggota CLR yang diberikan harus diabaikan.

Berlaku untuk