public void PutRecordCase1(RecnoDatabase db, Transaction txn) { for (int i = 1; i <= 1000; i++) { if (txn == null) { db.Put(new DatabaseEntry( BitConverter.GetBytes(i)), new DatabaseEntry(BitConverter.GetBytes(i))); } else { db.Put(new DatabaseEntry( BitConverter.GetBytes(i)), new DatabaseEntry( BitConverter.GetBytes(i)), txn); } } }