IMemberClassifier.IsCandidatePrimitiveProperty 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 given member is a candidate primitive (scalar) property.
public 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
Public 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.