Sprache

BackingFieldAttributeConvention Klasse

Definition

Eine Konvention, die eine Eigenschaft so konfiguriert, dass ein Sicherungsfeld basierend auf dem BackingFieldAttribute Attribut vorhanden ist.

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class BackingFieldAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.BackingFieldAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyFieldChangedConvention
public class BackingFieldAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.BackingFieldAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type BackingFieldAttributeConvention = class
    inherit PropertyAttributeConventionBase<BackingFieldAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
    interface IComplexPropertyFieldChangedConvention
type BackingFieldAttributeConvention = class
    inherit PropertyAttributeConventionBase<BackingFieldAttribute>
Public Class BackingFieldAttributeConvention
Inherits PropertyAttributeConventionBase(Of BackingFieldAttribute)
Implements IComplexPropertyAddedConvention, IComplexPropertyFieldChangedConvention
Public Class BackingFieldAttributeConvention
Inherits PropertyAttributeConventionBase(Of BackingFieldAttribute)
Vererbung
Attribute
Implementiert

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen .

Konstruktoren

Name Beschreibung
BackingFieldAttributeConvention(ProviderConventionSetBuilderDependencies)

Erstellt eine neue Instanz von BackingFieldAttributeConvention.

Eigenschaften

Name Beschreibung
Dependencies

Abhängigkeiten für diesen Dienst.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)

Methoden

Name Beschreibung
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Wird aufgerufen, nachdem eine komplexe Eigenschaft einem typähnlichen Objekt hinzugefügt wurde.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Wird aufgerufen, nachdem das Sicherungsfeld für eine komplexe Eigenschaft geändert wurde.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionComplexPropertyBuilder, BackingFieldAttribute, 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(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.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, BackingFieldAttribute, 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.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Wird aufgerufen, nachdem eine Eigenschaft dem Entitätstyp hinzugefügt wurde.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
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.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Wird aufgerufen, nachdem das Sicherungsfeld für eine Eigenschaft geändert wurde.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)

Gilt für: