Langue

MemberClassifier Class

Definition

Classifies CLR members of a type during model building, determining whether a member is a candidate navigation, scalar property, complex property, or service property.

[System.Runtime.CompilerServices.Nullable(0)]
public class MemberClassifier : Microsoft.EntityFrameworkCore.Metadata.IMemberClassifier
[<System.Runtime.CompilerServices.Nullable(0)>]
type MemberClassifier = class
    interface IMemberClassifier
Public Class MemberClassifier
Implements IMemberClassifier
Inheritance
MemberClassifier
Derived
Attributes
Implements

Remarks

This type is typically used by database providers (and other extensions). It is generally not used in application code.

The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.

Constructors

Name Description
MemberClassifier(MemberClassifierDependencies)

Creates a new instance of MemberClassifier.

Properties

Name Description
Dependencies

Dependencies for this service.

Methods

Name Description
GetConfigurationType(Type, IConventionModel)

Returns the kind of structural type the given CLR type has been explicitly configured as, or null if it has no explicit configuration.

IsCandidateComplexProperty(MemberInfo, IConventionModel, Boolean, Type, Boolean)

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

IsCandidateNavigationProperty(MemberInfo, IConventionModel, Boolean, Type, Nullable<Boolean>, Boolean)

Returns a value indicating whether the given member is a candidate navigation.

IsCandidatePrimitiveProperty(MemberInfo, IConventionModel, Boolean, CoreTypeMapping, Type, Boolean)

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

IsCandidateServiceProperty(MemberInfo, IConventionModel, Boolean, IParameterBindingFactory, Boolean)

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

Applies to