LF.EntityFramework.Extention
1.2.3
dotnet add package LF.EntityFramework.Extention --version 1.2.3
NuGet\Install-Package LF.EntityFramework.Extention -Version 1.2.3
<PackageReference Include="LF.EntityFramework.Extention" Version="1.2.3" />
paket add LF.EntityFramework.Extention --version 1.2.3
#r "nuget: LF.EntityFramework.Extention, 1.2.3"
// Install LF.EntityFramework.Extention as a Cake Addin #addin nuget:?package=LF.EntityFramework.Extention&version=1.2.3 // Install LF.EntityFramework.Extention as a Cake Tool #tool nuget:?package=LF.EntityFramework.Extention&version=1.2.3
To bulk operation sql server, it have a high efficiency.
Bulk insert 1,000,000 records just need half minute
How to use it:
using LF.EntityFramework.Extention;
DBContextExtensions.SingleTaskMaxCount = 10000;//more than 10000 entities start multiple threads
DBContextExtensions.TaskCount = 10; //threads count for bulk do it
var t = DBcontext.Database.BeginTransaction();
DBcontext.BulkInsert(IEnumrobleEntities)
DBcontext.BulkUpdate(IEnumrobleEntities)
DBcontext.BulkDelete(IEnumrobleEntities)
t.Commit();
V1.2.1---->Multiple threads handler, faster than faster
V1.2.2---->Add update lock
V1.2.3---->Add Entity Operation
Example:
public class XXX:EntityOperator{}
XXX a =new XXX();
XXX b =new XXX();
System.Dynamic.ExpandoObject c = a+b;
XXX aa=c.ToObject(XXX)();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
- EntityFramework (>= 6.4.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Faster than Faster, Bulk insert 1,000,000 records just need half minute