Lingua

ComplexPropertyDiscoveryConvention Classe

Definizione

Una convenzione che configura proprietà complesse sui tipi strutturali purché il tipo sia stato configurato in precedenza come tipo complesso o che il tipo dichiarante sia un tipo complesso.

[System.Runtime.CompilerServices.Nullable(0)]
public class ComplexPropertyDiscoveryConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeMemberIgnoredConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationRemovedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type ComplexPropertyDiscoveryConvention = class
    interface IEntityTypeAddedConvention
    interface IConvention
    interface IEntityTypeBaseTypeChangedConvention
    interface IEntityTypeMemberIgnoredConvention
    interface IComplexPropertyAddedConvention
    interface INavigationRemovedConvention
    interface INavigationAddedConvention
    interface IPropertyRemovedConvention
    interface IPropertyAddedConvention
    interface ISkipNavigationRemovedConvention
    interface ISkipNavigationAddedConvention
    interface IModelFinalizingConvention
Public Class ComplexPropertyDiscoveryConvention
Implements IComplexPropertyAddedConvention, IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IEntityTypeMemberIgnoredConvention, IModelFinalizingConvention, INavigationAddedConvention, INavigationRemovedConvention, IPropertyAddedConvention, IPropertyRemovedConvention, ISkipNavigationAddedConvention, ISkipNavigationRemovedConvention
Ereditarietà
ComplexPropertyDiscoveryConvention
Attributi
Implementazioni

Commenti

Per altre informazioni ed esempi, vedere Convenzioni di compilazione di modelli.

Costruttori

Nome Descrizione
ComplexPropertyDiscoveryConvention(ProviderConventionSetBuilderDependencies, Boolean)

Crea una nuova istanza di ComplexPropertyDiscoveryConvention.

ComplexPropertyDiscoveryConvention(ProviderConventionSetBuilderDependencies)

Crea una nuova istanza di ComplexPropertyDiscoveryConvention.

Proprietà

Nome Descrizione
Dependencies

Dipendenze per questo servizio.

UseAttributes

Valore che indica se la convenzione userà gli attributi trovati nei membri.

Metodi

Nome Descrizione
DiscoverComplexProperties(IConventionTypeBaseBuilder, IConventionContext)

Individua le proprietà complesse sul tipo strutturale specificato.

GetMembers(IConventionTypeBase)

Restituisce i membri CLR dal tipo specificato da considerare durante l'individuazione delle proprietà.

IsCandidateComplexProperty(MemberInfo, IConventionTypeBase, Type, Boolean)

Restituisce un valore che indica se il membro specificato è un candidato di proprietà complesso.

IsCandidateComplexProperty(MemberInfo, IConventionTypeBase, Type)

Restituisce un valore che indica se il membro specificato è un candidato di proprietà complesso.

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Chiamato dopo l'aggiunta di una proprietà complessa a un oggetto di tipo.

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Chiamato dopo l'aggiunta di un tipo di entità al modello.

ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Chiamato dopo la modifica del tipo di base di un tipo di entità.

ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

Chiamato dopo che un membro del tipo di entità viene ignorato.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Chiamato quando viene finalizzato un modello.

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Chiamato dopo l'aggiunta di una navigazione al tipo di entità.

ProcessNavigationRemoved(IConventionEntityTypeBuilder, IConventionEntityTypeBuilder, String, MemberInfo, IConventionContext<String>)

Chiamato dopo la rimozione di uno spostamento dal tipo di entità.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Chiamato dopo l'aggiunta di una proprietà al tipo di entità.

ProcessPropertyRemoved(IConventionTypeBaseBuilder, IConventionProperty, IConventionContext<IConventionProperty>)

Chiamato dopo la rimozione di una proprietà dal tipo di entità.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Chiamato dopo l'aggiunta di uno spostamento skip al tipo di entità.

ProcessSkipNavigationRemoved(IConventionEntityTypeBuilder, IConventionSkipNavigation, IConventionContext<IConventionSkipNavigation>)

Chiamato dopo la rimozione di uno spostamento skip dal tipo di entità.

Si applica a