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.
[System.Runtime.CompilerServices.Nullable(0)]
public class ConstructorBinding : Microsoft.EntityFrameworkCore.Metadata.InstantiationBinding
public class ConstructorBinding : Microsoft.EntityFrameworkCore.Metadata.InstantiationBinding
[<System.Runtime.CompilerServices.Nullable(0)>]
type ConstructorBinding = class
inherit InstantiationBinding
type ConstructorBinding = class
inherit InstantiationBinding
Public Class ConstructorBinding
Inherits InstantiationBinding
- Inheritance
- Attributes
Remarks
See Entity types with constructors for more information and examples.
Constructors
| Name | Description |
|---|---|
| ConstructorBinding(ConstructorInfo, IReadOnlyList<ParameterBinding>) |
Creates a new ConstructorBinding instance. |
Properties
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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. |