Z.EntityFramework.Extensions.EF4 3.16.5

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Z.EntityFramework.Extensions.EF4 --version 3.16.5
                    
NuGet\Install-Package Z.EntityFramework.Extensions.EF4 -Version 3.16.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Z.EntityFramework.Extensions.EF4" Version="3.16.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Z.EntityFramework.Extensions.EF4" Version="3.16.5" />
                    
Directory.Packages.props
<PackageReference Include="Z.EntityFramework.Extensions.EF4" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Z.EntityFramework.Extensions.EF4 --version 3.16.5
                    
#r "nuget: Z.EntityFramework.Extensions.EF4, 3.16.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Z.EntityFramework.Extensions.EF4&version=3.16.5
                    
Install as a Cake Addin
#tool nuget:?package=Z.EntityFramework.Extensions.EF4&version=3.16.5
                    
Install as a Cake Tool
// Fiddle: https://dotnetfiddle.net/awlJdf
// @nuget: EntityFramework
// @nuget: Z.EntityFramework.Extensions
// Website: https://entityframework-extensions.net/

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Data.Entity;
public class Program
{
	public static List<BenchmarkResult> BenchmarkResults = new List<BenchmarkResult>();
	
	public static void Main()
	{
		JustInTime_Compile();
		
		// Generate X entities
		var customers = GenerateCustomers(1000);
		var inactiveCustomers = customers.Where(x => !x.IsActive).ToList();
		
		var clockInsert = new Stopwatch();
		var clockUpdate = new Stopwatch();
		var clockDelete = new Stopwatch();
		
		using (var context = new EntityContext())
		{
			// BulkInsert
			{
				clockInsert.Start();
				context.BulkInsert(customers);
				clockInsert.Stop();
				
				BenchmarkResults.Add(new BenchmarkResult() { Action = "BulkInsert", Entities = customers.Count, Performance = clockInsert.ElapsedMilliseconds + " ms" });
			}
			
			// BulkUpdate
			{
				inactiveCustomers.ForEach(x => x.Name = "zzz;" + x.Name);
				clockUpdate.Start();
				context.BulkUpdate(inactiveCustomers);
				clockUpdate.Stop();
				
				BenchmarkResults.Add(new BenchmarkResult() { Action = "BulkUpdate", Entities = inactiveCustomers.Count, Performance = clockUpdate.ElapsedMilliseconds + " ms" });
			}
			
			// BulkDelete
			{
				clockDelete.Start();
				context.BulkDelete(inactiveCustomers);
				clockDelete.Stop();
				
				BenchmarkResults.Add(new BenchmarkResult() { Action = "BulkDelete", Entities = inactiveCustomers.Count, Performance = clockDelete.ElapsedMilliseconds + " ms" });
			}
		}
		
		FiddleHelper.WriteTable("EFE - Easy to use, easy to customize!", BenchmarkResults);
	}
		 
	public static void JustInTime_Compile()
	{
		var customers = GenerateCustomers(10);
		
		using (var context = new EntityContext())
		{
			context.BulkInsert(customers);
			context.BulkDelete(customers);
		}
	}
	
	public static List<Customer> GenerateCustomers(int count)
	{
		var list = new List<Customer>();
		
		for(int i = 0; i < count; i++)
		{
			list.Add(new Customer() { Name = "Customer_" + i, Description = "Description_" +  i, IsActive = i % 2 == 0 });
		}

		return list;
	}

	public class EntityContext : DbContext
	{
		public EntityContext() : base(FiddleHelper.GetConnectionStringSqlServer())
		{

		}
		
		public DbSet<Customer> Customers { get; set; }
	}

	public class Customer
	{
		public int CustomerID { get; set; }
		public string Name { get; set; }
		public string Description { get; set; }
		public Boolean IsActive { get; set; }
	}
	
