⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dsphoto.xsd

📁 这个是网上相册系统的一个架构设计说明
💻 XSD
字号:
<?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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -