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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework