Required​Property​Attribute​Convention Required​Property​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 RequiredPropertyAttributeConvention : PropertyAttributeConvention<RequiredAttribute>, IPropertyConvention, IPropertyFieldChangedConventionPublic Class RequiredPropertyAttributeConvention
    Inherits PropertyAttributeConvention(Of RequiredAttribute)
    Implements IPropertyConvention, IPropertyFieldChangedConvention
Inheritance
System.ObjectSystem.Object
PropertyAttributeConvention<System.ComponentModel.DataAnnotations.RequiredAttribute>PropertyAttributeConvention(Of System.ComponentModel.DataAnnotations.RequiredAttribute)
RequiredPropertyAttributeConventionRequiredPropertyAttributeConvention
Implements

Inherited Members

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

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(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
attribute
System.ComponentModel.DataAnnotations.RequiredAttribute System.ComponentModel.DataAnnotations.RequiredAttribute
clrMember
System.Reflection.MemberInfo System.Reflection.MemberInfo
Returns
Overrides
Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.PropertyAttributeConvention<System.ComponentModel.DataAnnotations.RequiredAttribute>.Apply(Microsoft.EntityFrameworkCore.Metadata.Internal.InternalPropertyBuilder, System.ComponentModel.DataAnnotations.RequiredAttribute, System.Reflection.MemberInfo)Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal.PropertyAttributeConvention<System.ComponentModel.DataAnnotations.RequiredAttribute>.Apply(Microsoft.EntityFrameworkCore.Metadata.Internal.InternalPropertyBuilder, System.ComponentModel.DataAnnotations.RequiredAttribute, System.Reflection.MemberInfo)