InstantiationBinding Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework