ModularFramework.Utilities.Linq.Async.Abstractions
1.1.1
Prefix Reserved
dotnet add package ModularFramework.Utilities.Linq.Async.Abstractions --version 1.1.1
NuGet\Install-Package ModularFramework.Utilities.Linq.Async.Abstractions -Version 1.1.1
<PackageReference Include="ModularFramework.Utilities.Linq.Async.Abstractions" Version="1.1.1" />
<PackageVersion Include="ModularFramework.Utilities.Linq.Async.Abstractions" Version="1.1.1" />
<PackageReference Include="ModularFramework.Utilities.Linq.Async.Abstractions" />
paket add ModularFramework.Utilities.Linq.Async.Abstractions --version 1.1.1
#r "nuget: ModularFramework.Utilities.Linq.Async.Abstractions, 1.1.1"
#:package ModularFramework.Utilities.Linq.Async.Abstractions@1.1.1
#addin nuget:?package=ModularFramework.Utilities.Linq.Async.Abstractions&version=1.1.1
#tool nuget:?package=ModularFramework.Utilities.Linq.Async.Abstractions&version=1.1.1
ModularFramework.Utilities.Linq.Async.Abstractions is the abstraction package that introduces async LINQ operations over IAsyncQueryable.
This package is designed to serve as a foundation for asynchronous query operations. It does not implement IAsyncQueryProvider by itself,
see ModularFramework.Extensions.EntityFrameworkCore.Linq.Async package for the EF Core implementation.
Usage
Call the AsAsyncQueryable method to convert IQueryable<T> to IAsyncQueryable<T> then compose queries asynchronously as LINQ’s fluent syntax.
public async Task Usage<T>(IQueryable<T> queryable)
{
if (queryable.IsAsync)
{
IAsyncQueryable<T> asyncQueryable = queryable.AsAsyncQueryable();
IAsyncQueryable<T> asyncQueryableWithSelect = asyncQueryable.Select(x=>x);
IAsyncQueryable<T> asyncQueryableWithWhere = asyncQueryable.Where(x=>true);
List<T> list = await asyncQueryable.ToListAsync(CancellationToken.None);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on ModularFramework.Utilities.Linq.Async.Abstractions:
| Package | Downloads |
|---|---|
|
ModularFramework.Extensions.EntityFrameworkCore.Linq.Async
Extension package for EF Core that provides the implementations for ModularFramework.Utilities.Linq.Async.Abstractions to use async LINQ operations over IAsyncQueryable. |
|
|
ModularFramework.Utilities.Linq.Specifications
This package is designed to define, combine, and reuse LINQ predicates using the Specification Pattern. It enables developers to encapsulate query logic into composable specifications that can be combined with logical operators (`AND`, `OR`, `NOT`). |
GitHub repositories
This package is not used by any popular GitHub repositories.