Key​Attribute​Convention Key​Attribute​Convention Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public class KeyAttributeConvention : PropertyAttributeConvention<KeyAttribute>, IPropertyConvention, IPropertyFieldChangedConvention, IModelConventionPublic Class KeyAttributeConvention
    Inherits PropertyAttributeConvention(Of KeyAttribute)
    Implements IPropertyConvention, IPropertyFieldChangedConvention, IModelConvention
Inheritance
System.ObjectSystem.Object
PropertyAttributeConvention<System.ComponentModel.DataAnnotations.KeyAttribute>PropertyAttributeConvention(Of System.ComponentModel.DataAnnotations.KeyAttribute)
KeyAttributeConventionKeyAttributeConvention
Implements

Inherited Members

Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.PropertyAttributeConvention{System.ComponentModel.DataAnnotations.KeyAttribute}

System.Object

System.Object.ToString()System.Object.ToString()
System.Object.Equals(System.Object)System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()System.Object.GetHashCode()
System.Object.GetType()System.Object.GetType()
System.Object.MemberwiseClone()System.Object.MemberwiseClone()

Methods

Apply(InternalModelBuilder) Apply(InternalModelBuilder)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual InternalModelBuilder Apply(InternalModelBuilder modelBuilder)Public Overridable Function Apply(modelBuilder As InternalModelBuilder) As InternalModelBuilder
Parameters
Returns

Apply(InternalPropertyBuilder, KeyAttribute, MemberInfo) Apply(InternalPropertyBuilder, KeyAttribute, MemberInfo)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public override InternalPropertyBuilder Apply(InternalPropertyBuilder propertyBuilder, KeyAttribute attribute, MemberInfo clrMember)Public Overrides Function Apply(propertyBuilder As InternalPropertyBuilder, attribute As KeyAttribute, clrMember As MemberInfo) As InternalPropertyBuilder
Parameters
attribute
System.ComponentModel.DataAnnotations.KeyAttribute System.ComponentModel.DataAnnotations.KeyAttribute
clrMember
System.Reflection.MemberInfo System.Reflection.MemberInfo
Returns
Overrides
Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.PropertyAttributeConvention<System.ComponentModel.DataAnnotations.KeyAttribute>.Apply(Microsoft.EntityFrameworkCore.Metadata.Internal.InternalPropertyBuilder, System.ComponentModel.DataAnnotations.KeyAttribute, System.Reflection.MemberInfo)Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.PropertyAttributeConvention<System.ComponentModel.DataAnnotations.KeyAttribute>.Apply(Microsoft.EntityFrameworkCore.Metadata.Internal.InternalPropertyBuilder, System.ComponentModel.DataAnnotations.KeyAttribute, System.Reflection.MemberInfo)