Język

PropertyDiscoveryConvention.IsCandidatePrimitiveProperty Method

Definition

Overloads

Name Description
IsCandidatePrimitiveProperty(MemberInfo, IConventionTypeBase, CoreTypeMapping)

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

IsCandidatePrimitiveProperty(MemberInfo, IConventionTypeBase, CoreTypeMapping, Type)

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

IsCandidatePrimitiveProperty(MemberInfo, IConventionTypeBase, CoreTypeMapping)

Source:
PropertyDiscoveryConvention.cs
Source:
PropertyDiscoveryConvention.cs

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

protected virtual bool IsCandidatePrimitiveProperty(System.Reflection.MemberInfo memberInfo, Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase structuralType, out Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? mapping);
abstract member IsCandidatePrimitiveProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * CoreTypeMapping -> bool
override this.IsCandidatePrimitiveProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * CoreTypeMapping -> bool
Protected Overridable Function IsCandidatePrimitiveProperty (memberInfo As MemberInfo, structuralType As IConventionTypeBase, ByRef mapping As CoreTypeMapping) As Boolean

Parameters

memberInfo
MemberInfo

The member.

structuralType
IConventionTypeBase

The type for which the properties will be discovered.

mapping
CoreTypeMapping

The type mapping for the property.

Returns

Applies to

IsCandidatePrimitiveProperty(MemberInfo, IConventionTypeBase, CoreTypeMapping, Type)

Source:
PropertyDiscoveryConvention.cs

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

protected virtual bool IsCandidatePrimitiveProperty(System.Reflection.MemberInfo memberInfo, Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase structuralType, out Microsoft.EntityFrameworkCore.Storage.CoreTypeMapping? mapping, out Type? elementType);
abstract member IsCandidatePrimitiveProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * CoreTypeMapping * Type -> bool
override this.IsCandidatePrimitiveProperty : System.Reflection.MemberInfo * Microsoft.EntityFrameworkCore.Metadata.IConventionTypeBase * CoreTypeMapping * Type -> bool
Protected Overridable Function IsCandidatePrimitiveProperty (memberInfo As MemberInfo, structuralType As IConventionTypeBase, ByRef mapping As CoreTypeMapping, ByRef elementType As Type) As Boolean

Parameters

memberInfo
MemberInfo

The member.

structuralType
IConventionTypeBase

The type for which the properties will be discovered.

mapping
CoreTypeMapping

The type mapping for the property.

elementType
Type

The element type if the member is a primitive collection; otherwise null.

Returns

Applies to