PropertyAttributeConventionBase<TAttribute> 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.
Ein Basistyp für Konventionen, die eine Konfiguration basierend auf einem Attribut ausführen, das auf eine Eigenschaft angewendet wird.
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class PropertyAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention where TAttribute : Attribute
public abstract class PropertyAttributeConventionBase<TAttribute> : Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyFieldChangedConvention where TAttribute : Attribute
[<System.Runtime.CompilerServices.Nullable(0)>]
type PropertyAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
interface IPropertyAddedConvention
interface IConvention
interface IPropertyFieldChangedConvention
type PropertyAttributeConventionBase<'Attribute (requires 'Attribute :> Attribute)> = class
interface IPropertyAddedConvention
interface IConvention
interface IPropertyFieldChangedConvention
Public MustInherit Class PropertyAttributeConventionBase(Of TAttribute)
Implements IPropertyAddedConvention, IPropertyFieldChangedConvention
Typparameter
- TAttribute
Der attributtyp, nach dem gesucht werden soll.
- Vererbung
-
PropertyAttributeConventionBase<TAttribute>
- Abgeleitet
- Attribute
- Implementiert
Hinweise
Die ableitende Klasse muss implementieren IPropertyAddedConvention und IPropertyFieldChangedConvention auch komplexe Eigenschaften behandeln.
Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen .
Konstruktoren
| Name | Beschreibung |
|---|---|
| PropertyAttributeConventionBase<TAttribute>(ProviderConventionSetBuilderDependencies) |
Erstellt eine neue Instanz von PropertyAttributeConventionBase<TAttribute>. |
Eigenschaften
| Name | Beschreibung |
|---|---|
| Dependencies |
Abhängigkeiten für diesen Dienst. |
Methoden
| Name | Beschreibung |
|---|---|
| ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>) |
Wird aufgerufen, nachdem eine komplexe Eigenschaft einem typähnlichen Objekt hinzugefügt wurde. |
| ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>) |
Wird aufgerufen, nachdem das Sicherungsfeld für eine komplexe Eigenschaft geändert wurde. |
| ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext) |
Wird aufgerufen, nachdem einer komplexen Eigenschaft ein Typ mit einem Attribut für die zugeordnete CLR-Eigenschaft oder das zugehörige Feld hinzugefügt wurde. |
| ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>) |
Wird aufgerufen, nachdem eine Eigenschaft dem Entitätstyp hinzugefügt wurde. |
| ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext) |
Wird aufgerufen, nachdem dem Entitätstyp eine Eigenschaft mit einem Attribut für die zugeordnete CLR-Eigenschaft oder das zugehörige Feld hinzugefügt wurde. |
| ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>) |
Wird aufgerufen, nachdem das Sicherungsfeld für eine Eigenschaft geändert wurde. |