Table of Contents

Class InlineQueryRootExpression

Namespace
Microsoft.EntityFrameworkCore.Query
Assembly
Microsoft.EntityFrameworkCore.dll

An expression that represents an inline query root within the query (e.g. new[] { 1, 2, 3 }).

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public class InlineQueryRootExpression : QueryRootExpression, IPrintableExpression
Inheritance
InlineQueryRootExpression
Implements
Inherited Members
Extension Methods

Constructors

InlineQueryRootExpression(IAsyncQueryProvider, IReadOnlyList<Expression>, Type)

Creates a new instance of the InlineQueryRootExpression class.

public InlineQueryRootExpression(IAsyncQueryProvider asyncQueryProvider, IReadOnlyList<Expression> values, Type elementType)

Parameters

asyncQueryProvider IAsyncQueryProvider

The query provider associated with this query root.

values IReadOnlyList<Expression>

The values contained in this query root.

elementType Type

The element type this query root represents.

InlineQueryRootExpression(IReadOnlyList<Expression>, Type)

Creates a new instance of the InlineQueryRootExpression class.

public InlineQueryRootExpression(IReadOnlyList<Expression> values, Type elementType)

Parameters

values IReadOnlyList<Expression>

An expression containing the values that this query root represents.

elementType Type

The element type this query root represents.

Properties

Values

The values contained in this query root.

public virtual IReadOnlyList<Expression> Values { get; }

Property Value

IReadOnlyList<Expression>

Methods

DetachQueryProvider()

public override Expression DetachQueryProvider()

Returns

Expression

Print(ExpressionPrinter)

protected override void Print(ExpressionPrinter expressionPrinter)

Parameters

expressionPrinter ExpressionPrinter

Update(IReadOnlyList<Expression>)

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

public virtual InlineQueryRootExpression Update(IReadOnlyList<Expression> values)

Parameters

values IReadOnlyList<Expression>

The Values property of the result.

Returns

InlineQueryRootExpression

This expression if no children changed, or an expression with the updated children.

VisitChildren(ExpressionVisitor)

protected override Expression VisitChildren(ExpressionVisitor visitor)

Parameters

visitor ExpressionVisitor

Returns

Expression