DeleteBehaviorAttributeConvention Klasa

Definicja

Konwencja, która konfiguruje zachowanie usuwania na podstawie zastosowanej DeleteBehaviorAttribute właściwości.

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
Dziedziczenie
Implementuje

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Konwencje tworzenia modeli .

Konstruktory

DeleteBehaviorAttributeConvention(ProviderConventionSetBuilderDependencies)

Inicjuje nowe wystąpienie klasy DeleteBehaviorAttributeConvention.

Właściwości

Dependencies

Zależności dla tej usługi.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)

Metody

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Wywoływana po dodaniu właściwości złożonej do obiektu przypominającego typ.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Wywoływane po zmianie pola zapasowego dla właściwości złożonej.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

Wywoływane po zmianie głównego końca klucza obcego.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wywoływana, gdy model jest finalizowany.

ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Wywoływane po dodaniu nawigacji do typu jednostki.

ProcessPropertyAdded(IConventionComplexPropertyBuilder, DeleteBehaviorAttribute, MemberInfo, IConventionContext)

Konwencja, która konfiguruje zachowanie usuwania na podstawie zastosowanej DeleteBehaviorAttribute właściwości.

ProcessPropertyAdded(IConventionComplexPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Wywoływana po dodaniu właściwości złożonej do typu z atrybutem w skojarzonej właściwości lub polu CLR.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, DeleteBehaviorAttribute, MemberInfo, IConventionContext)

Wywoływana po dodaniu właściwości do typu jednostki z atrybutem we skojarzonej właściwości lub polu CLR.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

Wywoływane po dodaniu właściwości do typu jednostki.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

Wywoływana po dodaniu właściwości do typu jednostki z atrybutem we skojarzonej właściwości lub polu CLR.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Wywoływane po zmianie pola zapasowego właściwości.

(Odziedziczone po PropertyAttributeConventionBase<TAttribute>)

Dotyczy