public static void InsertRangeTest() { List <TestEntity> models = new List <TestEntity>(); for (int i = 0; i < 10000; i++) { models.Add(new TestEntity() { Id = i + 1000, F_Byte = 1, F_Int16 = 1, F_Int32 = i, F_Int64 = i, F_Double = double.MaxValue, F_Float = long.MaxValue, F_Decimal = i, F_Bool = true, F_DateTime = DateTime.Now, F_String = "lu" + i.ToString() }); } SW.Do(() => { context.InsertRange(models, false); }); object result = null; Console.WriteLine(1); Console.ReadKey(); }