Exemple #1
0
 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;
 }