Z.EntityFramework.Extensions.EF4 3.16.5

.NET Framework 4.0
There is a newer version of this package available.
See the version list below for details.
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.
dotnet add package Z.EntityFramework.Extensions.EF4 --version 3.16.5
<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.
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, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Z.EntityFramework.Extensions.EF4 as a Cake Addin
#addin nuget:?package=Z.EntityFramework.Extensions.EF4&version=3.16.5

// Install Z.EntityFramework.Extensions.EF4 as a Cake Tool
#tool nuget:?package=Z.EntityFramework.Extensions.EF4&version=3.16.5
// 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 Versions
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
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
6.15.1 42 9/26/2022
6.15.0 68 9/12/2022
6.14.4 86 8/16/2022
6.14.3 123 7/19/2022
6.14.2 114 6/22/2022
6.14.1 94 6/14/2022
6.14.0 115 6/7/2022
6.13.21 120 5/24/2022
6.13.20 106 5/17/2022
6.13.19 102 5/10/2022
6.13.18 120 4/26/2022
6.13.17 117 4/12/2022
6.13.15 122 3/15/2022
6.13.14 106 3/8/2022
6.13.13 109 3/1/2022
6.13.12 106 2/22/2022
6.13.10 106 2/14/2022
6.13.9 123 2/8/2022
6.13.8 128 2/1/2022
6.13.7 133 1/18/2022
6.13.6 130 1/11/2022
6.13.5 137 12/30/2021
6.13.4 191 12/14/2021
6.13.3 145 12/7/2021
6.13.2 7,153 11/24/2021
6.13.1 182 11/17/2021
6.13.0 252 11/9/2021
5.2.17 213 11/3/2021
5.2.16 225 10/27/2021
5.2.15 202 10/20/2021
5.2.14 179 10/13/2021
5.2.13 230 9/22/2021
5.2.12 243 9/15/2021
5.2.10 224 9/8/2021
5.2.9 190 9/1/2021
5.2.8 213 8/25/2021
5.2.7 225 8/17/2021
5.2.6 218 8/4/2021
5.2.5 230 7/28/2021
5.2.4 236 7/20/2021
5.2.3 244 7/13/2021
5.2.2 219 7/5/2021
5.2.0 262 6/30/2021
5.1.41 246 6/16/2021
5.1.40 219 6/14/2021
5.1.39 280 6/2/2021
5.1.38 289 5/31/2021
5.1.37 228 5/19/2021
5.1.36 217 5/12/2021
5.1.35 240 5/5/2021
5.1.34 217 5/3/2021
5.1.33 235 4/26/2021
5.1.32 226 4/26/2021
5.1.31 245 4/19/2021
5.1.30 215 4/7/2021
5.1.29 216 3/30/2021
5.1.28 230 3/26/2021
5.1.27 225 3/25/2021
5.1.26 250 3/24/2021
5.1.25 253 3/17/2021
5.1.24 243 3/15/2021
5.1.23 294 3/10/2021
5.1.22 212 3/2/2021
5.1.21 244 2/23/2021
5.1.20 235 2/19/2021
5.1.19 264 2/16/2021
5.1.18 230 2/11/2021
5.1.17 265 2/10/2021
5.1.16 256 2/2/2021
5.1.15 265 1/27/2021
5.1.14 268 1/19/2021
5.1.13 230 1/13/2021
5.1.12 326 1/10/2021
5.1.11 302 1/5/2021
5.1.10 263 12/30/2020
5.1.9 295 12/16/2020
5.1.8 275 12/14/2020
5.1.7 323 12/11/2020
5.1.6 323 12/8/2020
5.1.5 307 12/1/2020
5.1.4 322 11/27/2020
5.1.3 288 11/23/2020
5.1.2 286 11/19/2020
5.1.1 376 11/18/2020
5.1.0 335 11/11/2020
4.0.106 335 11/5/2020
4.0.105 377 10/30/2020
4.0.104 318 10/26/2020
4.0.103 341 10/21/2020
4.0.102 383 10/20/2020
4.0.101 332 10/15/2020
4.0.100 377 10/14/2020
4.0.99 384 10/13/2020
4.0.98 280 10/11/2020
4.0.97 327 10/7/2020
4.0.96 336 9/25/2020
4.0.95 327 9/21/2020
4.0.94 300 9/14/2020
4.0.93 312 9/10/2020
4.0.92 365 9/8/2020
4.0.91 368 8/31/2020
4.0.90 408 8/26/2020
4.0.89 318 8/11/2020
4.0.88 319 8/6/2020
4.0.87 383 8/3/2020
4.0.86 398 7/27/2020
4.0.85 359 7/23/2020
4.0.84 344 7/20/2020
4.0.82 336 7/14/2020
4.0.81 312 7/13/2020
4.0.80 428 7/12/2020
4.0.79 388 6/16/2020
4.0.78 451 6/13/2020
4.0.76 423 6/3/2020
4.0.75 395 5/22/2020
4.0.73 395 5/18/2020
4.0.72 349 5/14/2020
4.0.71 352 5/12/2020
4.0.70 355 5/11/2020
4.0.69 343 5/5/2020
4.0.68 366 4/29/2020
4.0.67 350 4/22/2020
4.0.66 359 4/22/2020
4.0.65 416 4/17/2020
4.0.64 355 4/15/2020
4.0.63 362 4/8/2020
4.0.62 380 4/7/2020
4.0.61 376 4/2/2020
4.0.60 387 4/1/2020
4.0.59 365 3/23/2020
4.0.58 369 3/23/2020
4.0.57 407 3/16/2020
4.0.56 396 3/10/2020
4.0.55 375 3/10/2020
4.0.54 610 3/3/2020
4.0.53 413 2/27/2020
4.0.52 352 2/25/2020
4.0.51 382 2/24/2020
4.0.50 389 2/19/2020
4.0.49 366 2/17/2020
4.0.48 352 2/17/2020
4.0.47 422 2/11/2020
4.0.46 422 2/8/2020
4.0.45 454 2/7/2020
4.0.44 400 2/6/2020
4.0.43 351 2/3/2020
4.0.42 382 1/31/2020
4.0.40 417 1/29/2020
4.0.39 412 1/28/2020
4.0.35 420 1/9/2020
4.0.34 466 12/29/2019
4.0.33 450 12/29/2019
4.0.30 421 12/16/2019
4.0.29 376 12/13/2019
4.0.28 386 12/13/2019
4.0.27 407 12/13/2019
4.0.24 406 12/4/2019
4.0.23 383 12/4/2019
4.0.22 387 12/4/2019
4.0.21 378 12/3/2019
4.0.20 382 11/21/2019
4.0.19 383 11/20/2019
4.0.18 382 11/20/2019
4.0.13 381 11/14/2019
4.0.12 426 10/30/2019
4.0.11 401 10/23/2019
4.0.10 374 10/21/2019
4.0.9 394 10/10/2019
4.0.7 397 10/8/2019
4.0.6 395 10/1/2019
4.0.5 394 9/27/2019
4.0.4 399 9/26/2019
4.0.3 427 9/25/2019
4.0.2 404 9/23/2019
4.0.1 407 9/21/2019
4.0.0 409 9/20/2019
4.0.0-beta1 322 9/17/2019
3.22.7 414 9/11/2019
3.22.6 406 9/10/2019
3.22.5 420 9/5/2019
3.22.4 445 8/30/2019
3.22.3 446 8/26/2019
3.22.2 434 8/24/2019
3.22.1 405 8/19/2019
3.22.0 404 8/17/2019
3.21.13 442 8/16/2019
3.21.12 443 8/15/2019
3.21.11 438 8/5/2019
3.21.10 444 7/31/2019
3.21.9 440 7/28/2019
3.21.8 448 7/24/2019
3.21.7 420 7/17/2019
3.21.6 428 7/16/2019
3.21.5 469 7/11/2019
3.21.4 439 7/9/2019
3.21.2 437 6/29/2019
3.21.1 434 6/28/2019
3.21.0 443 6/26/2019
3.20.8 442 7/24/2019
3.20.7 448 6/25/2019
3.20.6 439 6/20/2019
3.20.5 476 6/18/2019
3.20.4 457 6/18/2019
3.20.2 483 6/17/2019
3.20.1 471 6/14/2019
3.20.0 463 6/13/2019
3.19.0 474 6/4/2019
3.18.6 465 6/4/2019
3.18.5 441 5/30/2019
3.18.4 447 5/28/2019
3.18.3 471 5/14/2019
3.18.2 465 5/14/2019
3.18.1 452 5/9/2019
3.18.0 460 5/7/2019
3.17.8 468 4/30/2019
3.17.7 462 4/25/2019
3.17.6 486 4/18/2019
3.17.5 496 4/16/2019
3.17.4 491 4/11/2019
3.17.3 482 4/8/2019
3.17.1 530 3/30/2019
3.17.0 475 3/30/2019
3.16.45 477 3/27/2019
3.16.44 496 3/27/2019
3.16.43 511 3/23/2019
3.16.41 496 3/19/2019
3.16.40 498 3/15/2019
3.16.39 506 3/15/2019
3.16.38 470 3/15/2019
3.16.37 469 3/13/2019
3.16.36 472 3/12/2019
3.16.35 508 3/12/2019
3.16.34 490 3/12/2019
3.16.33 500 3/8/2019
3.16.32 486 3/8/2019
3.16.30 490 3/1/2019
3.16.29 485 2/28/2019
3.16.28 475 2/27/2019
3.16.27 474 2/25/2019
3.16.26 495 2/24/2019
3.16.25 494 2/21/2019
3.16.24 570 2/12/2019
3.16.23 570 1/30/2019
3.16.22 616 1/18/2019
3.16.21 605 1/15/2019
3.16.20 646 1/14/2019
3.16.19 610 1/8/2019
3.16.18 599 12/30/2018
3.16.17 604 12/20/2018
3.16.16 576 12/15/2018
3.16.15 643 12/7/2018
3.16.14 602 11/29/2018
3.16.13 632 11/28/2018
3.16.12 589 11/20/2018
3.16.11 669 11/9/2018
3.16.10 602 11/6/2018
3.16.8 628 10/28/2018
3.16.7 602 10/23/2018
3.16.6 607 10/23/2018
3.16.5 635 10/16/2018
3.16.4 636 10/15/2018
3.16.3 621 10/8/2018
3.16.2 596 9/29/2018
3.16.1 622 9/27/2018
3.16.0 675 9/13/2018
3.15.22 663 9/12/2018
3.15.21 639 9/11/2018
3.15.20 683 9/1/2018
3.15.19 655 8/30/2018
3.15.18 718 8/3/2018
3.15.17 710 8/2/2018
3.15.16 701 8/2/2018
3.15.14 685 7/31/2018
3.15.13 697 7/31/2018
3.15.12 682 7/25/2018
3.15.11 712 7/25/2018
3.15.10 719 7/25/2018
3.15.9 698 7/20/2018
3.15.8 786 7/19/2018
3.15.7 762 7/19/2018
3.15.6 837 7/16/2018
3.15.5 777 7/8/2018
3.15.4 788 6/29/2018
3.15.3 811 6/21/2018
3.15.0 794 6/12/2018
3.14.33 783 6/5/2018
3.14.32 871 6/1/2018
3.14.31 853 5/31/2018
3.14.30 861 5/30/2018
3.14.29 859 5/27/2018
3.14.28 846 5/25/2018
3.14.27 799 5/22/2018
3.14.26 837 5/9/2018
3.14.25 916 5/1/2018
3.14.24 732 4/23/2018
3.14.23 887 4/17/2018
3.14.22 844 4/16/2018
3.14.21 817 4/13/2018
3.14.20 833 4/11/2018
3.14.19 901 4/11/2018
3.14.18 979 4/7/2018
3.14.17 931 3/30/2018
3.14.16 820 3/29/2018
3.14.15 813 3/27/2018
3.14.14 826 3/27/2018
3.14.13 787 3/25/2018
3.14.12 838 3/5/2018
3.14.11 843 2/28/2018
3.14.10 820 2/27/2018
3.14.9 838 2/22/2018
3.14.8 848 2/14/2018
3.14.7 834 1/31/2018
1.0.0-beta1 714 1/17/2018