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
objectThe 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
objectThe 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
objectThe entity or complex type instance.
Returns
HasSentinelUsingContainingEntity(object)
Checks whether or not the property is set to the CLR default for its type.
bool HasSentinelUsingContainingEntity(object entity)
Parameters
entity
objectThe entity instance.