NonNullableConventionBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A base type for conventions that configure model aspects based on whether the member type is a non-nullable reference type.
public abstract class NonNullableConventionBase : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public abstract class NonNullableConventionBase : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type NonNullableConventionBase = class
interface IModelFinalizedConvention
interface IConvention
type NonNullableConventionBase = class
interface IModelFinalizingConvention
interface IConvention
Public MustInherit Class NonNullableConventionBase
Implements IModelFinalizedConvention
Public MustInherit Class NonNullableConventionBase
Implements IModelFinalizingConvention
- Inheritance
-
NonNullableConventionBase
- Derived
- Implements
Remarks
See Model building conventions for more information and examples.
Constructors
NonNullableConventionBase(ProviderConventionSetBuilderDependencies) |
Creates a new instance of NonNullableConventionBase. |
Properties
Dependencies |
Dependencies for this service. |
Methods
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
Entity Framework