Reputation: 288
I am using azure mobile services on iOS platform and syncing with service ( soft delete enabled), when I delete some records using another device, _delete flag is set to true for that records in service database, but when I sync with iOS device, deleted records are still present there .
I have seen other questions on SO, but they did not solve my problem.
Any help would be appreciated.
EDIT : I am using enableSoftDelete:true
DomainManager = new EntityDomainManager<TableName>(context, Request, Services, enableSoftDelete: true);
A new column _Deleted is setting to true after deleting from another device.
Upvotes: 3
Views: 249
Reputation: 3875
To enable soft delete on the .NET backend, you need to pass a parameter to the EntityDomainManager in your controller InitializeMethod:
DomainManager = new EntityDomainManager<TodoItem>(context, Request, Services, enableSoftDelete: true);
For more information, see Using soft delete in Mobile Services.
Upvotes: 1