Langue

DeleteBehaviorAttributeConvention Classe

Définition

Convention qui configure le comportement de suppression en fonction de l’application DeleteBehaviorAttribute sur la propriété.

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
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
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
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type DeleteBehaviorAttributeConvention = class
    inherit PropertyAttributeConventionBase<DeleteBehaviorAttribute>
    interface INavigationAddedConvention
    interface IConvention
    interface IForeignKeyPrincipalEndChangedConvention
    interface IComplexPropertyAddedConvention
    interface IModelFinalizingConvention
type DeleteBehaviorAttributeConvention = class
    inherit PropertyAttributeConventionBase<DeleteBehaviorAttribute>
    interface INavigationAddedConvention
    interface IConvention
    interface IForeignKeyPrincipalEndChangedConvention
    interface IModelFinalizingConvention
Public Class DeleteBehaviorAttributeConvention
Inherits PropertyAttributeConventionBase(Of DeleteBehaviorAttribute)
Implements IComplexPropertyAddedConvention, IForeignKeyPrincipalEndChangedConvention, IModelFinalizingConvention, INavigationAddedConvention
Public Class DeleteBehaviorAttributeConvention
Inherits PropertyAttributeConventionBase(Of DeleteBehaviorAttribute)
Implements IForeignKeyPrincipalEndChangedConvention, IModelFinalizingConvention, INavigationAddedConvention
Héritage
Attributs
Implémente

Remarques

Pour plus d’informations et d’exemples, consultez les conventions de génération de modèles.

Constructeurs

Nom Description
DeleteBehaviorAttributeConvention(ProviderConventionSetBuilderDependencies)

Initialise une nouvelle instance de la classe DeleteBehaviorAttributeConvention.

Propriétés

Nom Description
Dependencies

Dépendances pour ce service.

(Hérité de PropertyAttributeConventionBase<TAttribute>)

Méthodes

Nom Description
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Appelé après l’ajout d’une propriété complexe à un objet de type.

(Hérité de PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Appelé après la modification du champ de stockage d’une propriété complexe.

(Hérité de PropertyAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

Appelée après la fin du principal d’une clé étrangère est modifiée.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Appelé lorsqu’un modèle est finalisé.

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Appelé après l’ajout d’une navigation au type d’entité.

ProcessPropertyAdded(IConventionComplexPropertyBuilder, DeleteBehaviorAttribute, MemberInfo, IConventionContext)

Appelé après l’ajout d’une propriété complexe à un type avec un attribut sur la propriété ou le champ CLR associé.

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Appelé après l’ajout d’une propriété complexe à un type avec un attribut sur la propriété ou le champ CLR associé.

(Hérité de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, DeleteBehaviorAttribute, MemberInfo, IConventionContext)

Appelée après l’ajout d’une propriété au type d’entité avec un attribut sur la propriété ou le champ CLR associé.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Appelé après l’ajout d’une propriété au type d’entité.

(Hérité de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Appelée après l’ajout d’une propriété au type d’entité avec un attribut sur la propriété ou le champ CLR associé.

(Hérité de PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Appelé après la modification du champ de stockage d’une propriété.

(Hérité de PropertyAttributeConventionBase<TAttribute>)

S’applique à