ReadOnlyRepositoryExtensions.GetFilteredEntities<TEntity>(IReadOnlyRepository<TEntity>, Expression<Func<TEntity, Boolean>>) Method
Creates an IQueryable representing a sequence of entities from a repository filtered by a given predicate.
Namespace: DevExpress.Mvvm.DataModel
Assembly: DevExpress.Mvvm.v24.2.DataModel.dll
Declaration
public static IQueryable<TEntity> GetFilteredEntities<TEntity>(
this IReadOnlyRepository<TEntity> repository,
Expression<Func<TEntity, bool>> predicate
)
where TEntity : class
Parameters
Name | Type | Description |
---|---|---|
repository | IReadOnlyRepository<TEntity> | A repository. |
predicate | Expression<Func<TEntity, Boolean>> | A function to test each element for a condition. |
Type Parameters
Name |
---|
TEntity |
Returns
Type |
---|
IQueryable<TEntity> |
See Also