protected override void InsertEntities(List<Entity> entities) { using (var db = new DbConnection()) { db.BeginTransaction(); // Insert doesn't seem to update the Id on the entity, this "work around" is horible // but at least gives us parity with the other benchmarks! If there's a better // way... I can't find it :/ entities.ForEach(entity => { var id = db.InsertWithIdentity(entity); entity.Id = Convert.ToInt32(id); }); db.CommitTransaction(); } }