Sprache

NonNullableNavigationConvention Klasse

Definition

Eine Konvention, die die nicht nullfähigen Navigationen nach Bedarf auf den Prinzipalentitätstyp konfiguriert.

public class NonNullableNavigationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyPrincipalEndChangedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
public class NonNullableNavigationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NonNullableConventionBase, Microsoft.EntityFrameworkCore.Metadata.Conventions.INavigationAddedConvention
type NonNullableNavigationConvention = class
    inherit NonNullableConventionBase
    interface INavigationAddedConvention
    interface IConvention
    interface IForeignKeyPrincipalEndChangedConvention
type NonNullableNavigationConvention = class
    inherit NonNullableConventionBase
    interface INavigationAddedConvention
    interface IConvention
Public Class NonNullableNavigationConvention
Inherits NonNullableConventionBase
Implements IForeignKeyPrincipalEndChangedConvention, INavigationAddedConvention
Public Class NonNullableNavigationConvention
Inherits NonNullableConventionBase
Implements INavigationAddedConvention
Vererbung
NonNullableNavigationConvention
Implementiert

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen .

Konstruktoren

Name Beschreibung
NonNullableNavigationConvention(ProviderConventionSetBuilderDependencies)

Eine Konvention, die die nicht nullfähigen Navigationen nach Bedarf auf den Prinzipalentitätstyp konfiguriert.

Eigenschaften

Name Beschreibung
Dependencies

Abhängigkeiten für diesen Dienst.

(Geerbt von NonNullableConventionBase)

Methoden

Name Beschreibung
IsNonNullableReferenceType(IConventionModelBuilder, MemberInfo)

Gibt einen Wert zurück, der angibt, ob der Membertyp ein nicht nullabler Bezugstyp ist.

(Geerbt von NonNullableConventionBase)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

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

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wird aufgerufen, nachdem ein Modell abgeschlossen wurde. Entfernt die von dieser Konvention verwendete zwischengespeicherte Statusanmerkung.

(Geerbt von NonNullableConventionBase)
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wird aufgerufen, wenn ein Modell abgeschlossen wird.

(Geerbt von NonNullableConventionBase)
ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

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

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

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

TryGetNullabilityInfo(IConventionModelBuilder, MemberInfo, NullabilityInfo)

Gibt einen Wert zurück, der angibt, ob der Membertyp ein nicht nullabler Bezugstyp ist.

(Geerbt von NonNullableConventionBase)

Gilt für: