MaterializationInterceptionData Struct

Definition

A parameter object passed to IMaterializationInterceptor methods containing data about the instance being materialized.

[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct MaterializationInterceptionData
[<System.Runtime.CompilerServices.IsReadOnly>]
type MaterializationInterceptionData = struct
Public Structure MaterializationInterceptionData
Inheritance
MaterializationInterceptionData
Attributes

Remarks

See Logging, events, and diagnostics for more information and examples.

Constructors

MaterializationInterceptionData(MaterializationContext, IEntityType, Dictionary<IPropertyBase,ValueTuple<Object,Func<MaterializationContext, Object>>>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

MaterializationInterceptionData(MaterializationContext, IEntityType, Nullable<QueryTrackingBehavior>, Dictionary<IPropertyBase,ValueTuple<Object, Func<MaterializationContext,Object>>>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

Properties

Context

The current DbContext instance being used.

EntityType

The type of the entity being materialized.

QueryTrackingBehavior

The query tracking behavior, or null if this materialization is not from a query.

Methods

GetPropertyValue(IPropertyBase)

Gets the property value for the given property.

GetPropertyValue(String)

Gets the property value for the property with the given name.

GetPropertyValue<T>(IPropertyBase)

Gets the property value for the given property.

GetPropertyValue<T>(String)

Gets the property value for the property with the given name.

Applies to