Språk

MemberClassifier.IsCandidatePrimitiveProperty Method

Definition

Returns a value indicating whether the given member is a candidate primitive (scalar) property.

public virtual bool IsCandidatePrimitiveProperty(System.Reflection.MemberInfo memberInfo, Microsoft.EntityFrameworkCore.Metadata.IConventionModel model, bool useAttributes, out Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? typeMapping, out Type? elementType, out bool explicitlyConfigured);
abstract member IsCandidatePrimitiveProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionModel * bool * CoreTypeMapping * Type * bool -> bool
override this.IsCandidatePrimitiveProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionModel * bool * CoreTypeMapping * Type * bool -> bool
Public Overridable Function IsCandidatePrimitiveProperty (memberInfo As MemberInfo, model As IConventionModel, useAttributes As Boolean, ByRef typeMapping As CoreTypeMapping, ByRef elementType As Type, ByRef explicitlyConfigured As Boolean) As Boolean

Parameters

memberInfo
MemberInfo

The member to classify.

model
IConventionModel

The model.

useAttributes
Boolean

Whether attributes found on the member should be considered.

typeMapping
CoreTypeMapping

When this method returns, the type mapping for the member, if one was found.

elementType
Type

When this method returns true, the element type if the member is a primitive collection; otherwise null.

explicitlyConfigured
Boolean

When this method returns, indicates whether the type was explicitly configured.

Returns

true if the member is a candidate primitive property; otherwise false.

Implements

Applies to