Sprache

RequiredNavigationAttributeConvention Klasse

Definition

Eine Konvention, die die Prinzipalseite der Beziehung wie erforderlich konfiguriert, wenn die RequiredAttribute Auf der Navigationseigenschaft auf den Prinzipalentitätstyp angewendet wird.

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class RequiredNavigationAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention
public class RequiredNavigationAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
public class RequiredNavigationAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.ISkipNavigationAddedConvention
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type RequiredNavigationAttributeConvention = class
    inherit NavigationAttributeConventionBase<RequiredAttribute>
    interface INavigationAddedConvention
    interface IConvention
    interface ISkipNavigationAddedConvention
    interface IForeignKeyPrincipalEndChangedConvention
type RequiredNavigationAttributeConvention = class
    inherit NavigationAttributeConventionBase<RequiredAttribute>
type RequiredNavigationAttributeConvention = class
    inherit NavigationAttributeConventionBase<RequiredAttribute>
    interface INavigationAddedConvention
    interface IConvention
    interface ISkipNavigationAddedConvention
    interface IForeignKeyPrincipalEndChangedConvention
Public Class RequiredNavigationAttributeConvention
Inherits NavigationAttributeConventionBase(Of RequiredAttribute)
Implements IForeignKeyPrincipalEndChangedConvention, INavigationAddedConvention, ISkipNavigationAddedConvention
Public Class RequiredNavigationAttributeConvention
Inherits NavigationAttributeConventionBase(Of RequiredAttribute)
Vererbung
RequiredNavigationAttributeConvention
Attribute
Implementiert

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen .

Konstruktoren

Name Beschreibung
RequiredNavigationAttributeConvention(ProviderConventionSetBuilderDependencies)

Erstellt eine neue Instanz von RequiredNavigationAttributeConvention.

Eigenschaften

Name Beschreibung
Dependencies

Abhängigkeiten für diesen Dienst.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)

Methoden

Name Beschreibung
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Wird aufgerufen, nachdem dem Modell ein Entitätstyp hinzugefügt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Wird für jede Navigationseigenschaft aufgerufen, die ein Attribut hat, nachdem ein Entitätstyp dem Modell hinzugefügt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Wird aufgerufen, nachdem sich der Basistyp eines Entitätstyps geändert hat.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Wird für jede Navigationseigenschaft aufgerufen, die über ein Attribut verfügt, nachdem der Basistyp für einen Entitätstyp geändert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

Wird aufgerufen, nachdem ein Entitätstyp ignoriert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeIgnored(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<String>)

Wird für jede Navigationseigenschaft aufgerufen, die ein Attribut aufweist, nachdem ein Entitätstyp ignoriert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<String>)

Wird aufgerufen, nachdem eine Navigationseigenschaft mit einem Attribut ignoriert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

Wird aufgerufen, nachdem ein Entitätstypelement ignoriert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)

Wird aufgerufen, nachdem ein Entitätstyp aus dem Modell entfernt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Wird für jede Navigationseigenschaft aufgerufen, die ein Attribut aufweist, nachdem ein Entitätstyp entfernt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Wird für jede Navigationseigenschaft aufgerufen, die ein Attribut aufweist, nachdem ein Entitätstyp entfernt wurde.

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

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

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IEnumerable<RequiredAttribute>, IEnumerable<RequiredAttribute>, IConventionContext<IConventionForeignKeyBuilder>)

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

ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IEnumerable<TAttribute>, IEnumerable<TAttribute>, IConventionContext<IConventionForeignKeyBuilder>)

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

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

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

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionNavigationBuilder, RequiredAttribute, IConventionContext<IConventionNavigationBuilder>)

Wird aufgerufen, nachdem eine Navigationseigenschaft mit einem Attribut einem Entitätstyp hinzugefügt wurde.

ProcessNavigationAdded(IConventionNavigationBuilder, TAttribute, IConventionContext<IConventionNavigationBuilder>)

Wird aufgerufen, nachdem eine Navigationseigenschaft mit einem Attribut einem Entitätstyp hinzugefügt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

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

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, RequiredAttribute, IConventionContext<IConventionNavigation>)

Wird aufgerufen, nachdem eine Navigationseigenschaft mit einem Attribut einem Entitätstyp hinzugefügt wurde.

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, TAttribute, IConventionContext<IConventionNavigation>)

Wird aufgerufen, nachdem eine Navigationseigenschaft mit einem Attribut einem Entitätstyp hinzugefügt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

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

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, RequiredAttribute, IConventionContext<IConventionSkipNavigationBuilder>)

Wird aufgerufen, nachdem eine Skip-Navigationseigenschaft mit einem Attribut einem Entitätstyp hinzugefügt wurde.

ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, TAttribute, IConventionContext<IConventionSkipNavigationBuilder>)

Wird aufgerufen, nachdem eine Skip-Navigationseigenschaft mit einem Attribut einem Entitätstyp hinzugefügt wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

Wird aufgerufen, nachdem ein Entitätstyp ignoriert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)
ProcessTypeIgnored(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<String>)

Wird für jede Navigationseigenschaft aufgerufen, die ein Attribut aufweist, nachdem ein Entitätstyp ignoriert wurde.

(Geerbt von NavigationAttributeConventionBase<TAttribute>)

Gilt für: