KeyAttributeConvention Clase
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Convención que configura la clave de tipo de entidad basada en el KeyAttribute especificado en una propiedad o PrimaryKeyAttribute especificada en un tipo CLR.
public class KeyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.KeyAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class KeyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.KeyAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
public class KeyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.KeyAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
public class KeyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.KeyAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeBaseTypeChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type KeyAttributeConvention = class
inherit PropertyAttributeConventionBase<KeyAttribute>
interface IModelFinalizedConvention
interface IConvention
type KeyAttributeConvention = class
inherit PropertyAttributeConventionBase<KeyAttribute>
interface IModelFinalizingConvention
interface IConvention
type KeyAttributeConvention = class
inherit PropertyAttributeConventionBase<KeyAttribute>
interface IModelFinalizingConvention
interface IConvention
interface IEntityTypeAddedConvention
interface IEntityTypeBaseTypeChangedConvention
type KeyAttributeConvention = class
inherit PropertyAttributeConventionBase<KeyAttribute>
interface IModelFinalizingConvention
interface IConvention
interface IEntityTypeAddedConvention
interface IEntityTypeBaseTypeChangedConvention
interface IComplexPropertyAddedConvention
Public Class KeyAttributeConvention
Inherits PropertyAttributeConventionBase(Of KeyAttribute)
Implements IModelFinalizedConvention
Public Class KeyAttributeConvention
Inherits PropertyAttributeConventionBase(Of KeyAttribute)
Implements IModelFinalizingConvention
Public Class KeyAttributeConvention
Inherits PropertyAttributeConventionBase(Of KeyAttribute)
Implements IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IModelFinalizingConvention
Public Class KeyAttributeConvention
Inherits PropertyAttributeConventionBase(Of KeyAttribute)
Implements IComplexPropertyAddedConvention, IEntityTypeAddedConvention, IEntityTypeBaseTypeChangedConvention, IModelFinalizingConvention
- Herencia
- Implementaciones
Comentarios
Consulte Convenciones de creación de modelos para obtener más información y ejemplos.
Constructores
KeyAttributeConvention(ProviderConventionSetBuilderDependencies) |
Crea una nueva instancia de KeyAttributeConvention. |
Propiedades
Dependencies |
Dependencias para este servicio. (Heredado de PropertyAttributeConventionBase<TAttribute>) |