DbContext.FromExpression<TResult> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework