RequiredPropertyAttributeConvention Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A convention that configures properties as required if they have the RequiredAttribute applied.
public class RequiredPropertyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
public class RequiredPropertyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyFieldChangedConvention
type RequiredPropertyAttributeConvention = class
inherit PropertyAttributeConventionBase<RequiredAttribute>
type RequiredPropertyAttributeConvention = class
inherit PropertyAttributeConventionBase<RequiredAttribute>
interface IComplexPropertyAddedConvention
interface IConvention
interface IComplexPropertyFieldChangedConvention
Public Class RequiredPropertyAttributeConvention
Inherits PropertyAttributeConventionBase(Of RequiredAttribute)
Public Class RequiredPropertyAttributeConvention
Inherits PropertyAttributeConventionBase(Of RequiredAttribute)
Implements IComplexPropertyAddedConvention, IComplexPropertyFieldChangedConvention
- Inheritance
- Implements
See Model building conventions for more information and examples.
Required |
Creates a new instance of RequiredPropertyAttributeConvention. |
Dependencies |
Dependencies for this service. (Inherited from PropertyAttributeConventionBase<TAttribute>) |
Отзыв о Entity Framework
Entity Framework — это проект с открытым исходным кодом. Выберите ссылку, чтобы оставить отзыв: