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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework