简体   繁体   English

Azure Offline Sync是否处理关系表?

[英]Does Azure Offline Sync deals with relational tables?

I have made two table one is User and the other one is Todoitems . 我做了两个表,一个是User ,另一个是Todoitems Todoitems are created against a specific user id but when i try to fetch them using linq query in RefreshItemsFromTableAsync() function, it compiles successfully but gives error on the emulator saying "The member userid is not supported in 'Where' Mobile Services Query expression item.User.Userid " Following is my Linq query Todoitems是针对特定的用户ID创建的,但是当我尝试在RefreshItemsFromTableAsync()函数中使用linq查询来获取它们时,它会成功编译,但在模拟器上显示错误消息: “'Where'移动服务查询表达式项中不支持成员userid。 .User.Userid以下是我的Linq查询

var list = await toDoTable.Where(item => item.User.UserId ==1).ToListAsync();

I also have read on a blog that Offline Sync does not allow core data relationships? 我还读过博客,离线同步不允许核心数据关系? Any help! 任何帮助!

Offline Sync does not natively support relationships. 脱机同步本身不支持关系。 At all. 完全没有 In any form. 任何形式。

For more information on relationships, see my blog post on the subject: https://shellmonger.com/2016/05/27/30-days-of-zumo-v2-azure-mobile-apps-day-26-relationship-advice/ 有关关系的更多信息,请参阅我关于此主题的博客文章: https : //shellmonger.com/2016/05/27/30-days-of-zumo-v2-azure-mobile-apps-day-26-relationship-咨询/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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