Sdílet prostřednictvím


OwnedAttributeConvention Třída

Definice

Konvence, která konfiguruje typy entit, které mají OwnedAttribute jako vlastněné.

public class OwnedAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<Microsoft.EntityFrameworkCore.OwnedAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
type OwnedAttributeConvention = class
    inherit TypeAttributeConventionBase<OwnedAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
Public Class OwnedAttributeConvention
Inherits TypeAttributeConventionBase(Of OwnedAttribute)
Implements IComplexPropertyAddedConvention
Dědičnost
Implementuje

Poznámky

Další informace a příklady najdete v tématu Konvence vytváření modelů .

Konstruktory

OwnedAttributeConvention(ProviderConventionSetBuilderDependencies)

Vytvoří novou instanci položky OwnedAttributeConvention.

Vlastnosti

Dependencies

Závislosti pro tuto službu

(Zděděno od TypeAttributeConventionBase<TAttribute>)

Metody

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Volána po přidání komplexní vlastnosti do objektu podobného typu.

(Zděděno od TypeAttributeConventionBase<TAttribute>)
ProcessComplexTypeAdded(IConventionComplexTypeBuilder, OwnedAttribute, IConventionContext)

Konvence, která konfiguruje typy entit, které mají OwnedAttribute jako vlastněné.

ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

Volá se po přidání komplexního typu do modelu, pokud má atribut .

(Zděděno od TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Volá se po přidání typu entity do modelu.

(Zděděno od TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, OwnedAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Konvence, která konfiguruje typy entit, které mají OwnedAttribute jako vlastněné.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Volá se po přidání typu entity do modelu, pokud má atribut .

(Zděděno od TypeAttributeConventionBase<TAttribute>)
ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

Pokusí se nahradit komplexní typ typem entity.

(Zděděno od TypeAttributeConventionBase<TAttribute>)

Platí pro