RequiredPropertyAttributeConvention Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Eine Konvention, die Eigenschaften nach Bedarf konfiguriert, wenn sie angewendet wurden RequiredAttribute .
[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)
- Vererbung
- Attribute
- Implementiert
Hinweise
Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen .
Konstruktoren
| Name | Beschreibung |
|---|---|
| RequiredPropertyAttributeConvention(ProviderConventionSetBuilderDependencies) |
Erstellt eine neue Instanz von RequiredPropertyAttributeConvention. |
Eigenschaften
| Name | Beschreibung |
|---|---|
| Dependencies |
Abhängigkeiten für diesen Dienst. (Geerbt von PropertyAttributeConventionBase<TAttribute>) |