06-DataSet
1. DataSet.Relations.Add()
1.1 父子/主外 父:Unique 子:ForeignKey
1.2 如果从数据库导入DataSet,DataSet中DataTable之间的关系如何映射?
1.3 Nested = true/false;
2. 序列化:XML和Binary
ds.RemotingFormat = SerializationFormat.Binary;
3. 强类型DataSet
3.1 XSD(Xml Schemal Definition)
3.1.1 简单类型: 基本类型 属性 枚举 element attribute type restriction enumeration value
3.1.2 用户自定义类型: 方面(facet)
3.1.3 复杂类型: 混合属性 元素组 属性组 simpleType/complexType all/choice/group/sequency
3.1.4 注释:<annotation> <documentation><appInfo> </annotation>
3.2 DataSet架构
3.2.1 表和列
3.2.2 约束
3.2.2.1 键
<xs:key name="">
<xs:selector xpath="..//Books"/> --键要应用到的数据表
<xs:field xpath="Title"/> --键要应用的字段
</xs:key>
3.2.2.2 唯一性约束
<xs:unique .../>
3.2.2.3 外键
<xs:keyref name="" refer="">
3.3 生成强类型的DataSet
3.4 注释 codegen msdata
1.1 父子/主外 父:Unique 子:ForeignKey
1.2 如果从数据库导入DataSet,DataSet中DataTable之间的关系如何映射?
1.3 Nested = true/false;
2. 序列化:XML和Binary
ds.RemotingFormat = SerializationFormat.Binary;
3. 强类型DataSet
3.1 XSD(Xml Schemal Definition)
3.1.1 简单类型: 基本类型 属性 枚举 element attribute type restriction enumeration value
3.1.2 用户自定义类型: 方面(facet)
3.1.3 复杂类型: 混合属性 元素组 属性组 simpleType/complexType all/choice/group/sequency
3.1.4 注释:<annotation> <documentation><appInfo> </annotation>
3.2 DataSet架构
3.2.1 表和列
3.2.2 约束
3.2.2.1 键
<xs:key name="">
<xs:selector xpath="..//Books"/> --键要应用到的数据表
<xs:field xpath="Title"/> --键要应用的字段
</xs:key>
3.2.2.2 唯一性约束
<xs:unique .../>
3.2.2.3 外键
<xs:keyref name="" refer="">
3.3 生成强类型的DataSet
3.4 注释 codegen msdata
点击链接加入群聊【一起帮·源栈·星光计划】:QQ群:222132940

浙公网安备 33010602011771号