public void Cancel() { this.CheckObjectIsNotDisposed(); if (!this.HasResource) { throw new InvalidOperationException("Not in an update"); } Api.JetPrepareUpdate(this.sesid, this.tableid, JET_prep.Cancel); this.ResourceWasReleased(); }
public void TestSaveThrowsExceptionWhenUpdateIsCancelled() { var update = new Update(this.sesid, this.tableid, JET_prep.Insert); update.Cancel(); update.Save(); }