DbContext.FromExpression<TResult> Method

Definition

Creates a queryable for given query expression.

public virtual System.Linq.IQueryable<TResult> FromExpression<TResult> (System.Linq.Expressions.Expression<Func<System.Linq.IQueryable<TResult>>> expression);
abstract member FromExpression : System.Linq.Expressions.Expression<Func<System.Linq.IQueryable<'Result>>> -> System.Linq.IQueryable<'Result>
override this.FromExpression : System.Linq.Expressions.Expression<Func<System.Linq.IQueryable<'Result>>> -> System.Linq.IQueryable<'Result>
Public Overridable Function FromExpression(Of TResult) (expression As Expression(Of Func(Of IQueryable(Of TResult)))) As IQueryable(Of TResult)

Type Parameters

TResult

The result type of the query expression.

Parameters

expression
Expression<Func<IQueryable<TResult>>>

The query expression to create.

Returns

IQueryable<TResult>

An IQueryable<T> representing the query.

Remarks

See Querying data with EF Core for more information and examples.

Applies to