Język

NotMappedMemberAttributeConvention Klasa

Definicja

Konwencja, która ignoruje elementy członkowskie typów jednostek, które mają element NotMappedAttribute.

[System.Runtime.CompilerServices.Nullable(0)]
public class NotMappedMemberAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
public class NotMappedMemberAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type NotMappedMemberAttributeConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IComplexPropertyAddedConvention
type NotMappedMemberAttributeConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
Public Class NotMappedMemberAttributeConvention
Implements IComplexPropertyAddedConvention, IEntityTypeAddedConvention
Public Class NotMappedMemberAttributeConvention
Implements IEntityTypeAddedConvention
Dziedziczenie
NotMappedMemberAttributeConvention
Atrybuty
Implementuje

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Konwencje tworzenia modeli .

Konstruktory

Nazwisko Opis
NotMappedMemberAttributeConvention(ProviderConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy NotMappedMemberAttributeConvention.

Właściwości

Nazwisko Opis
Dependencies

Zależności dla tej usługi.

Metody

Nazwisko Opis
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Wywoływana po dodaniu właściwości złożonej do obiektu przypominającego typ.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływana po dodaniu typu jednostki do modelu.

ShouldIgnore(MemberInfo)

Zwraca wartość wskazującą, czy dany element członkowski CLR powinien być ignorowany.

Dotyczy