using System.Data.Entity;
using System.Collections.Generic;
using System.Diagnostics;
public static void Main()
using (var context = new EntityContext())
List<Customer> list = new List<Customer>();
for(int i = 0; i < 2000; i++)
var customer = new Customer();
customer.Name ="Customer_" + i;
context.Customers.AddRange(list);
FiddleHelper.WriteTable(context.Customers.Take(5).ToList());
public class EntityContext : DbContext
public EntityContext() : base(FiddleHelper.GetConnectionStringSqlServer())
public DbSet<Customer> Customers { get; set; }
public int CustomerID { get; set; }
public string Name { get; set; }