using System.Data.Entity;
using System.Collections.Generic;
public static void Main()
List<Customer> list = new List<Customer>() { new Customer() { Name ="Customer_A" }, new Customer() { Name ="Customer_B" }, new Customer() { Name ="Customer_C" }};
using (var context = new EntityContext())
context.BulkInsert(list);
FiddleHelper.WriteTable("Insert",list);
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; }