KeyAttributeConvention Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Convention qui configure la clé de type d’entité en fonction du KeyAttribute spécifié sur une propriété ou PrimaryKeyAttribute spécifié sur un type 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
- Héritage
- Implémente
Remarques
Pour plus d’informations et d’exemples, consultez Conventions de génération de modèles.
Constructeurs
KeyAttributeConvention(ProviderConventionSetBuilderDependencies) |
Crée une instance de KeyAttributeConvention. |
Propriétés
Dependencies |
Dépendances pour ce service. (Hérité de PropertyAttributeConventionBase<TAttribute>) |