Table of Contents

Class PropertyParameterBinding

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

Describes the binding from an IProperty to a parameter in a constructor, factory method, or similar.

public class PropertyParameterBinding : ParameterBinding
Inheritance
PropertyParameterBinding
Inherited Members

Remarks

See Entity types with constructors for more information and examples.

Constructors

PropertyParameterBinding(IProperty)

Creates a new PropertyParameterBinding instance for the given IProperty.

public PropertyParameterBinding(IProperty property)

Parameters

property IProperty

The property to bind.

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.