简体   繁体   English

在本机iOS(Azure移动服务)中启用与软删除同步的问题

[英]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.

相关问题 使用Mobile Services Azure iOS进行查询 - Queries with Mobile Services Azure iOS 如何在脱机同步中处理核心数据关系 - Azure移动服务iOS - How to Deal with Core Data Relationships in Offline sync - Azure Mobile Services iOS Azure,AWS,同步服务,数据库和iOS - Azure, AWS, sync services, databases and iOS 将Azure移动服务数据导入UITableView IOS - Azure Mobile Services data into UITableView IOS 自定义API移动服务Azure IOS - Custom API Mobile Services Azure IOS 尝试与Azure移动服务同步时,IMobileServiceClient.PullAsync死锁 - IMobileServiceClient.PullAsync deadlock when trying to sync with Azure Mobile Services 通过iOS版Facebook SDK的Azure移动服务上的每日一次身份验证问题(500错误) - Once-per-day authentication issue (500 error) on Azure Mobile Services via Facebook SDK for iOS Azure 媒体服务 - iOS 上的字幕 - 本机而非 AMP - Azure Media Services - Captions on iOS - Native not AMP 检查始终在 React Native 中启用或未启用位置服务(iOS 和 Android 两者) - Check always location services are enabled or not in React Native (iOS and Android both) 即使已登录,Azure移动服务iOS框架仍显示登录信息 - Azure Mobile Services iOS framework shows login even if logged in
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM