Skip to Content
Former Member
Jun 27, 2014 at 04:52 AM

Pending operations not deleting cancel pending objects


I've spent the last few hours trying to figure out why any item I delete is being Synchronized with the SUP Cache.

It seems the only way to delete an instance of an MBO you create is to call CancelPending().

I've read the Documentation and it says to call Delete(), but delete doesn't get generated with any implementation.

The Delete function is generated like so:

  public void Delete() { throw new Sybase.Persistence.NoSuchOperationException(); } 

So when I call CancelPending() on the MBO instance I want to delete, it removes it locally, but when the device Synchronizes it sends all pending objects, including deleted ones, to the Sybase Server.

It appears as though when it performs the Synchronization it is rolling back the deletions sending them to the server then committing the changes on the device.