InstantiationBinding Class

Definition

Defines how to create an entity instance through the binding of EF model properties to, for example, constructor parameters or parameters of a factory method.

public abstract class InstantiationBinding
type InstantiationBinding = class
Public MustInherit Class InstantiationBinding
Inheritance
InstantiationBinding
Derived

Remarks

See Entity types with constructors for more information and examples.

Constructors

InstantiationBinding(IReadOnlyList<ParameterBinding>)

Creates a new InstantiationBinding instance.

Properties

ParameterBindings

The collection of ParameterBinding instances used.

RuntimeType

The type that will be created from the expression tree created for this binding.

Methods

CreateConstructorExpression(ParameterBindingInfo)

Creates an expression tree that represents creating an entity instance from the given binding information. For example, this might be a NewExpression to call a constructor, or a MethodCallExpression to call a factory method.

With(IReadOnlyList<ParameterBinding>)

Creates a copy that contains the given parameter bindings.

Applies to