Exemplo n.º 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;
    }
 partial void DeleteSimplest(Simplest instance);
 partial void UpdateSimplest(Simplest instance);
 partial void InsertSimplest(Simplest instance);
 partial void DeleteSimplest(Simplest instance);
 partial void UpdateSimplest(Simplest instance);
 partial void InsertSimplest(Simplest instance);