PropertyAttributeConventionBase<TAttribute> Classe

Definizione

Tipo di base per le convenzioni che eseguono la configurazione in base a un attributo applicato a una proprietà.

public abstract class PropertyAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention where TAttribute : Attribute
type PropertyAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
    interface IPropertyAddedConvention
    interface IConvention
    interface IPropertyFieldChangedConvention
Public MustInherit Class PropertyAttributeConventionBase(Of TAttribute)
Implements IPropertyAddedConvention, IPropertyFieldChangedConvention

Parametri di tipo

TAttribute

Tipo di attributo da cercare.

Ereditarietà
PropertyAttributeConventionBase<TAttribute>
Derivato
Implementazioni

Commenti

La classe di derivazione deve implementare IPropertyAddedConvention e IPropertyFieldChangedConvention gestire anche proprietà complesse.

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

Costruttori

PropertyAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies)

Crea una nuova istanza di PropertyAttributeConventionBase<TAttribute>.

Proprietà

Dependencies

Dipendenze per questo servizio.

Metodi

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

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

ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Chiamato dopo la modifica del campo sottostante per una proprietà complessa.

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Chiamato dopo l'aggiunta di una proprietà complessa a un tipo con un attributo nella proprietà o nel campo CLR associato.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

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

ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Chiamato dopo l'aggiunta di una proprietà al tipo di entità con un attributo nella proprietà o nel campo CLR associato.

ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Chiamato dopo la modifica del campo sottostante per una proprietà.

Si applica a