AsyncQueryableExtensions.Where<TEntity> 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.
Filters a sequence of values based on a predicate.
public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> Where<TEntity> (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<TEntity> source, System.Linq.Expressions.Expression<Func<TEntity,bool>> filter) where TEntity : Microsoft.VisualStudio.ProjectSystem.Query.IEntity;
static member Where : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> * System.Linq.Expressions.Expression<Func<'Entity, bool>> -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncQueryable<'Entity (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)> (requires 'Entity :> Microsoft.VisualStudio.ProjectSystem.Query.IEntity)
<Extension()>
Public Function Where(Of TEntity As IEntity) (source As IAsyncQueryable(Of TEntity), filter As Expression(Of Func(Of TEntity, Boolean))) As IAsyncQueryable(Of TEntity)
Type Parameters
- TEntity
Type of the elements in the query.
Parameters
- source
- IAsyncQueryable<TEntity>
The query provides the elements to be filtered by the new predicate.
- filter
- Expression<Func<TEntity,Boolean>>
The predicate to filter out data.
Returns
A new query where the new filter will be applied.