Idioma

NavigationBackingFieldAttributeConvention Classe

Definição

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

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class NavigationBackingFieldAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<Microsoft.EntityFrameworkCore.BackingFieldAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention
public class NavigationBackingFieldAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<Microsoft.EntityFrameworkCore.BackingFieldAttribute>
public class NavigationBackingFieldAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<Microsoft.EntityFrameworkCore.BackingFieldAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type NavigationBackingFieldAttributeConvention = class
    inherit NavigationAttributeConventionBase<BackingFieldAttribute>
    interface INavigationAddedConvention
    interface IConvention
    interface ISkipNavigationAddedConvention
type NavigationBackingFieldAttributeConvention = class
    inherit NavigationAttributeConventionBase<BackingFieldAttribute>
type NavigationBackingFieldAttributeConvention = class
    inherit NavigationAttributeConventionBase<BackingFieldAttribute>
    interface INavigationAddedConvention
    interface IConvention
    interface ISkipNavigationAddedConvention
Public Class NavigationBackingFieldAttributeConvention
Inherits NavigationAttributeConventionBase(Of BackingFieldAttribute)
Implements INavigationAddedConvention, ISkipNavigationAddedConvention
Public Class NavigationBackingFieldAttributeConvention
Inherits NavigationAttributeConventionBase(Of BackingFieldAttribute)
Herança
NavigationBackingFieldAttributeConvention
Atributos
Implementações

Comentários

Consulte as convenções de criação de modelos para obter mais informações e exemplos.

Construtores

Nome Descrição
NavigationBackingFieldAttributeConvention(ProviderConventionSetBuilderDependencies)

Cria uma nova instância de NavigationBackingFieldAttributeConvention.

Propriedades

Nome Descrição
Dependencies

Dependências para esse serviço.

(Herdado de NavigationAttributeConventionBase<TAttribute>)

Métodos

Nome Descrição
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Chamado depois que um tipo de entidade é adicionado ao modelo.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Chamado para cada propriedade de navegação que tem um atributo depois que um tipo de entidade é adicionado ao modelo.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Chamado após o tipo base de um tipo de entidade ser alterado.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Chamado para cada propriedade de navegação que tem um atributo depois que o tipo base de um tipo de entidade é alterado.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

Chamado depois que um tipo de entidade é ignorado.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeIgnored(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<String>)

Chamado para cada propriedade de navegação que tem um atributo depois que um tipo de entidade é ignorado.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<String>)

Chamado depois que uma propriedade de navegação que tem um atributo é ignorada.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

Chamado depois que um membro do tipo de entidade é ignorado.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)

Chamado depois que um tipo de entidade é removido do modelo.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Chamado para cada propriedade de navegação que tem um atributo depois que um tipo de entidade é removido.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Chamado para cada propriedade de navegação que tem um atributo depois que um tipo de entidade é removido.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

Chamado depois que o final principal de uma chave estrangeira é alterado.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IEnumerable<TAttribute>, IEnumerable<TAttribute>, IConventionContext<IConventionForeignKeyBuilder>)

Chamado depois que o final principal de uma chave estrangeira é alterado.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionNavigationBuilder, BackingFieldAttribute, IConventionContext<IConventionNavigationBuilder>)

Chamado após uma propriedade de navegação que tem um atributo é adicionado a um tipo de entidade.

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Chamado depois que uma navegação é adicionada ao tipo de entidade.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionNavigationBuilder, TAttribute, IConventionContext<IConventionNavigationBuilder>)

Chamado após uma propriedade de navegação que tem um atributo é adicionado a um tipo de entidade.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, BackingFieldAttribute, IConventionContext<IConventionSkipNavigationBuilder>)

Chamado depois que uma propriedade de navegação de ignorar que tem um atributo é adicionada a um tipo de entidade.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Chamado depois que uma navegação de ignorar é adicionada ao tipo de entidade.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, TAttribute, IConventionContext<IConventionSkipNavigationBuilder>)

Chamado depois que uma propriedade de navegação de ignorar que tem um atributo é adicionada a um tipo de entidade.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

Chamado depois que um tipo de entidade é ignorado.

(Herdado de NavigationAttributeConventionBase<TAttribute>)
ProcessTypeIgnored(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<String>)

Chamado para cada propriedade de navegação que tem um atributo depois que um tipo de entidade é ignorado.

(Herdado de NavigationAttributeConventionBase<TAttribute>)

Aplica-se a