dsphoto.xsd
来自「这个是网上相册系统的一个架构设计说明」· XSD 代码 · 共 46 行
XSD
46 行
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="DSPhoto" targetNamespace="http://tempuri.org/DSPhoto.xsd" elementFormDefault="qualified"
attributeFormDefault="qualified" xmlns="http://tempuri.org/DSPhoto.xsd" xmlns:mstns="http://tempuri.org/DSPhoto.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="DSPhoto" msdata:IsDataSet="true">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="Category">
<xs:complexType>
<xs:sequence>
<xs:element name="CategoryID" msdata:ReadOnly="true" msdata:AutoIncrement="true" type="xs:int" />
<xs:element name="CategoryName" type="xs:string" />
<xs:element name="Owner" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Photo">
<xs:complexType>
<xs:sequence>
<xs:element name="PhotoID" msdata:ReadOnly="true" msdata:AutoIncrement="true" type="xs:int" />
<xs:element name="PhotoName" type="xs:string" />
<xs:element name="Publisher" type="xs:int" />
<xs:element name="Description" type="xs:string" minOccurs="0" />
<xs:element name="CategoryID" type="xs:int" />
<xs:element name="Keyword1" type="xs:string" minOccurs="0" />
<xs:element name="Keyword2" type="xs:string" minOccurs="0" />
<xs:element name="Keyword3" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="DSPhotoKey1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Category" />
<xs:field xpath="mstns:CategoryID" />
</xs:unique>
<xs:unique name="DSPhotoKey2" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Photo" />
<xs:field xpath="mstns:PhotoID" />
</xs:unique>
<xs:keyref name="CategoryPhoto" refer="DSPhotoKey1">
<xs:selector xpath=".//mstns:Photo" />
<xs:field xpath="mstns:CategoryID" />
</xs:keyref>
</xs:element>
</xs:schema>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?