metadata.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?xml version="1.0" encoding="utf-8" standalone="yes"?>
  2. <edmx:Edmx Version="1.0"
  3. xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
  4. <edmx:DataServices
  5. xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" m:DataServiceVersion="1.0">
  6. <Schema Namespace="NorthwindModel"
  7. xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
  8. xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
  9. <EntityType Name="Customer">
  10. <Key>
  11. <PropertyRef Name="CustomerID"/>
  12. </Key>
  13. <Property Name="CustomerID" Type="Edm.String" Nullable="false" MaxLength="5" Unicode="true"
  14. FixedLength="true"/>
  15. <Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true"
  16. FixedLength="false"/>
  17. </EntityType>
  18. <EntityType Name="Employee">
  19. <Key>
  20. <PropertyRef Name="EmployeeID"/>
  21. </Key>
  22. <Property Name="EmployeeID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity"
  23. xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation"/>
  24. <Property Name="LastName" Type="Edm.String" Nullable="false" MaxLength="20" Unicode="true"
  25. FixedLength="false"/>
  26. <Property Name="FirstName" Type="Edm.String" Nullable="false" MaxLength="10" Unicode="true"
  27. FixedLength="false"/>
  28. <Property Name="Title" Type="Edm.String" Nullable="true" MaxLength="30" Unicode="true"
  29. FixedLength="false"/>
  30. <Property Name="HomePhone" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true"
  31. FixedLength="false"/>
  32. <Property Name="Photo" Type="Edm.Binary" Nullable="true" MaxLength="Max" FixedLength="false"/>
  33. </EntityType>
  34. <EntityType Name="Order_Detail">
  35. <Key>
  36. <PropertyRef Name="OrderID"/>
  37. <PropertyRef Name="ProductID"/>
  38. </Key>
  39. <Property Name="OrderID" Type="Edm.Int32" Nullable="false"/>
  40. <Property Name="ProductID" Type="Edm.Int32" Nullable="false"/>
  41. <Property Name="UnitPrice" Type="Edm.Decimal" Nullable="false" Precision="19" Scale="4"/>
  42. <Property Name="Quantity" Type="Edm.Int16" Nullable="false"/>
  43. <Property Name="Discount" Type="Edm.Single" Nullable="false"/>
  44. <NavigationProperty Name="Order" Relationship="NorthwindModel.FK_Order_Details_Orders"
  45. FromRole="Order_Details" ToRole="Orders"/>
  46. <NavigationProperty Name="Product" Relationship="NorthwindModel.FK_Order_Details_Products"
  47. FromRole="Order_Details" ToRole="Products"/>
  48. </EntityType>
  49. <EntityType Name="Order">
  50. <Key>
  51. <PropertyRef Name="OrderID"/>
  52. </Key>
  53. <Property Name="OrderID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity"
  54. xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation"/>
  55. <Property Name="CustomerID" Type="Edm.String" Nullable="true" MaxLength="5" Unicode="true"
  56. FixedLength="true"/>
  57. <Property Name="CustomerName" Type="Edm.String" Nullable="true" MaxLength="40" Unicode="true"
  58. FixedLength="false"/>
  59. <Property Name="EmployeeID" Type="Edm.Int32" Nullable="true"/>
  60. <Property Name="OrderDate" Type="Edm.DateTime" Nullable="true"/>
  61. <Property Name="RequiredDate" Type="Edm.DateTime" Nullable="true"/>
  62. <Property Name="ShippedDate" Type="Edm.DateTime" Nullable="true"/>
  63. <Property Name="ShipVia" Type="Edm.Int32" Nullable="true"/>
  64. <Property Name="Freight" Type="Edm.Decimal" Nullable="true" Precision="19" Scale="4"/>
  65. <Property Name="ShipName" Type="Edm.String" Nullable="true" MaxLength="40" Unicode="true"
  66. FixedLength="false"/>
  67. <Property Name="ShipAddress" Type="Edm.String" Nullable="true" MaxLength="60" Unicode="true"
  68. FixedLength="false"/>
  69. <Property Name="ShipCity" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true"
  70. FixedLength="false"/>
  71. <Property Name="ShipRegion" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true"
  72. FixedLength="false"/>
  73. <Property Name="ShipPostalCode" Type="Edm.String" Nullable="true" MaxLength="10" Unicode="true"
  74. FixedLength="false"/>
  75. <Property Name="ShipCountry" Type="Edm.String" Nullable="true" MaxLength="15" Unicode="true"
  76. FixedLength="false"/>
  77. <NavigationProperty Name="Customer" Relationship="NorthwindModel.FK_Orders_Customers" FromRole="Orders"
  78. ToRole="Customers"/>
  79. <NavigationProperty Name="Employee" Relationship="NorthwindModel.FK_Orders_Employees" FromRole="Orders"
  80. ToRole="Employees"/>
  81. <NavigationProperty Name="Order_Details" Relationship="NorthwindModel.FK_Order_Details_Orders"
  82. FromRole="Orders" ToRole="Order_Details"/>
  83. <NavigationProperty Name="Shipper" Relationship="NorthwindModel.FK_Orders_Shippers" FromRole="Orders"
  84. ToRole="Shippers"/>
  85. </EntityType>
  86. <EntityType Name="Product">
  87. <Key>
  88. <PropertyRef Name="ProductID"/>
  89. </Key>
  90. <Property Name="ProductID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity"
  91. xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation"/>
  92. <Property Name="ProductName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true"
  93. FixedLength="false"/>
  94. </EntityType>
  95. <EntityType Name="Shipper">
  96. <Key>
  97. <PropertyRef Name="ShipperID"/>
  98. </Key>
  99. <Property Name="ShipperID" Type="Edm.Int32" Nullable="false" p8:StoreGeneratedPattern="Identity"
  100. xmlns:p8="http://schemas.microsoft.com/ado/2009/02/edm/annotation"/>
  101. <Property Name="CompanyName" Type="Edm.String" Nullable="false" MaxLength="40" Unicode="true"
  102. FixedLength="false"/>
  103. <Property Name="Phone" Type="Edm.String" Nullable="true" MaxLength="24" Unicode="true"
  104. FixedLength="false"/>
  105. <NavigationProperty Name="Orders" Relationship="NorthwindModel.FK_Orders_Shippers" FromRole="Shippers"
  106. ToRole="Orders"/>
  107. </EntityType>
  108. <Association Name="FK_Orders_Customers">
  109. <End Role="Customers" Type="NorthwindModel.Customer" Multiplicity="0..1"/>
  110. <End Role="Orders" Type="NorthwindModel.Order" Multiplicity="*"/>
  111. <ReferentialConstraint>
  112. <Principal Role="Customers">
  113. <PropertyRef Name="CustomerID"/>
  114. </Principal>
  115. <Dependent Role="Orders">
  116. <PropertyRef Name="CustomerID"/>
  117. </Dependent>
  118. </ReferentialConstraint>
  119. </Association>
  120. <Association Name="FK_Employees_Employees">
  121. <End Role="Employees" Type="NorthwindModel.Employee" Multiplicity="0..1"/>
  122. <End Role="Employees1" Type="NorthwindModel.Employee" Multiplicity="*"/>
  123. <ReferentialConstraint>
  124. <Principal Role="Employees">
  125. <PropertyRef Name="EmployeeID"/>
  126. </Principal>
  127. <Dependent Role="Employees1">
  128. <PropertyRef Name="ReportsTo"/>
  129. </Dependent>
  130. </ReferentialConstraint>
  131. </Association>
  132. <Association Name="FK_Orders_Employees">
  133. <End Role="Employees" Type="NorthwindModel.Employee" Multiplicity="0..1"/>
  134. <End Role="Orders" Type="NorthwindModel.Order" Multiplicity="*"/>
  135. <ReferentialConstraint>
  136. <Principal Role="Employees">
  137. <PropertyRef Name="EmployeeID"/>
  138. </Principal>
  139. <Dependent Role="Orders">
  140. <PropertyRef Name="EmployeeID"/>
  141. </Dependent>
  142. </ReferentialConstraint>
  143. </Association>
  144. <Association Name="FK_Order_Details_Orders">
  145. <End Role="Orders" Type="NorthwindModel.Order" Multiplicity="1"/>
  146. <End Role="Order_Details" Type="NorthwindModel.Order_Detail" Multiplicity="*"/>
  147. <ReferentialConstraint>
  148. <Principal Role="Orders">
  149. <PropertyRef Name="OrderID"/>
  150. </Principal>
  151. <Dependent Role="Order_Details">
  152. <PropertyRef Name="OrderID"/>
  153. </Dependent>
  154. </ReferentialConstraint>
  155. </Association>
  156. <Association Name="FK_Order_Details_Products">
  157. <End Role="Products" Type="NorthwindModel.Product" Multiplicity="1"/>
  158. <End Role="Order_Details" Type="NorthwindModel.Order_Detail" Multiplicity="*"/>
  159. <ReferentialConstraint>
  160. <Principal Role="Products">
  161. <PropertyRef Name="ProductID"/>
  162. </Principal>
  163. <Dependent Role="Order_Details">
  164. <PropertyRef Name="ProductID"/>
  165. </Dependent>
  166. </ReferentialConstraint>
  167. </Association>
  168. <Association Name="FK_Orders_Shippers">
  169. <End Role="Shippers" Type="NorthwindModel.Shipper" Multiplicity="0..1"/>
  170. <End Role="Orders" Type="NorthwindModel.Order" Multiplicity="*"/>
  171. <ReferentialConstraint>
  172. <Principal Role="Shippers">
  173. <PropertyRef Name="ShipperID"/>
  174. </Principal>
  175. <Dependent Role="Orders">
  176. <PropertyRef Name="ShipVia"/>
  177. </Dependent>
  178. </ReferentialConstraint>
  179. </Association>
  180. </Schema>
  181. <Schema Namespace="ODataWeb.Northwind.Model"
  182. xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
  183. xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
  184. xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
  185. <EntityContainer Name="NorthwindEntities" p7:LazyLoadingEnabled="true" m:IsDefaultEntityContainer="true"
  186. xmlns:p7="http://schemas.microsoft.com/ado/2009/02/edm/annotation">
  187. <EntitySet Name="Customers" EntityType="NorthwindModel.Customer"/>
  188. <EntitySet Name="Employees" EntityType="NorthwindModel.Employee"/>
  189. <EntitySet Name="Order_Details" EntityType="NorthwindModel.Order_Detail"/>
  190. <EntitySet Name="Orders" EntityType="NorthwindModel.Order"/>
  191. <EntitySet Name="Products" EntityType="NorthwindModel.Product"/>
  192. <AssociationSet Name="FK_Products_Categories" Association="NorthwindModel.FK_Products_Categories">
  193. <End Role="Categories" EntitySet="Categories"/>
  194. <End Role="Products" EntitySet="Products"/>
  195. </AssociationSet>
  196. <AssociationSet Name="FK_Orders_Customers" Association="NorthwindModel.FK_Orders_Customers">
  197. <End Role="Customers" EntitySet="Customers"/>
  198. <End Role="Orders" EntitySet="Orders"/>
  199. </AssociationSet>
  200. <AssociationSet Name="FK_Employees_Employees" Association="NorthwindModel.FK_Employees_Employees">
  201. <End Role="Employees" EntitySet="Employees"/>
  202. <End Role="Employees1" EntitySet="Employees"/>
  203. </AssociationSet>
  204. <AssociationSet Name="FK_Orders_Employees" Association="NorthwindModel.FK_Orders_Employees">
  205. <End Role="Employees" EntitySet="Employees"/>
  206. <End Role="Orders" EntitySet="Orders"/>
  207. </AssociationSet>
  208. <AssociationSet Name="FK_Order_Details_Orders" Association="NorthwindModel.FK_Order_Details_Orders">
  209. <End Role="Orders" EntitySet="Orders"/>
  210. <End Role="Order_Details" EntitySet="Order_Details"/>
  211. </AssociationSet>
  212. <AssociationSet Name="FK_Order_Details_Products" Association="NorthwindModel.FK_Order_Details_Products">
  213. <End Role="Products" EntitySet="Products"/>
  214. <End Role="Order_Details" EntitySet="Order_Details"/>
  215. </AssociationSet>
  216. </EntityContainer>
  217. </Schema>
  218. </edmx:DataServices>
  219. </edmx:Edmx>