Share via


ConstructorBinding Class

Definition

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
ConstructorBinding
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.

Applies to