IMaterializationInterceptor Interface

Definition

A ISingletonInterceptor used to intercept the various parts of object creation and initialization when Entity Framework is creating an object, typically from data returned by a query.

public interface IMaterializationInterceptor : Microsoft.EntityFrameworkCore.Diagnostics.ISingletonInterceptor
type IMaterializationInterceptor = interface
    interface ISingletonInterceptor
    interface IInterceptor
Public Interface IMaterializationInterceptor
Implements ISingletonInterceptor
Implements

Remarks

See EF Core interceptors for more information and examples.

Methods

CreatedInstance(MaterializationInterceptionData, Object)

Called immediately after EF has created an instance of an entity. That is, after the constructor has been called, but before any properties values not set by the constructor have been set.

CreatingInstance(MaterializationInterceptionData, InterceptionResult<Object>)

Called immediately before EF is going to create an instance of an entity. That is, before the constructor has been called.

InitializedInstance(MaterializationInterceptionData, Object)

Called immediately after EF has set property values of an entity that has just been created.

InitializingInstance(MaterializationInterceptionData, Object, InterceptionResult)

Called immediately before EF is going to set property values of an entity that has just been created. Note that property values set by the constructor will already have been set.

Applies to