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

📄 organization.xsd

📁 C#2.0宝典源码,C#经典书籍,很多例子
💻 XSD
字号:
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="Organization" targetNamespace="http://tempuri.org/Organization.xsd" elementFormDefault="qualified"
  attributeFormDefault="qualified" xmlns="http://tempuri.org/Organization.xsd" xmlns:mstns="http://tempuri.org/Organization.xsd"
  xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="Organization" msdata:IsDataSet="true">
    <xs:complexType>
      <xs:choice maxOccurs="unbounded">
        <xs:element name="colleges">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="college_ID" type="xs:string" />
              <xs:element name="college_name" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="speciality">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="speciality_ID" type="xs:string" />
              <xs:element name="speciality_name" type="xs:string" minOccurs="0" />
              <xs:element name="speciality_college" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="classes">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="class_ID" type="xs:string" />
              <xs:element name="class_name" type="xs:string" minOccurs="0" />
              <xs:element name="class_headTeacher" type="xs:string" minOccurs="0" />
              <xs:element name="class_speciality" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="OrganizationKey1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:colleges" />
      <xs:field xpath="mstns:college_ID" />
    </xs:unique>
    <xs:unique name="OrganizationKey2" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:speciality" />
      <xs:field xpath="mstns:speciality_ID" />
    </xs:unique>
    <xs:unique name="OrganizationKey3" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:classes" />
      <xs:field xpath="mstns:class_ID" />
    </xs:unique>
    <xs:keyref name="specialityclasses" refer="OrganizationKey4" msdata:ConstraintOnly="true">
      <xs:selector xpath=".//mstns:classes" />
      <xs:field xpath="mstns:class_speciality" />
    </xs:keyref>
    <xs:key name="OrganizationKey4">
      <xs:selector xpath=".//mstns:speciality" />
      <xs:field xpath="mstns:speciality_ID" />
    </xs:key>
    <xs:keyref name="collegesspeciality" refer="OrganizationKey1" msdata:ConstraintOnly="true">
      <xs:selector xpath=".//mstns:speciality" />
      <xs:field xpath="mstns:speciality_college" />
    </xs:keyref>
  </xs:element>
</xs:schema>

⌨️ 快捷键说明

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