KeyAttributeConvention Classe
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Convenzione che configura la chiave del tipo di entità in base all'oggetto KeyAttribute specificato in una proprietà o PrimaryKeyAttribute specificata in 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
- Ereditarietà
- Implementazioni
Commenti
Per altre informazioni ed esempi, vedere Convenzioni di compilazione di modelli.
Costruttori
KeyAttributeConvention(ProviderConventionSetBuilderDependencies) |
Crea una nuova istanza di KeyAttributeConvention. |
Proprietà
Dependencies |
Dipendenze per questo servizio. (Ereditato da PropertyAttributeConventionBase<TAttribute>) |