ConstructorBinding 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 the binding of parameters to a CLR ConstructorInfo for an entity type.
public class ConstructorBinding : Microsoft.EntityFrameworkCore.Metadata.InstantiationBinding
type ConstructorBinding = class
inherit InstantiationBinding
Public Class ConstructorBinding
Inherits InstantiationBinding
- Inheritance
Remarks
See Entity types with constructors for more information and examples.
Constructors
ConstructorBinding(ConstructorInfo, IReadOnlyList<ParameterBinding>) |
Creates a new ConstructorBinding instance. |
Properties
Constructor |
The bound ConstructorInfo. |
ParameterBindings |
The collection of ParameterBinding instances used. (Inherited from InstantiationBinding) |
RuntimeType |
The type that will be created from the expression tree created for this binding. |
Methods
CreateConstructorExpression(ParameterBindingInfo) |
Creates a NewExpression that represents creating an entity instance using the given constructor. |
With(IReadOnlyList<ParameterBinding>) |
Creates a copy that contains the given parameter bindings. |
With(IReadOnlyList<ParameterBinding>) |
Creates a copy that contains the given parameter bindings. (Inherited from InstantiationBinding) |
Applies to
Entity Framework