Table of Contents

Interface IClrPropertyGetter

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.dll

Represents operations backed by compiled delegates that support getting the value of a mapped EF property.

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

public interface IClrPropertyGetter

Remarks

See Implementation of database providers and extensions for more information and examples.

Methods

GetClrValue(object)

Gets the property value from the declaring type.

object? GetClrValue(object structuralObject)

Parameters

structuralObject object

The entity or complex type instance.

Returns

object

The property value.

GetClrValueUsingContainingEntity(object)

Gets the property value from the containing entity instance.

object? GetClrValueUsingContainingEntity(object entity)

Parameters

entity object

The entity instance.

Returns

object

The property value.

HasSentinel(object)

Checks whether or not the property is set to the CLR default for its type.

bool HasSentinel(object structuralObject)

Parameters

structuralObject object

The entity or complex type instance.

Returns

bool

true if the property value is the CLR default; false it is any other value.

HasSentinelUsingContainingEntity(object)

Checks whether or not the property is set to the CLR default for its type.

bool HasSentinelUsingContainingEntity(object entity)

Parameters

entity object

The entity instance.

Returns

bool

true if the property value is the CLR default; false it is any other value.