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.
#:package Z.EntityFramework.Extensions.EF4@3.16.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code 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.104.0 26 9/16/2025
9.103.9.3 458 8/12/2025
9.103.9.2 836 7/21/2025
9.103.9.1 511 6/23/2025
9.103.9 653 6/10/2025
9.103.8.1 531 5/6/2025
9.103.8 549 4/8/2025
9.103.7.2 557 3/10/2025
9.103.7.1 482 2/11/2025
9.103.7 437 1/14/2025
9.103.6.4 468 12/17/2024
9.103.6.3 474 11/26/2024
8.103.6.2 487 11/12/2024
8.103.6.1 485 11/6/2024
8.103.6 521 10/21/2024
8.103.5 516 10/8/2024
8.103.4 485 9/23/2024
8.103.3 510 8/27/2024
8.103.2 509 8/12/2024
8.103.1 492 7/22/2024
8.103.0 506 6/18/2024
8.102.3 495 6/3/2024
8.102.2.5 486 5/21/2024
8.102.2.4 513 4/30/2024
8.102.2.3 512 4/23/2024
8.102.2.2 514 4/16/2024
8.102.2.1 2,107 3/26/2024
8.102.2 617 3/12/2024
8.102.1.1 706 2/27/2024
8.102.1 834 2/13/2024
8.102.0 871 2/6/2024
8.101.2.1 890 1/23/2024
8.101.2 945 1/16/2024
8.101.1.3 1,107 12/19/2023
8.101.1.2 1,144 12/12/2023
8.101.1.1 1,237 12/5/2023
8.101.1 1,164 11/28/2023
8.101.0 1,140 11/15/2023
7.100.0.5 1,259 10/24/2023
7.100.0.4 1,231 10/17/2023
7.100.0.3 1,342 10/3/2023
7.100.0.2 1,264 9/26/2023
7.100.0.1 1,267 9/19/2023
7.100.0 1,327 9/12/2023
7.22.7 1,385 9/11/2023
7.22.6 1,457 8/15/2023
7.22.4 1,411 7/11/2023
7.22.3 1,480 6/12/2023
7.22.2 1,527 5/30/2023
7.22.0 1,543 5/16/2023
7.21.1 1,500 5/2/2023
7.21.0 1,563 4/17/2023
7.20.2 1,589 3/28/2023
7.20.0 1,554 3/20/2023
7.19.0 1,647 3/7/2023
7.18.5 1,640 2/21/2023
7.18.4 1,550 2/7/2023
7.18.3 1,664 1/24/2023
7.18.2 1,643 1/17/2023
7.18.1 1,647 12/20/2022
7.18.0 1,684 12/6/2022
7.17.2 1,697 12/5/2022
7.17.1 1,713 11/22/2022
7.17.0 1,679 11/15/2022
6.16.1 1,702 11/1/2022
6.16.0 1,787 10/25/2022
6.15.2 1,766 10/11/2022
6.15.1 1,757 9/26/2022
6.15.0 1,768 9/12/2022
6.14.4 1,777 8/16/2022
6.14.3 1,844 7/19/2022
6.14.2 1,849 6/22/2022
6.14.1 1,772 6/14/2022
6.14.0 1,845 6/7/2022
6.13.21 1,827 5/24/2022
6.13.20 1,817 5/17/2022
6.13.19 1,812 5/10/2022
6.13.18 1,821 4/26/2022
6.13.17 1,866 4/12/2022
6.13.15 1,846 3/15/2022
6.13.14 1,848 3/8/2022
6.13.13 1,898 3/1/2022
6.13.12 1,802 2/22/2022
6.13.10 1,875 2/14/2022
6.13.9 1,868 2/8/2022
6.13.8 1,817 2/1/2022
6.13.7 1,878 1/18/2022
6.13.6 1,644 1/11/2022
6.13.5 1,730 12/30/2021
6.13.4 1,759 12/14/2021
6.13.3 1,685 12/7/2021
6.13.2 8,972 11/24/2021
6.13.1 1,766 11/17/2021
6.13.0 1,824 11/9/2021
5.2.17 1,817 11/3/2021
5.2.16 1,849 10/27/2021
5.2.15 1,791 10/20/2021
5.2.14 1,757 10/13/2021
5.2.13 1,791 9/22/2021
5.2.12 1,770 9/15/2021
5.2.10 1,834 9/8/2021
5.2.9 1,797 9/1/2021
5.2.8 1,820 8/25/2021
5.2.7 1,765 8/17/2021
5.2.6 1,850 8/4/2021
5.2.5 1,767 7/28/2021
5.2.4 1,785 7/20/2021
5.2.3 1,775 7/13/2021
5.2.2 1,788 7/5/2021
5.2.0 1,751 6/30/2021
5.1.41 1,785 6/16/2021
5.1.40 1,743 6/14/2021
5.1.39 1,830 6/2/2021
5.1.38 1,855 5/31/2021
5.1.37 1,775 5/19/2021
5.1.36 1,817 5/12/2021
5.1.35 1,732 5/5/2021
5.1.34 1,799 5/3/2021
5.1.33 1,763 4/26/2021
5.1.32 1,742 4/26/2021
5.1.31 1,755 4/19/2021
5.1.30 1,765 4/7/2021
5.1.29 1,776 3/30/2021
5.1.28 1,779 3/26/2021
5.1.27 1,798 3/25/2021
5.1.26 1,761 3/24/2021
5.1.25 1,851 3/17/2021
5.1.24 1,885 3/15/2021
5.1.23 1,988 3/10/2021
5.1.22 1,934 3/2/2021
5.1.21 1,853 2/23/2021
5.1.20 1,909 2/19/2021
5.1.19 1,910 2/16/2021
5.1.18 1,893 2/11/2021
5.1.17 1,978 2/10/2021
5.1.16 1,944 2/2/2021
5.1.15 1,951 1/27/2021
5.1.14 1,977 1/19/2021
5.1.13 1,913 1/13/2021
5.1.12 1,999 1/10/2021
5.1.11 1,977 1/5/2021
5.1.10 1,942 12/30/2020
5.1.9 1,918 12/16/2020
5.1.8 1,917 12/14/2020
5.1.7 1,940 12/11/2020
5.1.6 1,983 12/8/2020
5.1.5 1,988 12/1/2020
5.1.4 1,965 11/27/2020
5.1.3 1,858 11/23/2020
5.1.2 1,967 11/19/2020
5.1.1 2,000 11/18/2020
5.1.0 1,997 11/11/2020
4.0.106 2,014 11/5/2020
4.0.105 2,082 10/30/2020
4.0.104 1,965 10/26/2020
4.0.103 2,003 10/21/2020
4.0.102 2,112 10/20/2020
4.0.101 1,952 10/15/2020
4.0.100 2,027 10/14/2020
4.0.99 1,983 10/13/2020
4.0.98 1,917 10/11/2020
4.0.97 2,025 10/7/2020
4.0.96 2,004 9/25/2020
4.0.95 1,978 9/21/2020
4.0.94 1,908 9/14/2020
4.0.93 1,996 9/10/2020
4.0.92 1,966 9/8/2020
4.0.91 1,981 8/31/2020
4.0.90 2,021 8/26/2020
4.0.89 1,980 8/11/2020
4.0.88 1,990 8/6/2020
4.0.87 1,981 8/3/2020
4.0.86 2,053 7/27/2020
4.0.85 1,987 7/23/2020
4.0.84 2,017 7/20/2020
4.0.82 2,024 7/14/2020
4.0.81 2,004 7/13/2020
4.0.80 2,055 7/12/2020
4.0.79 1,955 6/16/2020
4.0.78 2,109 6/13/2020
4.0.76 2,091 6/3/2020
4.0.75 2,054 5/22/2020
4.0.73 2,050 5/18/2020
4.0.72 1,972 5/14/2020
4.0.71 2,011 5/12/2020
4.0.70 2,033 5/11/2020
4.0.69 2,025 5/5/2020
4.0.68 2,098 4/29/2020
4.0.67 2,003 4/22/2020
4.0.66 1,999 4/22/2020
4.0.65 2,061 4/17/2020
4.0.64 2,024 4/15/2020
4.0.63 1,911 4/8/2020
4.0.62 2,094 4/7/2020
4.0.61 2,064 4/2/2020
4.0.60 2,048 4/1/2020
4.0.59 2,020 3/23/2020
4.0.58 2,019 3/23/2020
4.0.57 2,137 3/16/2020
4.0.56 2,074 3/10/2020
4.0.55 2,016 3/10/2020
4.0.54 2,477 3/3/2020
4.0.53 2,030 2/27/2020
4.0.52 2,005 2/25/2020
4.0.51 2,046 2/24/2020
4.0.50 2,068 2/19/2020
4.0.49 2,071 2/17/2020
4.0.48 2,049 2/17/2020
4.0.47 2,073 2/11/2020
4.0.46 2,104 2/8/2020
4.0.45 2,102 2/7/2020
4.0.44 2,078 2/6/2020
4.0.43 2,048 2/3/2020
4.0.42 2,095 1/31/2020
4.0.40 2,117 1/29/2020
4.0.39 2,053 1/28/2020
4.0.35 2,060 1/9/2020
4.0.34 2,134 12/29/2019
4.0.33 2,052 12/29/2019
4.0.30 2,054 12/16/2019
4.0.29 2,073 12/13/2019
4.0.28 2,041 12/13/2019
4.0.27 2,095 12/13/2019
4.0.24 2,088 12/4/2019
4.0.23 1,979 12/4/2019
4.0.22 2,025 12/4/2019
4.0.21 2,012 12/3/2019
4.0.20 1,988 11/21/2019
4.0.19 1,999 11/20/2019
4.0.18 2,027 11/20/2019
4.0.13 2,087 11/14/2019
4.0.12 2,140 10/30/2019
4.0.11 2,099 10/23/2019
4.0.10 1,971 10/21/2019
4.0.9 2,011 10/10/2019
4.0.7 2,030 10/8/2019
4.0.6 2,001 10/1/2019
4.0.5 2,041 9/27/2019
4.0.4 2,028 9/26/2019
4.0.3 2,095 9/25/2019
4.0.2 2,080 9/23/2019
4.0.1 2,118 9/21/2019
4.0.0 2,072 9/20/2019
4.0.0-beta1 1,525 9/17/2019
3.22.7 2,070 9/11/2019
3.22.6 1,978 9/10/2019
3.22.5 2,111 9/5/2019
3.22.4 2,171 8/30/2019
3.22.3 2,096 8/26/2019
3.22.2 2,039 8/24/2019
3.22.1 2,034 8/19/2019
3.22.0 2,104 8/17/2019
3.21.13 2,162 8/16/2019
3.21.12 2,043 8/15/2019
3.21.11 2,048 8/5/2019
3.21.10 2,155 7/31/2019
3.21.9 2,084 7/28/2019
3.21.8 2,134 7/24/2019
3.21.7 2,033 7/17/2019
3.21.6 2,105 7/16/2019
3.21.5 2,153 7/11/2019
3.21.4 2,087 7/9/2019
3.21.2 2,153 6/29/2019
3.21.1 2,035 6/28/2019
3.21.0 2,108 6/26/2019
3.20.8 2,144 7/24/2019
3.20.7 2,078 6/25/2019
3.20.6 2,141 6/20/2019
3.20.5 2,121 6/18/2019
3.20.4 2,117 6/18/2019
3.20.2 2,159 6/17/2019
3.20.1 2,160 6/14/2019
3.20.0 2,147 6/13/2019
3.19.0 2,193 6/4/2019
3.18.6 2,159 6/4/2019
3.18.5 2,104 5/30/2019
3.18.4 2,127 5/28/2019
3.18.3 2,132 5/14/2019
3.18.2 2,100 5/14/2019
3.18.1 2,014 5/9/2019
3.18.0 2,118 5/7/2019
3.17.8 2,083 4/30/2019
3.17.7 2,186 4/25/2019
3.17.6 2,134 4/18/2019
3.17.5 2,230 4/16/2019
3.17.4 2,109 4/11/2019
3.17.3 2,176 4/8/2019
3.17.1 2,246 3/30/2019
3.17.0 2,119 3/30/2019
3.16.45 2,130 3/27/2019
3.16.44 2,145 3/27/2019
3.16.43 2,222 3/23/2019
3.16.41 2,128 3/19/2019
3.16.40 2,118 3/15/2019
3.16.39 2,153 3/15/2019
3.16.38 2,088 3/15/2019
3.16.37 2,159 3/13/2019
3.16.36 2,119 3/12/2019
3.16.35 2,175 3/12/2019
3.16.34 2,158 3/12/2019
3.16.33 2,108 3/8/2019
3.16.32 2,088 3/8/2019
3.16.30 2,132 3/1/2019
3.16.29 2,116 2/28/2019
3.16.28 2,121 2/27/2019
3.16.27 2,159 2/25/2019
3.16.26 2,158 2/24/2019
3.16.25 2,177 2/21/2019
3.16.24 2,184 2/12/2019
3.16.23 2,241 1/30/2019
3.16.22 2,280 1/18/2019
3.16.21 2,308 1/15/2019
3.16.20 2,272 1/14/2019
3.16.19 2,250 1/8/2019
3.16.18 2,301 12/30/2018
3.16.17 2,284 12/20/2018
3.16.16 2,162 12/15/2018
3.16.15 2,338 12/7/2018
3.16.14 2,265 11/29/2018
3.16.13 2,323 11/28/2018
3.16.12 2,204 11/20/2018
3.16.11 2,365 11/9/2018
3.16.10 2,397 11/6/2018
3.16.8 2,292 10/28/2018
3.16.7 2,324 10/23/2018
3.16.6 2,324 10/23/2018
3.16.5 2,321 10/16/2018
3.16.4 2,334 10/15/2018
3.16.3 2,241 10/8/2018
3.16.2 2,246 9/29/2018
3.16.1 2,354 9/27/2018
3.16.0 2,392 9/13/2018
3.15.22 2,393 9/12/2018
3.15.21 2,376 9/11/2018
3.15.20 2,412 9/1/2018
3.15.19 2,323 8/30/2018
3.15.18 2,504 8/3/2018
3.15.17 2,509 8/2/2018
3.15.16 2,426 8/2/2018
3.15.14 2,447 7/31/2018
3.15.13 2,466 7/31/2018
3.15.12 2,473 7/25/2018
3.15.11 2,536 7/25/2018
3.15.10 2,467 7/25/2018
3.15.9 2,444 7/20/2018
3.15.8 2,644 7/19/2018
3.15.7 2,680 7/19/2018
3.15.6 2,753 7/16/2018
3.15.5 2,671 7/8/2018
3.15.4 2,518 6/29/2018
3.15.3 2,745 6/21/2018
3.15.0 2,650 6/12/2018
3.14.33 2,662 6/5/2018
3.14.32 2,788 6/1/2018
3.14.31 2,797 5/31/2018
3.14.30 2,827 5/30/2018
3.14.29 2,733 5/27/2018
3.14.28 2,726 5/25/2018
3.14.27 2,651 5/22/2018
3.14.26 2,817 5/9/2018
3.14.25 2,828 5/1/2018
3.14.24 2,447 4/23/2018
3.14.23 2,788 4/17/2018
3.14.22 2,793 4/16/2018
3.14.21 2,528 4/13/2018
3.14.20 2,735 4/11/2018
3.14.19 2,790 4/11/2018
3.14.18 2,870 4/7/2018
3.14.17 2,911 3/30/2018
3.14.16 2,688 3/29/2018
3.14.15 2,695 3/27/2018
3.14.14 2,708 3/27/2018
3.14.13 2,656 3/25/2018
3.14.12 2,643 3/5/2018
3.14.11 2,747 2/28/2018
3.14.10 2,730 2/27/2018
3.14.9 2,655 2/22/2018
3.14.8 2,796 2/14/2018
3.14.7 2,689 1/31/2018
1.0.0-beta1 2,070 1/17/2018