KeylessAttributeConvention Klasa

Definicja

Konwencja, która ignoruje typy jednostek, które mają element KeylessAttribute.

public class KeylessAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<Microsoft.EntityFrameworkCore.KeylessAttribute>
type KeylessAttributeConvention = class
    inherit TypeAttributeConventionBase<KeylessAttribute>
Public Class KeylessAttributeConvention
Inherits TypeAttributeConventionBase(Of KeylessAttribute)
Dziedziczenie

Uwagi

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

Konstruktory

KeylessAttributeConvention(ProviderConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy KeylessAttributeConvention.

Właściwości

Dependencies

Zależności dla tej usługi.

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)

Metody

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

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

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)
ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

Wywoływane po dodaniu typu złożonego do modelu, jeśli ma atrybut.

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływane po dodaniu typu jednostki do modelu.

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, KeylessAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływane po dodaniu typu jednostki do modelu, jeśli ma atrybut.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływane po dodaniu typu jednostki do modelu, jeśli ma atrybut.

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)
ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

Próbuje zastąpić typ złożony typem jednostki.

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)

Dotyczy