KeyAttributeConvention KeyAttributeConvention Class

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.

Syntax

Declaration

public class KeyAttributeConvention : PropertyAttributeConvention<KeyAttribute>, IPropertyConvention, IPropertyFieldChangedConvention, IModelConventionPublic Class KeyAttributeConvention
    Inherits PropertyAttributeConvention(Of KeyAttribute)
    Implements IPropertyConvention, IPropertyFieldChangedConvention, IModelConvention

Inheritance Hierarchy

Inherited Members

Apply(InternalPropertyBuilder),
Apply(InternalPropertyBuilder),
Apply(InternalPropertyBuilder, FieldInfo),
Apply(InternalPropertyBuilder, FieldInfo),
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

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.

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.

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

    • propertyBuilder
    • attribute
      System.ComponentModel.DataAnnotations.KeyAttribute
      System.ComponentModel.DataAnnotations.KeyAttribute
    • clrMember
      System.Reflection.MemberInfo
      System.Reflection.MemberInfo

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.dll