Table of Contents

Struct ParameterBindingInfo

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

Carries information about a parameter binding.

public readonly struct ParameterBindingInfo
Inherited Members

Remarks

See Entity types with constructors for more information and examples.

Constructors

ParameterBindingInfo(ITypeBase, Expression)

Creates a new ParameterBindingInfo to define a parameter binding.

public ParameterBindingInfo(ITypeBase structuralType, Expression materializationContextExpression)

Parameters

structuralType ITypeBase

The entity or complex type for this binding.

materializationContextExpression Expression

The expression tree from which the parameter value will come.

ParameterBindingInfo(EntityMaterializerSourceParameters, Expression)

Creates a new ParameterBindingInfo to define a parameter binding.

public ParameterBindingInfo(EntityMaterializerSourceParameters materializerSourceParameters, Expression materializationContextExpression)

Parameters

materializerSourceParameters EntityMaterializerSourceParameters

Parameters for the materialization that is happening.

materializationContextExpression Expression

The expression tree from which the parameter value will come.

Properties

InstanceName

The name of the instance being materialized.

public string InstanceName { get; }

Property Value

string

MaterializationContextExpression

The expression tree from which the parameter value will come.

public Expression MaterializationContextExpression { get; }

Property Value

Expression

QueryTrackingBehavior

The query tracking behavior, or null if this materialization is not from a query.

public QueryTrackingBehavior? QueryTrackingBehavior { get; }

Property Value

QueryTrackingBehavior?

ServiceInstances

Expressions holding initialized instances for service properties.

public List<ParameterExpression> ServiceInstances { get; }

Property Value

List<ParameterExpression>

StructuralType

The entity or complex type for this binding.

public ITypeBase StructuralType { get; }

Property Value

ITypeBase

Methods

GetValueBufferIndex(IPropertyBase)

Gets the index into the ValueBuffer where the property value can be found.

public int GetValueBufferIndex(IPropertyBase property)

Parameters

property IPropertyBase

The property.

Returns

int

The index where its value can be found.