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
ITypeBaseThe entity or complex type for this binding.
materializationContextExpression
ExpressionThe 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
EntityMaterializerSourceParametersParameters for the materialization that is happening.
materializationContextExpression
ExpressionThe expression tree from which the parameter value will come.
Properties
InstanceName
The name of the instance being materialized.
public string InstanceName { get; }
Property Value
MaterializationContextExpression
The expression tree from which the parameter value will come.
public Expression MaterializationContextExpression { get; }
Property Value
QueryTrackingBehavior
The query tracking behavior, or null if this materialization is not from a query.
public QueryTrackingBehavior? QueryTrackingBehavior { get; }
Property Value
ServiceInstances
Expressions holding initialized instances for service properties.
public List<ParameterExpression> ServiceInstances { get; }
Property Value
StructuralType
The entity or complex type for this binding.
public ITypeBase StructuralType { get; }
Property Value
Methods
GetValueBufferIndex(IPropertyBase)
Gets the index into the ValueBuffer where the property value can be found.
public int GetValueBufferIndex(IPropertyBase property)
Parameters
property
IPropertyBaseThe property.
Returns
- int
The index where its value can be found.