简体   繁体   中英

Issue in Sync with soft delete enabled in native iOS (Azure Mobile services)

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM