Lingua

BackingFieldAttributeConvention Classe

Definizione

Convenzione che configura una proprietà come campo sottostante basato sull'attributo BackingFieldAttribute .

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class BackingFieldAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.BackingFieldAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyFieldChangedConvention
public class BackingFieldAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.BackingFieldAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type BackingFieldAttributeConvention = class
    inherit PropertyAttributeConventionBase<BackingFieldAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
    interface IComplexPropertyFieldChangedConvention
type BackingFieldAttributeConvention = class
    inherit PropertyAttributeConventionBase<BackingFieldAttribute>
Public Class BackingFieldAttributeConvention
Inherits PropertyAttributeConventionBase(Of BackingFieldAttribute)
Implements IComplexPropertyAddedConvention, IComplexPropertyFieldChangedConvention
Public Class BackingFieldAttributeConvention
Inherits PropertyAttributeConventionBase(Of BackingFieldAttribute)
Ereditarietà
Attributi
Implementazioni

Commenti

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

Costruttori

Nome Descrizione
BackingFieldAttributeConvention(ProviderConventionSetBuilderDependencies)

Crea una nuova istanza di BackingFieldAttributeConvention.

Proprietà

Nome Descrizione
Dependencies

Dipendenze per questo servizio.

(Ereditato da PropertyAttributeConventionBase<TAttribute>)

Metodi

Nome Descrizione
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

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

(Ereditato da PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

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

(Ereditato da PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, BackingFieldAttribute, MemberInfo, IConventionContext)

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

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.

(Ereditato da PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, BackingFieldAttribute, MemberInfo, IConventionContext)

Chiamato dopo l'aggiunta di una proprietà al tipo di entità 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à.

(Ereditato da PropertyAttributeConventionBase<TAttribute>)
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.

(Ereditato da PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

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

(Ereditato da PropertyAttributeConventionBase<TAttribute>)

Si applica a