protected override void InsertMultipleTest(int count) { using (var ts = new TransactionScope()) { for (int i = 0; i < count; i++) { var s = new Simplest {Id = i, Value = i}; context.Add(s); } context.SaveChanges(); ts.Complete(); } InstanceCount = count; }
protected override void InsertSingleTest(int count) { for (int i = 0; i < count; i++) { var s = new Simplest {Id = i, Value = i}; context.Add(s); context.SaveChanges(); } InstanceCount = count; }