예제 #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;
    }
예제 #2
0
 partial void DeleteSimplest(Simplest instance);
예제 #3
0
 partial void UpdateSimplest(Simplest instance);
예제 #4
0
 partial void InsertSimplest(Simplest instance);
 partial void DeleteSimplest(Simplest instance);
 partial void UpdateSimplest(Simplest instance);
 partial void InsertSimplest(Simplest instance);