EntitiyFrameworkCore.Parallel
1.0.0
This package has a typo in the name. Use EntityFrameworkCore.Parallel instead.
dotnet add package EntitiyFrameworkCore.Parallel --version 1.0.0
NuGet\Install-Package EntitiyFrameworkCore.Parallel -Version 1.0.0
<PackageReference Include="EntitiyFrameworkCore.Parallel" Version="1.0.0" />
<PackageVersion Include="EntitiyFrameworkCore.Parallel" Version="1.0.0" />
<PackageReference Include="EntitiyFrameworkCore.Parallel" />
paket add EntitiyFrameworkCore.Parallel --version 1.0.0
#r "nuget: EntitiyFrameworkCore.Parallel, 1.0.0"
#:package EntitiyFrameworkCore.Parallel@1.0.0
#addin nuget:?package=EntitiyFrameworkCore.Parallel&version=1.0.0
#tool nuget:?package=EntitiyFrameworkCore.Parallel&version=1.0.0
EntityFrameworkCore.Parallel
This extension to Entity Framework Core adds a Set<TContext, 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. net10.0 was computed. 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. |
| .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
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|