Freigeben über


DeleteBehaviorAttributeConvention Klasse

Definition

Eine Konvention, die das Löschverhalten basierend auf dem DeleteBehaviorAttribute auf der -Eigenschaft angewendeten konfiguriert.

public class DeleteBehaviorAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.DeleteBehaviorAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
public class DeleteBehaviorAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<Microsoft.EntityFrameworkCore.DeleteBehaviorAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
type DeleteBehaviorAttributeConvention = class
    inherit PropertyAttributeConventionBase<DeleteBehaviorAttribute>
    interface INavigationAddedConvention
    interface IConvention
    interface IForeignKeyPrincipalEndChangedConvention
    interface IModelFinalizingConvention
type DeleteBehaviorAttributeConvention = class
    inherit PropertyAttributeConventionBase<DeleteBehaviorAttribute>
    interface INavigationAddedConvention
    interface IConvention
    interface IForeignKeyPrincipalEndChangedConvention
    interface IComplexPropertyAddedConvention
    interface IModelFinalizingConvention
Public Class DeleteBehaviorAttributeConvention
Inherits PropertyAttributeConventionBase(Of DeleteBehaviorAttribute)
Implements IForeignKeyPrincipalEndChangedConvention, IModelFinalizingConvention, INavigationAddedConvention
Public Class DeleteBehaviorAttributeConvention
Inherits PropertyAttributeConventionBase(Of DeleteBehaviorAttribute)
Implements IComplexPropertyAddedConvention, IForeignKeyPrincipalEndChangedConvention, IModelFinalizingConvention, INavigationAddedConvention
Vererbung
Implementiert

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellerstellungskonventionen .

Konstruktoren

DeleteBehaviorAttributeConvention(ProviderConventionSetBuilderDependencies)

Initialisiert eine neue Instanz der DeleteBehaviorAttributeConvention-Klasse.

Eigenschaften

Dependencies

Abhängigkeiten für diesen Dienst.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)

Methoden

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

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

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

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

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

Wird aufgerufen, nachdem das Prinzipalende eines Fremdschlüssels geändert wurde.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wird aufgerufen, wenn ein Modell fertig gestellt wird.

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

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

ProcessPropertyAdded(IConventionComplexPropertyBuilder, DeleteBehaviorAttribute, MemberInfo, IConventionContext)

Eine Konvention, die das Löschverhalten basierend auf dem DeleteBehaviorAttribute auf der -Eigenschaft angewendeten konfiguriert.

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Wird aufgerufen, nachdem eine komplexe Eigenschaft einem Typ mit einem Attribut für die zugeordnete CLR-Eigenschaft oder das zugehörige CLR-Feld hinzugefügt wurde.

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, DeleteBehaviorAttribute, MemberInfo, IConventionContext)

Wird aufgerufen, nachdem dem Entitätstyp eine Eigenschaft mit einem Attribut in der zugeordneten CLR-Eigenschaft oder dem zugeordneten CLR-Feld hinzugefügt wurde.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

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

(Geerbt von PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Wird aufgerufen, nachdem dem Entitätstyp eine Eigenschaft mit einem Attribut in der zugeordneten CLR-Eigenschaft oder dem zugeordneten CLR-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: