EntityFrameworkCore.Parallel
1.0.0
See the version list below for details.
dotnet add package EntityFrameworkCore.Parallel --version 1.0.0
NuGet\Install-Package EntityFrameworkCore.Parallel -Version 1.0.0
<PackageReference Include="EntityFrameworkCore.Parallel" Version="1.0.0" />
paket add EntityFrameworkCore.Parallel --version 1.0.0
#r "nuget: EntityFrameworkCore.Parallel, 1.0.0"
// Install EntityFrameworkCore.Parallel as a Cake Addin #addin nuget:?package=EntityFrameworkCore.Parallel&version=1.0.0 // Install EntityFrameworkCore.Parallel as a Cake Tool #tool nuget:?package=EntityFrameworkCore.Parallel&version=1.0.0
EntityFrameworkCore.Parallel
This extension to Entity Framework Core adds a Set<TEntity>
method to IDbContextFactory<TContext>
.
This allows you to easily execute multiple queries in parallel without the need to write complex code, or a lot of using
blocks or statements.
You can stick to all your known methods from IQueryable<TEntity>
.
As the context is disposed after your query is executed, all results will obviously not be tracked and disconnected from any DbContext
.
How to use
In your Startup
class, add a DbContextfactory
. If you want a pooled one, or not is up to you.
services.AddPooledDbContextFactory<OrderContext>(options => options.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=OrderTest"));
In your business class, inject an IDbContextFactory<TContext>
and use it like this
var ordersFromDb = await _factory.Set<Order>().Where(o => o.Id > 3).ToListAsync();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.EntityFrameworkCore (>= 5.0.0)
- System.Interactive.Async (>= 5.0.0)
- System.Linq.Async (>= 5.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on EntityFrameworkCore.Parallel:
Package | Downloads |
---|---|
RESTworld.Business
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
5.0.1 | 56 | 1/28/2025 |
5.0.0 | 171 | 11/19/2024 |
4.1.1 | 1,075 | 10/11/2024 |
4.1.0 | 1,772 | 9/20/2024 |
4.0.5 | 676 | 7/10/2024 |
4.0.4 | 256 | 6/4/2024 |
4.0.3 | 127 | 5/24/2024 |
4.0.2 | 295 | 4/19/2024 |
4.0.1 | 1,893 | 1/9/2024 |
4.0.0 | 668 | 11/14/2023 |
3.0.9 | 439 | 10/23/2023 |
3.0.8 | 434 | 9/5/2023 |
3.0.7 | 470 | 7/17/2023 |
3.0.6 | 398 | 6/28/2023 |
3.0.5 | 1,013 | 6/14/2023 |
3.0.4 | 808 | 4/18/2023 |
3.0.3 | 759 | 2/22/2023 |
3.0.2 | 400 | 2/9/2023 |
3.0.1 | 892 | 12/21/2022 |
3.0.0 | 1,168 | 11/9/2022 |
2.2.0 | 3,352 | 10/20/2022 |
2.1.0 | 2,203 | 6/28/2022 |
2.0.3 | 2,778 | 5/13/2022 |
2.0.2 | 3,703 | 3/9/2022 |
2.0.1 | 2,295 | 2/22/2022 |
2.0.0 | 3,125 | 12/1/2021 |
1.0.2 | 1,073 | 11/4/2021 |
1.0.1 | 2,919 | 9/7/2021 |
1.0.0 | 2,363 | 11/24/2020 |