NonNullableConventionBase.TryGetNullabilityInfo Method

Definition

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

protected virtual bool TryGetNullabilityInfo (Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, System.Reflection.MemberInfo memberInfo, out System.Reflection.NullabilityInfo? nullabilityInfo);
abstract member TryGetNullabilityInfo : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * System.Reflection.MemberInfo * NullabilityInfo -> bool
override this.TryGetNullabilityInfo : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * System.Reflection.MemberInfo * NullabilityInfo -> bool
Protected Overridable Function TryGetNullabilityInfo (modelBuilder As IConventionModelBuilder, memberInfo As MemberInfo, ByRef nullabilityInfo As NullabilityInfo) As Boolean

Parameters

modelBuilder
IConventionModelBuilder

The model builder used to build the model.

memberInfo
MemberInfo

The member info.

nullabilityInfo
NullabilityInfo

The nullability info for the memberInfo, or null if it does not represent a valid reference type.

Returns

true if the member type is a non-nullable reference type.

Applies to