EFUtilities 0.3.0
See the version list below for details.
dotnet add package EFUtilities --version 0.3.0
NuGet\Install-Package EFUtilities -Version 0.3.0
<PackageReference Include="EFUtilities" Version="0.3.0" />
paket add EFUtilities --version 0.3.0
#r "nuget: EFUtilities, 0.3.0"
// Install EFUtilities as a Cake Addin
#addin nuget:?package=EFUtilities&version=0.3.0
// Install EFUtilities as a Cake Tool
#tool nuget:?package=EFUtilities&version=0.3.0
Adds batch operations to Entity Framework when using MS Sql server
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
-
- EntityFramework (>= 6.0.0)
GitHub repositories
This package is not used by any popular GitHub repositories.
New in 0.3.0:
Large refactoring to support more complex updates and provide an API that better communicates that these operations are separate from EF Core.
Also refactored all operations to use the provider model which makes it easier to support newer storage models. Also added fallbacks for Update/Delete.
New API examples:
EFBatchOperation.For(db, db.Comments).InsertAll(comments);
EFBatchOperation.For(db, db.Comments).Where(x => x.Text == "a").Update(x => x.Reads, x => x.Reads + 1);
EFBatchOperation.For(db, db.Comments).Where(x => x.Text == "a").Delete();
The update query should now support many of the DbFunctions that EF support. For example AddDays which will translate to a DATEADD:
EFBatchOperation.For(db, db.BlogPosts).Where(b => b.Title == "T2").Update(b => b.Created, b => DbFunctions.AddDays(b.Created, 1));
Now all 3 methods support the case where property names doesn't match the sql column name.
See more at: https://github.com/MikaelEliasson/EntityFramework.Utilities/pull/4