Lenguaje

NavigationBackingFieldAttributeConvention Clase

Definición

Convención que configura una propiedad de navegación como tener un campo de respaldo basado en el 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)
Herencia
NavigationBackingFieldAttributeConvention
Atributos
Implementaciones

Comentarios

Consulte Convenciones de creación de modelos para obtener más información y ejemplos.

Constructores

Nombre Description
NavigationBackingFieldAttributeConvention(ProviderConventionSetBuilderDependencies)

Crea una nueva instancia de NavigationBackingFieldAttributeConvention.

Propiedades

Nombre Description
Dependencies

Dependencias de este servicio.

(Heredado de NavigationAttributeConventionBase<TAttribute>)

Métodos

Nombre Description
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Se llama después de agregar un tipo de entidad al modelo.

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

Se llama a para cada propiedad de navegación que tenga un atributo después de agregar un tipo de entidad al modelo.

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

Se llama después de que cambie el tipo base de un tipo de entidad.

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

Se llama a para cada propiedad de navegación que tenga un atributo después de cambiar el tipo base de un tipo de entidad.

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

Se llama después de omitir un tipo de entidad.

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

Se llama a para cada propiedad de navegación que tiene un atributo después de omitir un tipo de entidad.

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

Se llama después de que se omita una propiedad de navegación que tenga un atributo .

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

Se llama después de omitir un miembro de tipo de entidad.

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

Se llama después de quitar un tipo de entidad del modelo.

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

Se llama a para cada propiedad de navegación que tenga un atributo después de quitar un tipo de entidad.

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

Se llama a para cada propiedad de navegación que tenga un atributo después de quitar un tipo de entidad.

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

Se llama después de cambiar el final de la entidad de seguridad de una clave externa.

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

Se llama después de cambiar el final de la entidad de seguridad de una clave externa.

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

Se llama después de una propiedad de navegación que tiene un atributo se agrega a un tipo de entidad.

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Se llama después de agregar una navegación al tipo de entidad.

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

Se llama después de una propiedad de navegación que tiene un atributo se agrega a un tipo de entidad.

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

Se llama después de una propiedad de navegación skip que tiene un atributo se agrega a un tipo de entidad.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Se llama después de agregar una navegación de omisión al tipo de entidad.

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

Se llama después de una propiedad de navegación skip que tiene un atributo se agrega a un tipo de entidad.

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

Se llama después de omitir un tipo de entidad.

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

Se llama a para cada propiedad de navegación que tiene un atributo después de omitir un tipo de entidad.

(Heredado de NavigationAttributeConventionBase<TAttribute>)

Se aplica a