Sprache

BackingFieldConvention Klasse

Definition

Eine Konvention, die Sicherungsfelder für Eigenschaften basierend auf ihren Namen findet:

  • <[Eigenschaftsname]>k__BackingField
  • _[kamel-cased-Eigenschaftsname]
  • _[Eigenschaftsname]
  • m_[camel-cased property name]
  • m_[Eigenschaftsname]
  • [Eigenschaftsname]_
[System.Runtime.CompilerServices.Nullable(0)]
public class BackingFieldConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention
public class BackingFieldConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention
public class BackingFieldConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention
public class BackingFieldConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type BackingFieldConvention = class
    interface IPropertyAddedConvention
    interface IConvention
    interface INavigationAddedConvention
    interface ISkipNavigationAddedConvention
    interface IComplexPropertyAddedConvention
    interface IModelFinalizingConvention
type BackingFieldConvention = class
    interface IPropertyAddedConvention
    interface IConvention
    interface INavigationAddedConvention
type BackingFieldConvention = class
    interface IPropertyAddedConvention
    interface IConvention
    interface INavigationAddedConvention
    interface IModelFinalizedConvention
type BackingFieldConvention = class
    interface IPropertyAddedConvention
    interface IConvention
    interface INavigationAddedConvention
    interface ISkipNavigationAddedConvention
    interface IModelFinalizingConvention
Public Class BackingFieldConvention
Implements IComplexPropertyAddedConvention, IModelFinalizingConvention, INavigationAddedConvention, IPropertyAddedConvention, ISkipNavigationAddedConvention
Public Class BackingFieldConvention
Implements INavigationAddedConvention, IPropertyAddedConvention
Public Class BackingFieldConvention
Implements IModelFinalizedConvention, INavigationAddedConvention, IPropertyAddedConvention
Public Class BackingFieldConvention
Implements IModelFinalizingConvention, INavigationAddedConvention, IPropertyAddedConvention, ISkipNavigationAddedConvention
Vererbung
BackingFieldConvention
Attribute
Implementiert

Hinweise

Der Feldtyp muss einen Typ aufweisen, der dem Eigenschaftstyp oder dem Eigenschaftstyp zugewiesen werden kann. Wenn mehrere übereinstimmende Felder gefunden werden, wird eine Ausnahme ausgelöst.

Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen .

Konstruktoren

Name Beschreibung
BackingFieldConvention(ProviderConventionSetBuilderDependencies)

Erstellt eine neue Instanz von BackingFieldConvention.

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.

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wird aufgerufen, nachdem ein Modell abgeschlossen wurde.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wird aufgerufen, wenn ein Modell abgeschlossen wird.

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

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

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

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

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

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

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Wird aufgerufen, nachdem der Entitätstyp eine Übersprungnavigation hinzugefügt wurde.

Gilt für: