RequiredPropertyAttributeConvention Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Convention qui configure les propriétés comme requis s’ils ont été RequiredAttribute appliqués.
[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class RequiredPropertyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyFieldChangedConvention
public class RequiredPropertyAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type RequiredPropertyAttributeConvention = class
inherit PropertyAttributeConventionBase<RequiredAttribute>
interface IComplexPropertyAddedConvention
interface IConvention
interface IComplexPropertyFieldChangedConvention
type RequiredPropertyAttributeConvention = class
inherit PropertyAttributeConventionBase<RequiredAttribute>
Public Class RequiredPropertyAttributeConvention
Inherits PropertyAttributeConventionBase(Of RequiredAttribute)
Implements IComplexPropertyAddedConvention, IComplexPropertyFieldChangedConvention
Public Class RequiredPropertyAttributeConvention
Inherits PropertyAttributeConventionBase(Of RequiredAttribute)
- Héritage
- Attributs
- Implémente
Remarques
Pour plus d’informations et d’exemples, consultez les conventions de génération de modèles.
Constructeurs
| Nom | Description |
|---|---|
| RequiredPropertyAttributeConvention(ProviderConventionSetBuilderDependencies) |
Crée une instance de RequiredPropertyAttributeConvention. |
Propriétés
| Nom | Description |
|---|---|
| Dependencies |
Dépendances pour ce service. (Hérité de PropertyAttributeConventionBase<TAttribute>) |