	public class BenchmarkResult
	{
		public string Action { get; set; }
		public int Entities { get; set; }
		public string Performance { get; set; }
	}
}
Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
9.103.9.1 140 6/23/2025
9.103.9 285 6/10/2025
9.103.8.1 164 5/6/2025
9.103.8 182 4/8/2025
9.103.7.2 193 3/10/2025
9.103.7.1 117 2/11/2025
9.103.7 71 1/14/2025
9.103.6.4 110 12/17/2024
9.103.6.3 114 11/26/2024
8.103.6.2 120 11/12/2024
8.103.6.1 118 11/6/2024
8.103.6 149 10/21/2024
8.103.5 156 10/8/2024
8.103.4 123 9/23/2024
8.103.3 151 8/27/2024
8.103.2 147 8/12/2024
8.103.1 129 7/22/2024
8.103.0 141 6/18/2024
8.102.3 133 6/3/2024
8.102.2.5 128 5/21/2024
8.102.2.4 149 4/30/2024
8.102.2.3 149 4/23/2024
8.102.2.2 152 4/16/2024
8.102.2.1 1,616 3/26/2024
8.102.2 259 3/12/2024
8.102.1.1 342 2/27/2024
8.102.1 477 2/13/2024
8.102.0 511 2/6/2024
8.101.2.1 525 1/23/2024
8.101.2 579 1/16/2024
8.101.1.3 749 12/19/2023
8.101.1.2 780 12/12/2023
8.101.1.1 872 12/5/2023
8.101.1 798 11/28/2023
8.101.0 780 11/15/2023
7.100.0.5 892 10/24/2023
7.100.0.4 867 10/17/2023
7.100.0.3 976 10/3/2023
7.100.0.2 901 9/26/2023
7.100.0.1 909 9/19/2023
7.100.0 963 9/12/2023
7.22.7 1,015 9/11/2023
7.22.6 1,088 8/15/2023
7.22.4 1,035 7/11/2023
7.22.3 1,100 6/12/2023
7.22.2 1,143 5/30/2023
7.22.0 1,166 5/16/2023
7.21.1 1,128 5/2/2023
7.21.0 1,187 4/17/2023
7.20.2 1,211 3/28/2023
7.20.0 1,177 3/20/2023
7.19.0 1,269 3/7/2023
7.18.5 1,265 2/21/2023
7.18.4 1,175 2/7/2023
7.18.3 1,286 1/24/2023
7.18.2 1,263 1/17/2023
7.18.1 1,267 12/20/2022
7.18.0 1,302 12/6/2022
7.17.2 1,313 12/5/2022
7.17.1 1,337 11/22/2022
7.17.0 1,303 11/15/2022
6.16.1 1,324 11/1/2022
6.16.0 1,404 10/25/2022
6.15.2 1,382 10/11/2022
6.15.1 1,380 9/26/2022
6.15.0 1,377 9/12/2022
6.14.4 1,402 8/16/2022
6.14.3 1,461 7/19/2022
6.14.2 1,463 6/22/2022
6.14.1 1,390 6/14/2022
6.14.0 1,467 6/7/2022
6.13.21 1,445 5/24/2022
6.13.20 1,428 5/17/2022
6.13.19 1,430 5/10/2022
6.13.18 1,438 4/26/2022
6.13.17 1,480 4/12/2022
6.13.15 1,468 3/15/2022
6.13.14 1,462 3/8/2022
6.13.13 1,519 3/1/2022
6.13.12 1,419 2/22/2022
6.13.10 1,490 2/14/2022
6.13.9 1,480 2/8/2022
6.13.8 1,436 2/1/2022
6.13.7 1,496 1/18/2022
6.13.6 1,261 1/11/2022
6.13.5 1,343 12/30/2021
6.13.4 1,375 12/14/2021
6.13.3 1,304 12/7/2021
6.13.2 8,585 11/24/2021
6.13.1 1,374 11/17/2021
6.13.0 1,433 11/9/2021
5.2.17 1,432 11/3/2021
5.2.16 1,467 10/27/2021
5.2.15 1,404 10/20/2021
5.2.14 1,365 10/13/2021
5.2.13 1,402 9/22/2021
5.2.12 1,384 9/15/2021
5.2.10 1,434 9/8/2021
5.2.9 1,411 9/1/2021
5.2.8 1,433 8/25/2021
5.2.7 1,383 8/17/2021
5.2.6 1,464 8/4/2021
5.2.5 1,384 7/28/2021
5.2.4 1,405 7/20/2021
5.2.3 1,390 7/13/2021
5.2.2 1,406 7/5/2021
5.2.0 1,368 6/30/2021
5.1.41 1,399 6/16/2021
5.1.40 1,364 6/14/2021
5.1.39 1,446 6/2/2021
5.1.38 1,470 5/31/2021
5.1.37 1,387 5/19/2021
5.1.36 1,428 5/12/2021
5.1.35 1,348 5/5/2021
5.1.34 1,417 5/3/2021
5.1.33 1,378 4/26/2021
5.1.32 1,361 4/26/2021
5.1.31 1,372 4/19/2021
5.1.30 1,383 4/7/2021
5.1.29 1,390 3/30/2021
5.1.28 1,397 3/26/2021
5.1.27 1,408 3/25/2021
5.1.26 1,374 3/24/2021
5.1.25 1,469 3/17/2021
5.1.24 1,498 3/15/2021
5.1.23 1,601 3/10/2021
5.1.22 1,546 3/2/2021
5.1.21 1,465 2/23/2021
5.1.20 1,520 2/19/2021
5.1.19 1,519 2/16/2021
5.1.18 1,506 2/11/2021
5.1.17 1,592 2/10/2021
5.1.16 1,560 2/2/2021
5.1.15 1,557 1/27/2021
5.1.14 1,593 1/19/2021
5.1.13 1,522 1/13/2021
5.1.12 1,616 1/10/2021
5.1.11 1,591 1/5/2021
5.1.10 1,554 12/30/2020
5.1.9 1,530 12/16/2020
5.1.8 1,532 12/14/2020
5.1.7 1,557 12/11/2020
5.1.6 1,596 12/8/2020
5.1.5 1,598 12/1/2020
5.1.4 1,572 11/27/2020
5.1.3 1,478 11/23/2020
5.1.2 1,583 11/19/2020
5.1.1 1,616 11/18/2020
5.1.0 1,607 11/11/2020
4.0.106 1,630 11/5/2020
4.0.105 1,694 10/30/2020
4.0.104 1,581 10/26/2020
4.0.103 1,615 10/21/2020
4.0.102 1,726 10/20/2020
4.0.101 1,564 10/15/2020
4.0.100 1,640 10/14/2020
4.0.99 1,598 10/13/2020
4.0.98 1,533 10/11/2020
4.0.97 1,639 10/7/2020
4.0.96 1,618 9/25/2020
4.0.95 1,594 9/21/2020
4.0.94 1,525 9/14/2020
4.0.93 1,603 9/10/2020
4.0.92 1,581 9/8/2020
4.0.91 1,593 8/31/2020
4.0.90 1,637 8/26/2020
4.0.89 1,591 8/11/2020
4.0.88 1,606 8/6/2020
4.0.87 1,591 8/3/2020
4.0.86 1,665 7/27/2020
4.0.85 1,597 7/23/2020
4.0.84 1,629 7/20/2020
4.0.82 1,640 7/14/2020
4.0.81 1,613 7/13/2020
4.0.80 1,675 7/12/2020
4.0.79 1,570 6/16/2020
4.0.78 1,725 6/13/2020
4.0.76 1,698 6/3/2020
4.0.75 1,654 5/22/2020
4.0.73 1,667 5/18/2020
4.0.72 1,583 5/14/2020
4.0.71 1,626 5/12/2020
4.0.70 1,647 5/11/2020
4.0.69 1,627 5/5/2020
4.0.68 1,708 4/29/2020
4.0.67 1,613 4/22/2020
4.0.66 1,614 4/22/2020
4.0.65 1,671 4/17/2020
4.0.64 1,636 4/15/2020
4.0.63 1,523 4/8/2020
4.0.62 1,704 4/7/2020
4.0.61 1,664 4/2/2020
4.0.60 1,664 4/1/2020
4.0.59 1,631 3/23/2020
4.0.58 1,632 3/23/2020
4.0.57 1,750 3/16/2020
4.0.56 1,689 3/10/2020
4.0.55 1,624 3/10/2020
4.0.54 2,035 3/3/2020
4.0.53 1,647 2/27/2020
4.0.52 1,616 2/25/2020
4.0.51 1,658 2/24/2020
4.0.50 1,685 2/19/2020
4.0.49 1,689 2/17/2020
4.0.48 1,659 2/17/2020
4.0.47 1,686 2/11/2020
4.0.46 1,719 2/8/2020
4.0.45 1,719 2/7/2020
4.0.44 1,697 2/6/2020
4.0.43 1,666 2/3/2020
4.0.42 1,707 1/31/2020
4.0.40 1,726 1/29/2020
4.0.39 1,665 1/28/2020
4.0.35 1,673 1/9/2020
4.0.34 1,747 12/29/2019
4.0.33 1,665 12/29/2019
4.0.30 1,664 12/16/2019
4.0.29 1,687 12/13/2019
4.0.28 1,656 12/13/2019
4.0.27 1,710 12/13/2019
4.0.24 1,707 12/4/2019
4.0.23 1,594 12/4/2019
4.0.22 1,642 12/4/2019
4.0.21 1,626 12/3/2019
4.0.20 1,604 11/21/2019
4.0.19 1,610 11/20/2019
4.0.18 1,647 11/20/2019
4.0.13 1,699 11/14/2019
4.0.12 1,750 10/30/2019
4.0.11 1,715 10/23/2019
4.0.10 1,582 10/21/2019
4.0.9 1,626 10/10/2019
4.0.7 1,646 10/8/2019
4.0.6 1,616 10/1/2019
4.0.5 1,656 9/27/2019
4.0.4 1,645 9/26/2019
4.0.3 1,706 9/25/2019
4.0.2 1,700 9/23/2019
4.0.1 1,733 9/21/2019
4.0.0 1,677 9/20/2019
4.0.0-beta1 1,486 9/17/2019
3.22.7 1,681 9/11/2019
3.22.6 1,589 9/10/2019
3.22.5 1,722 9/5/2019
3.22.4 1,789 8/30/2019
3.22.3 1,709 8/26/2019
3.22.2 1,652 8/24/2019
3.22.1 1,647 8/19/2019
3.22.0 1,719 8/17/2019
3.21.13 1,774 8/16/2019
3.21.12 1,656 8/15/2019
3.21.11 1,655 8/5/2019
3.21.10 1,769 7/31/2019
3.21.9 1,696 7/28/2019
3.21.8 1,750 7/24/2019
3.21.7 1,649 7/17/2019
3.21.6 1,714 7/16/2019
3.21.5 1,766 7/11/2019
3.21.4 1,698 7/9/2019
3.21.2 1,767 6/29/2019
3.21.1 1,647 6/28/2019
3.21.0 1,717 6/26/2019
3.20.8 1,760 7/24/2019
3.20.7 1,694 6/25/2019
3.20.6 1,753 6/20/2019
3.20.5 1,729 6/18/2019
3.20.4 1,730 6/18/2019
3.20.2 1,770 6/17/2019
3.20.1 1,774 6/14/2019
3.20.0 1,758 6/13/2019
3.19.0 1,809 6/4/2019
3.18.6 1,769 6/4/2019
3.18.5 1,717 5/30/2019
3.18.4 1,743 5/28/2019
3.18.3 1,745 5/14/2019
3.18.2 1,714 5/14/2019
3.18.1 1,627 5/9/2019
3.18.0 1,730 5/7/2019
3.17.8 1,698 4/30/2019
3.17.7 1,795 4/25/2019
3.17.6 1,744 4/18/2019
3.17.5 1,844 4/16/2019
3.17.4 1,722 4/11/2019
3.17.3 1,786 4/8/2019
3.17.1 1,862 3/30/2019
3.17.0 1,733 3/30/2019
3.16.45 1,743 3/27/2019
3.16.44 1,758 3/27/2019
3.16.43 1,834 3/23/2019
3.16.41 1,738 3/19/2019
3.16.40 1,734 3/15/2019
3.16.39 1,769 3/15/2019
3.16.38 1,697 3/15/2019
3.16.37 1,769 3/13/2019
3.16.36 1,730 3/12/2019
3.16.35 1,791 3/12/2019
3.16.34 1,772 3/12/2019
3.16.33 1,722 3/8/2019
3.16.32 1,697 3/8/2019
3.16.30 1,743 3/1/2019
3.16.29 1,728 2/28/2019
3.16.28 1,734 2/27/2019
3.16.27 1,774 2/25/2019
3.16.26 1,772 2/24/2019
3.16.25 1,793 2/21/2019
3.16.24 1,797 2/12/2019
3.16.23 1,850 1/30/2019
3.16.22 1,893 1/18/2019
3.16.21 1,920 1/15/2019
3.16.20 1,884 1/14/2019
3.16.19 1,862 1/8/2019
3.16.18 1,919 12/30/2018
3.16.17 1,900 12/20/2018
3.16.16 1,774 12/15/2018
3.16.15 1,949 12/7/2018
3.16.14 1,876 11/29/2018
3.16.13 1,925 11/28/2018
3.16.12 1,809 11/20/2018
3.16.11 1,970 11/9/2018
3.16.10 2,002 11/6/2018
3.16.8 1,905 10/28/2018
3.16.7 1,928 10/23/2018
3.16.6 1,933 10/23/2018
3.16.5 1,929 10/16/2018
3.16.4 1,940 10/15/2018
3.16.3 1,850 10/8/2018
3.16.2 1,854 9/29/2018
3.16.1 1,962 9/27/2018
3.16.0 2,000 9/13/2018
3.15.22 2,003 9/12/2018
3.15.21 1,980 9/11/2018
3.15.20 2,022 9/1/2018
3.15.19 1,925 8/30/2018
3.15.18 2,087 8/3/2018
3.15.17 2,088 8/2/2018
3.15.16 2,006 8/2/2018
3.15.14 2,032 7/31/2018
3.15.13 2,048 7/31/2018
3.15.12 2,056 7/25/2018
3.15.11 2,110 7/25/2018
3.15.10 2,049 7/25/2018
3.15.9 2,026 7/20/2018
3.15.8 2,196 7/19/2018
3.15.7 2,233 7/19/2018
3.15.6 2,307 7/16/2018
3.15.5 2,224 7/8/2018
3.15.4 2,104 6/29/2018
3.15.3 2,295 6/21/2018
3.15.0 2,201 6/12/2018
3.14.33 2,221 6/5/2018
3.14.32 2,344 6/1/2018
3.14.31 2,350 5/31/2018
3.14.30 2,379 5/30/2018
3.14.29 2,286 5/27/2018
3.14.28 2,274 5/25/2018
3.14.27 2,204 5/22/2018
3.14.26 2,369 5/9/2018
3.14.25 2,381 5/1/2018
3.14.24 2,030 4/23/2018
3.14.23 2,328 4/17/2018
3.14.22 2,344 4/16/2018
3.14.21 2,109 4/13/2018
3.14.20 2,284 4/11/2018
3.14.19 2,338 4/11/2018
3.14.18 2,420 4/7/2018
3.14.17 2,463 3/30/2018
3.14.16 2,234 3/29/2018
3.14.15 2,248 3/27/2018
3.14.14 2,259 3/27/2018
3.14.13 2,213 3/25/2018
3.14.12 2,193 3/5/2018
3.14.11 2,302 2/28/2018
3.14.10 2,279 2/27/2018
3.14.9 2,208 2/22/2018
3.14.8 2,345 2/14/2018
3.14.7 2,235 1/31/2018
1.0.0-beta1 1,979 1/17/2018