Table of Contents

Interface IInstantiationBindingInterceptor

Namespace
Microsoft.EntityFrameworkCore.Diagnostics
Assembly
Microsoft.EntityFrameworkCore.dll

A ISingletonInterceptor used to modify the InstantiationBinding used when creating entity instances.

public interface IInstantiationBindingInterceptor : ISingletonInterceptor, IInterceptor

Remarks

InstantiationBinding instances define how to create an entity instance through the binding of EF model properties to, for example, constructor parameters or parameters of a factory method. This is then built into the expression tree which is compiled into a delegate used to materialize entity instances.

Methods

ModifyBinding(InstantiationBindingInterceptionData, InstantiationBinding)

Returns a new InstantiationBinding for the given entity type, potentially modified from the given binding.

InstantiationBinding ModifyBinding(InstantiationBindingInterceptionData interceptionData, InstantiationBinding binding)

Parameters

interceptionData InstantiationBindingInterceptionData

Contextual information about the binding.

binding InstantiationBinding

The current binding.

Returns

InstantiationBinding

A new binding.