Delen via


ConstructorBinding Class

Definition

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
ConstructorBinding

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