Tanneryd.BulkOperations.EF6
1.1.0-beta
See the version list below for details.
dotnet add package Tanneryd.BulkOperations.EF6 --version 1.1.0-beta
NuGet\Install-Package Tanneryd.BulkOperations.EF6 -Version 1.1.0-beta
<PackageReference Include="Tanneryd.BulkOperations.EF6" Version="1.1.0-beta" />
paket add Tanneryd.BulkOperations.EF6 --version 1.1.0-beta
#r "nuget: Tanneryd.BulkOperations.EF6, 1.1.0-beta"
// Install Tanneryd.BulkOperations.EF6 as a Cake Addin
#addin nuget:?package=Tanneryd.BulkOperations.EF6&version=1.1.0-beta&prerelease
// Install Tanneryd.BulkOperations.EF6 as a Cake Tool
#tool nuget:?package=Tanneryd.BulkOperations.EF6&version=1.1.0-beta&prerelease
Tanneryd.BulkOperations.EF6
A nuget package that extends the DbContext in EF6 with bulk operations for both inserts and updates.
Getting Started
Read the CodeProject article Bulk operations using Entity Framework if you are interested in some background.
Prerequisites
The extension is built for, and requires, Entity Framework 6 and .NET 4.5 or later.
Installing
Install the nuget package Tanneryd.BulkOperations.EF6. This will make the following methods available on the DbContext.
/// <summary>
///
/// The request object properties have the following function:
///
/// Entities - The entities are mapped to rows in a table and these table rows will be updated.
/// UpdatedColumnNames - Specifies which columns to update. An empty list will update ALL columns.
/// KeyMemberNames - Specifies which columns to use as row selectors. An empty list will result
/// in the primary key columns to be used.
/// Transaction - If a transaction object is provided the update will be made within that transaction.
/// InsertIfNew - When set to true, any entities new to the table will be inserted. Otherwise they
/// will be ignored.
///
/// </summary>
/// <param name="ctx"></param>
/// <param name="request"></param>
public static BulkOperationResponse BulkUpdateAll(
this DbContext ctx,
BulkUpdateRequest request)
/// <summary>
///
/// The request object properties have the following function:
///
/// Entities - The entities are mapped to rows in a table and these table rows will
/// be updated.
/// Transaction - If a transaction object is provided the update will be made within that transaction.
/// Recursive - If true any new entities added to navigation properties will also be inserted. Foreign
/// key relationships will be honored for both new and existing entities in the entire
/// entity graph.
///
/// </summary>
/// <param name="ctx"></param>
/// <param name="request"></param>
/// <returns></returns>
public static BulkOperationResponse BulkInsertAll<T>(
this DbContext ctx,
BulkInsertRequest<T> request)
Built With
- Visual Studio 2017
- .NET Framework 4.5
- Entity Framework 6.0.2
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Måns Tånneryd
License
This project is licensed under the Apache License - see the LICENSE.md file for details.
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.2.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 |
---|---|---|
2.0.4 | 3,995 | 9/5/2023 |
1.4.1 | 34,830 | 11/12/2021 |
1.4.0 | 87,960 | 6/15/2020 |
1.4.0-experimental | 2,449 | 1/14/2020 |
1.4.0-beta2 | 341 | 5/10/2020 |
1.4.0-beta1 | 816 | 4/1/2020 |
1.3.1 | 27,420 | 1/3/2020 |
1.3.1-beta1 | 372 | 12/30/2019 |
1.3.0 | 650 | 12/21/2019 |
1.3.0-beta1 | 383 | 11/6/2019 |
1.2.7-rc4 | 587 | 10/12/2019 |
1.2.7-rc3 | 381 | 9/23/2019 |
1.2.7-rc2 | 381 | 9/11/2019 |
1.2.7-rc1 | 376 | 9/10/2019 |
1.2.5 | 19,984 | 7/15/2019 |
1.2.5-beta1 | 458 | 6/12/2019 |
1.2.4 | 1,457 | 5/26/2019 |
1.2.3 | 5,635 | 3/29/2019 |
1.2.3-beta6 | 6,802 | 2/12/2019 |
1.2.3-beta5 | 491 | 2/10/2019 |
1.2.3-beta4 | 504 | 2/9/2019 |
1.2.3-beta3 | 519 | 2/2/2019 |
1.2.3-beta2 | 711 | 1/16/2019 |
1.2.3-beta1 | 540 | 1/13/2019 |
1.2.2 | 14,194 | 12/1/2018 |
1.2.1 | 7,265 | 9/24/2018 |
1.2.1-rc2 | 579 | 9/17/2018 |
1.2.1-rc1 | 619 | 9/12/2018 |
1.2.0 | 1,303 | 9/5/2018 |
1.2.0-rc2 | 639 | 8/24/2018 |
1.2.0-rc1 | 679 | 8/16/2018 |
1.2.0-beta5 | 919 | 7/11/2018 |
1.2.0-beta4 | 728 | 6/12/2018 |
1.2.0-beta3 | 914 | 5/12/2018 |
1.2.0-beta2 | 989 | 5/2/2018 |
1.2.0-beta1 | 730 | 4/23/2018 |
1.1.0 | 6,829 | 4/20/2018 |
1.1.0-beta7 | 733 | 4/18/2018 |
1.1.0-beta6 | 768 | 4/16/2018 |
1.1.0-beta5 | 906 | 4/13/2018 |
1.1.0-beta4 | 799 | 4/13/2018 |
1.1.0-beta | 953 | 4/12/2018 |
Primary keys can now have different column and property names.