Język

OwnedAttributeConvention Klasa

Definicja

Konwencja, która konfiguruje typy jednostek, które mają OwnedAttribute jako własność.

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class OwnedAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<Microsoft.EntityFrameworkCore.OwnedAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type OwnedAttributeConvention = class
    inherit TypeAttributeConventionBase<OwnedAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
Public Class OwnedAttributeConvention
Inherits TypeAttributeConventionBase(Of OwnedAttribute)
Implements IComplexPropertyAddedConvention
Dziedziczenie
Atrybuty
Implementuje

Uwagi

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

Konstruktory

Nazwisko Opis
OwnedAttributeConvention(ProviderConventionSetBuilderDependencies)

Tworzy nowe wystąpienie klasy OwnedAttributeConvention.

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, OwnedAttribute, IConventionContext)

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

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, OwnedAttribute, 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