RequiredPropertyAttributeConvention RequiredPropertyAttributeConvention 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 RequiredPropertyAttributeConvention : PropertyAttributeConvention<RequiredAttribute>, IPropertyConvention, IPropertyFieldChangedConventionPublic Class RequiredPropertyAttributeConvention
    Inherits PropertyAttributeConvention(Of RequiredAttribute)
    Implements IPropertyConvention, IPropertyFieldChangedConvention

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.

Methods

  • Apply(InternalPropertyBuilder, RequiredAttribute, MemberInfo)
    Apply(InternalPropertyBuilder, RequiredAttribute, 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, RequiredAttribute attribute, MemberInfo clrMember)Public Overrides Function Apply(propertyBuilder As InternalPropertyBuilder, attribute As RequiredAttribute, clrMember As MemberInfo) As InternalPropertyBuilder

    Parameters

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

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.dll