Example #1
0
    protected override void InsertMultipleTest(int count)
    {
      using (_db.Transaction = _db.Connection.BeginTransaction()) {
        for (var i = 0; i < count; i++) {
          var s = new Simplest {Id = i, Value = i};
          _db.Simplests.InsertOnSubmit(s);
        }

        _db.SubmitChanges();
        _db.Transaction.Commit();
      }

      InstanceCount = count;
    }
Example #2
0
 partial void DeleteSimplest(Simplest instance);
Example #3
0
 partial void UpdateSimplest(Simplest instance);
Example #4
0
 partial void InsertSimplest(Simplest instance);
 partial void DeleteSimplest(Simplest instance);
 partial void UpdateSimplest(Simplest instance);
 partial void InsertSimplest(Simplest instance);