Chinaunix首页 | 论坛 | 博客
  • 博客访问: 251812
  • 博文数量: 47
  • 博客积分: 7052
  • 博客等级: 少将
  • 技术积分: 1155
  • 用 户 组: 普通用户
  • 注册时间: 2005-02-19 23:32
文章分类

全部博文(47)

文章存档

2011年(2)

2010年(10)

2009年(21)

2008年(14)

我的朋友

分类:

2009-07-09 13:32:29

在Sync Service开发中,引入了entity,relationship的概念,说明其设计者是按照实体-关系型数据库的思路去设计schema的。
 
今天进一步研究,果然发现了其中还包含了主键的概念,即Identiy Properties
 

The value of the IdentityProperties key is an array containing the names of the properties that are used to identify a record of this entity type if there is a conflict.

每一个实体,都需要有个主键去标识它,该主键可以是单一的,也可以是复合的。

 

 

阅读(626) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~