Share via


NonNullableConventionBase Class

Definition

A base type for conventions that configure model aspects based on whether the member type is a non-nullable reference type.

[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
Inheritance
NonNullableConventionBase
Derived
Attributes
Implements

Remarks

See Model building conventions for more information and examples.

Constructors

Name Description
NonNullableConventionBase(ProviderConventionSetBuilderDependencies)

Creates a new instance of NonNullableConventionBase.

Properties

Name Description
Dependencies

Dependencies for this service.

Methods

Name Description
IsNonNullableReferenceType(IConventionModelBuilder, MemberInfo)

Returns a value indicating whether the member type is a non-nullable reference type.

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called after a model is finalized. Removes the cached state annotation used by this convention.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called when a model is being finalized.

TryGetNullabilityInfo(IConventionModelBuilder, MemberInfo, NullabilityInfo)

Returns a value indicating whether the member type is a non-nullable reference type.

Applies to