Sprache

StoreGenerationConvention Klasse

Definition

Eine Konvention, die sicherstellt, dass Eigenschaften nicht so konfiguriert sind, dass sie über einen Standardwert und gleichzeitig als berechnete Spalte verfügen.

[System.Runtime.CompilerServices.Nullable(0)]
public class StoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
public class StoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
public class StoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type StoreGenerationConvention = class
    interface IPropertyAnnotationChangedConvention
    interface IConvention
    interface IModelFinalizingConvention
type StoreGenerationConvention = class
    interface IPropertyAnnotationChangedConvention
    interface IConvention
    interface IModelFinalizedConvention
type StoreGenerationConvention = class
    interface IPropertyAnnotationChangedConvention
    interface IConvention
    interface IModelFinalizingConvention
Public Class StoreGenerationConvention
Implements IModelFinalizingConvention, IPropertyAnnotationChangedConvention
Public Class StoreGenerationConvention
Implements IModelFinalizedConvention, IPropertyAnnotationChangedConvention
Vererbung
StoreGenerationConvention
Abgeleitet
Attribute
Implementiert

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen und EF Core-Wertgenerierung .

Konstruktoren

Name Beschreibung
StoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Erstellt eine neue Instanz von StoreGenerationConvention.

Eigenschaften

Name Beschreibung
Dependencies

Abhängigkeiten für diesen Dienst.

RelationalDependencies

Relationale anbieterspezifische Abhängigkeiten für diesen Dienst.

Methoden

Name Beschreibung
ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wird aufgerufen, nachdem ein Modell abgeschlossen wurde.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wird aufgerufen, wenn ein Modell abgeschlossen wird.

ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

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

Validate(IConventionProperty, StoreObjectIdentifier)

Löst aus, wenn die Konfiguration der Speichergenerierung für diese Eigenschaft in Konflikt steht.

Validate(IConventionProperty)

Löst aus, wenn die Konfiguration der Speichergenerierung für diese Eigenschaft in Konflikt steht.

Gilt für: