Sprache

NonNullableConventionBase Klasse

Definition

Ein Basistyp für Konventionen, die Modellaspekte basierend darauf konfigurieren, ob der Membertyp ein nicht nullabler Verweistyp ist.

[System.Runtime.CompilerServices.Nullable(0)]
public abstract class NonNullableConventionBase
public abstract class NonNullableConventionBase : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public abstract class NonNullableConventionBase : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class NonNullableConventionBase : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type NonNullableConventionBase = class
type NonNullableConventionBase = class
    interface IModelFinalizedConvention
    interface IConvention
type NonNullableConventionBase = class
    interface IModelFinalizingConvention
    interface IConvention
[<System.Runtime.CompilerServices.Nullable(0)>]
type NonNullableConventionBase = class
    interface IModelFinalizingConvention
    interface IConvention
Public MustInherit Class NonNullableConventionBase
Public MustInherit Class NonNullableConventionBase
Implements IModelFinalizedConvention
Public MustInherit Class NonNullableConventionBase
Implements IModelFinalizingConvention
Vererbung
NonNullableConventionBase
Abgeleitet
Attribute
Implementiert

Hinweise

Weitere Informationen und Beispiele finden Sie unter Modellbaukonventionen .

Konstruktoren

Name Beschreibung
NonNullableConventionBase(ProviderConventionSetBuilderDependencies)

Ein Basistyp für Konventionen, die Modellaspekte basierend darauf konfigurieren, ob der Membertyp ein nicht nullabler Verweistyp ist.

Eigenschaften

Name Beschreibung
Dependencies

Abhängigkeiten für diesen Dienst.

Methoden

Name Beschreibung
IsNonNullableReferenceType(IConventionModelBuilder, MemberInfo)

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

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

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

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Wird aufgerufen, wenn ein Modell abgeschlossen wird.

TryGetNullabilityInfo(IConventionModelBuilder, MemberInfo, NullabilityInfo)

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

Gilt für: