/// <summary> /// Creates a new instance of the <see cref="ProjectionBindingExpression" /> class. /// </summary> /// <param name="queryExpression">The query expression to get the value from.</param> /// <param name="projectionMember">The projection member to bind with query expression.</param> /// <param name="type">The clr type of value being read.</param> public ProjectionBindingExpression( Expression queryExpression, ProjectionMember projectionMember, Type type) { QueryExpression = queryExpression; ProjectionMember = projectionMember; Type = type; }
/// <inheritdoc /> void IPrintableExpression.Print(ExpressionPrinter expressionPrinter) { expressionPrinter.Append(nameof(ProjectionBindingExpression) + ": "); if (ProjectionMember != null) { expressionPrinter.Append(ProjectionMember.ToString()); } else if (Index != null) { expressionPrinter.Append(Index.ToString() !); } }
public Expression GetProjectionExpression(ProjectionMember projectionMember) { return(_projectionMapping[projectionMember]); }
/// <summary> /// This is an internal API that supports the Entity Framework Core infrastructure and not subject to /// the same compatibility standards as public APIs. It may be changed or removed without notice in /// any release. You should only use it directly in your code with extreme caution and knowing that /// doing so can result in application failures when updating to a new Entity Framework Core release. /// </summary> public virtual Expression GetMappedProjection([NotNull] ProjectionMember projectionMember) => _projectionMapping[projectionMember];
public Expression GetMappedProjection(ProjectionMember projectionMember) => _projectionMapping[projectionMember];
public virtual Expression GetMappedProjection(ProjectionMember member) => _projectionMapping[member];