[英]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 . 我在iOS平台上使用azure移动服务并与服务同步(软删除已启用),当我使用其他设备删除某些记录时,对于服务数据库中的记录,_delete标志设置为true,但是当我与iOS设备同步时,删除那里的记录仍然存在。
I have seen other questions on SO, but they did not solve my problem. 我已经看到了关于SO的其他问题,但它们并没有解决我的问题。
Any help would be appreciated. 任何帮助,将不胜感激。
EDIT : I am using enableSoftDelete:true 编辑:我正在使用enableSoftDelete:true
DomainManager = new EntityDomainManager<TableName>(context, Request, Services, enableSoftDelete: true);
A new column _Deleted is setting to true after deleting from another device. 从另一个设备删除后,新列_Deleted设置为true。
To enable soft delete on the .NET backend, you need to pass a parameter to the EntityDomainManager in your controller InitializeMethod: 要在.NET后端启用软删除,您需要将参数传递给控制器InitializeMethod中的EntityDomainManager:
DomainManager = new EntityDomainManager<TodoItem>(context, Request, Services, enableSoftDelete: true);
For more information, see Using soft delete in Mobile Services . 有关更多信息,请参阅在移动服务中使用软删除 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.