BackingFieldAttributeConvention Classe

Definição

Uma convenção que configura uma propriedade como tendo um campo de backup com base no BackingFieldAttribute atributo .

public class BackingFieldAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.BackingFieldAttribute>
public class BackingFieldAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.BackingFieldAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyFieldChangedConvention
type BackingFieldAttributeConvention = class
    inherit PropertyAttributeConventionBase<BackingFieldAttribute>
type BackingFieldAttributeConvention = class
    inherit PropertyAttributeConventionBase<BackingFieldAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
    interface IComplexPropertyFieldChangedConvention
Public Class BackingFieldAttributeConvention
Inherits PropertyAttributeConventionBase(Of BackingFieldAttribute)
Public Class BackingFieldAttributeConvention
Inherits PropertyAttributeConventionBase(Of BackingFieldAttribute)
Implements IComplexPropertyAddedConvention, IComplexPropertyFieldChangedConvention
Herança
Implementações

Comentários

Consulte Convenções de criação de modelo para obter mais informações e exemplos.

Construtores

BackingFieldAttributeConvention(ProviderConventionSetBuilderDependencies)

Cria uma nova instância de BackingFieldAttributeConvention.

Propriedades

Dependencies

Dependências para esse serviço.

(Herdado de PropertyAttributeConventionBase<TAttribute>)

Métodos

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Chamado depois que uma propriedade complexa é adicionada a um objeto semelhante a um tipo.

(Herdado de PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Chamado depois que o campo de backup de uma propriedade complexa é alterado.

(Herdado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, BackingFieldAttribute, MemberInfo, IConventionContext)

Uma convenção que configura uma propriedade como tendo um campo de backup com base no BackingFieldAttribute atributo .

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Chamado depois que uma propriedade complexa é adicionada a um tipo com um atributo na propriedade ou campo CLR associado.

(Herdado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, BackingFieldAttribute, MemberInfo, IConventionContext)

Chamado depois que uma propriedade é adicionada ao tipo de entidade com um atributo na propriedade ou campo CLR associado.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Chamado depois que uma propriedade é adicionada ao tipo de entidade.

(Herdado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Chamado depois que uma propriedade é adicionada ao tipo de entidade com um atributo na propriedade ou campo CLR associado.

(Herdado de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Chamado depois que o campo de backup de uma propriedade é alterado.

(Herdado de PropertyAttributeConventionBase<TAttribute>)

Aplica-se a