I'm just getting started with Azure Mobile Services, and I'm not sure I understand how soft delete works.
I'm working on Windows console executable that is responsible for populating an Azure mobile database that is synced against an iOS app using Mobile Services sync. It's connecting to the database using Entity Framework.
I've inserted records, and update records, and have them show up on the mobile without a problem. But when I delete the records, they're gone.
I'd have expected the tables to have a trigger in place that would have set the __deleted flag, so that deleting the record would be removed from the iOS app. But that's not happening.
So, how should I delete a record?
Is doing a normal delete the correct procedure, and I need to figure out why the trigger isn't running?
Or should I set the __deleted flag, myself?
Or is there something else entirely, I should be doing?
========= Additional Comments =========
If I understand this, if I set the __delete flag on a record in the azure database, the sync process will delete the matching record in the local database on the mobile.
Will it delete the record after the sync is done?
Or is there some way for me to know that the sync has been done, and it's safe to delete the record?
Or should I just let the delete records accumulate?