Why is there a string ID in the data model of Azure Mobile Apps?

做~自己de王妃 提交于 2019-12-04 02:06:46

The EntityData abstract class contains the additional fields - there are five fields for Mobile offline sync

  • Id (a string - normally a GUID - must be globally unique)
  • UpdatedAt (DateTimeOffset - maintained automatically via a database trigger - used for incremental sync)
  • CreateAt (DateTimeOffset - used as the key into the database partition to optimize reading, but unused otherwise)
  • Version (a byte[] - timestamp - used for optimistic concurrency / conflict resolution)
  • Deleted (a Boolean - used to update other clients when a record is deleted - known as soft delete).

Your client needs all these fields in its client model except for Deleted (which isn't transferred unless requested and is dealt with automatically via the Mobile Apps SDK for clearing the offline sync of deleted records).

You haven't said what languages are in use on backend or frontend. However, logging is available in both cases - you just have to turn it on, capture the exceptions, etc. Some references for you:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!