employeeds.xsd

来自「Beginning VB.NET DatabasesAll_Code.rar」· XSD 代码 · 共 41 行

XSD
41
字号
<?xml version="1.0" standalone="yes" ?>
<xs:schema id="EmployeeDS" targetNamespace="http://www.tempuri.org/EmployeeDS.xsd" xmlns:mstns="http://www.tempuri.org/EmployeeDS.xsd"
	xmlns="http://www.tempuri.org/EmployeeDS.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
	<xs:element name="EmployeeDS" msdata:IsDataSet="true">
		<xs:complexType>
			<xs:choice maxOccurs="unbounded">
				<xs:element name="employee">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="emp_id" type="xs:string" />
							<xs:element name="emp_name" msdata:ReadOnly="true" type="xs:string" minOccurs="0" />
							<xs:element name="job_id" type="xs:short" />
							<xs:element name="hire_date" type="xs:dateTime" />
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="jobs">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="job_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" type="xs:short" />
							<xs:element name="job_desc" type="xs:string" />
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:choice>
		</xs:complexType>
		<xs:unique name="Constraint1" msdata:PrimaryKey="true">
			<xs:selector xpath=".//mstns:employee" />
			<xs:field xpath="mstns:emp_id" />
		</xs:unique>
		<xs:unique name="jobs_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
			<xs:selector xpath=".//mstns:jobs" />
			<xs:field xpath="mstns:job_id" />
		</xs:unique>
		<xs:keyref name="EmployeeJob" refer="mstns:jobs_Constraint1">
			<xs:selector xpath=".//mstns:employee" />
			<xs:field xpath="mstns:job_id" />
		</xs:keyref>
	</xs:element>
</xs:schema>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?