NonNullableConventionBase.TryGetNullabilityInfo Method
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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework