Table of Contents

Class ObjectArrayParameterBinding

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.dll

Describes the binding from many EF model properties, dependency injection services, or metadata types to a new array of objects suitable for passing to a general purpose factory method such as is often used for creating proxies.

public class ObjectArrayParameterBinding : ParameterBinding
Inheritance
ObjectArrayParameterBinding
Inherited Members

Remarks

See Entity types with constructors for more information and examples.

Constructors

ObjectArrayParameterBinding(IReadOnlyList<ParameterBinding>)

Creates a new ObjectArrayParameterBinding taking all the given ParameterBinding instances and combining them into one binding that will initialize an array of object.

public ObjectArrayParameterBinding(IReadOnlyList<ParameterBinding> bindings)

Parameters

bindings IReadOnlyList<ParameterBinding>

The binding to combine.

Methods

BindToParameter(ParameterBindingInfo)

Creates an expression tree representing the binding of the value of a property from a materialization expression to a parameter of the constructor, factory method, etc.

public override Expression BindToParameter(ParameterBindingInfo bindingInfo)

Parameters

bindingInfo ParameterBindingInfo

The binding information.

Returns

Expression

The expression tree.

With(IPropertyBase[])

Creates a copy that contains the given consumed properties.

public override ParameterBinding With(IPropertyBase[] consumedProperties)

Parameters

consumedProperties IPropertyBase[]

The new consumed properties.

Returns

ParameterBinding

A copy with replaced consumed properties.