Język

KeylessAttributeConvention Klasa

Definicja

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

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class KeylessAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<Microsoft.EntityFrameworkCore.KeylessAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type KeylessAttributeConvention = class
    inherit TypeAttributeConventionBase<KeylessAttribute>
Public Class KeylessAttributeConvention
Inherits TypeAttributeConventionBase(Of KeylessAttribute)
Dziedziczenie
Atrybuty

Uwagi

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

Konstruktory

Nazwisko Opis
KeylessAttributeConvention(ProviderConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy KeylessAttributeConvention.

Właściwości

Nazwisko Opis
Dependencies

Zależności dla tej usługi.

(Odziedziczone po TypeAttributeConventionBase<TAttribute>)

Metody

Nazwisko Opis
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ływana po dodaniu typu złożonego do modelu, jeśli ma atrybut.

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

Wywoływana po dodaniu typu jednostki do modelu.

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

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

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Wywoływana 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