Model1.edmx 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  3. <!-- EF Runtime content -->
  4. <edmx:Runtime>
  5. <!-- SSDL content -->
  6. <edmx:StorageModels>
  7. <Schema Namespace="UP_41P_GroshevIModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  8. <EntityType Name="DeliveryPoint">
  9. <Key>
  10. <PropertyRef Name="IdDeliveryPoint" />
  11. </Key>
  12. <Property Name="IdDeliveryPoint" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="PostelIndex" Type="varchar" MaxLength="50" Nullable="false" />
  14. <Property Name="City" Type="varchar" MaxLength="100" Nullable="false" />
  15. <Property Name="Street" Type="varchar" MaxLength="100" Nullable="false" />
  16. <Property Name="NumberHouse" Type="varchar" MaxLength="50" Nullable="false" />
  17. </EntityType>
  18. <EntityType Name="Manufacturer">
  19. <Key>
  20. <PropertyRef Name="IdManufacturer" />
  21. </Key>
  22. <Property Name="IdManufacturer" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  23. <Property Name="NameManufacturer" Type="varchar" MaxLength="100" Nullable="false" />
  24. </EntityType>
  25. <EntityType Name="Order">
  26. <Key>
  27. <PropertyRef Name="OrderID" />
  28. </Key>
  29. <Property Name="OrderID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  30. <Property Name="OrderStatus" Type="int" Nullable="false" />
  31. <Property Name="OrderDeliveryDate" Type="datetime" Nullable="false" />
  32. <Property Name="OrderPickupPoint" Type="int" Nullable="false" />
  33. <Property Name="OrderCreationDate" Type="datetime" Nullable="false" />
  34. <Property Name="OrderCode" Type="varchar" MaxLength="50" Nullable="false" />
  35. <Property Name="OrderBuyer" Type="int" />
  36. </EntityType>
  37. <EntityType Name="OrderProduct">
  38. <Key>
  39. <PropertyRef Name="OrderID" />
  40. <PropertyRef Name="ProductArticleNumber" />
  41. </Key>
  42. <Property Name="OrderID" Type="int" Nullable="false" />
  43. <Property Name="ProductArticleNumber" Type="nvarchar" MaxLength="100" Nullable="false" />
  44. <Property Name="ProductCount" Type="int" Nullable="false" />
  45. </EntityType>
  46. <EntityType Name="OrderStatus">
  47. <Key>
  48. <PropertyRef Name="IdOrderStatus" />
  49. </Key>
  50. <Property Name="IdOrderStatus" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  51. <Property Name="NameOrderStatus" Type="varchar" MaxLength="100" Nullable="false" />
  52. </EntityType>
  53. <EntityType Name="Product">
  54. <Key>
  55. <PropertyRef Name="ProductArticleNumber" />
  56. </Key>
  57. <Property Name="ProductArticleNumber" Type="nvarchar" MaxLength="100" Nullable="false" />
  58. <Property Name="ProductName" Type="nvarchar(max)" Nullable="false" />
  59. <Property Name="ProductDescription" Type="nvarchar(max)" Nullable="false" />
  60. <Property Name="ProductCategory" Type="int" Nullable="false" />
  61. <Property Name="ProductManufacturer" Type="int" Nullable="false" />
  62. <Property Name="ProductCost" Type="decimal" Precision="19" Scale="4" Nullable="false" />
  63. <Property Name="ProductDiscountAmount" Type="tinyint" />
  64. <Property Name="ProductQuantityInStock" Type="int" Nullable="false" />
  65. <Property Name="ProductUnit" Type="varchar" MaxLength="50" Nullable="false" />
  66. <Property Name="ProductVendor" Type="int" />
  67. <Property Name="ProductCurrentDiscount" Type="float" />
  68. <Property Name="ProductPhoto" Type="nvarchar(max)" />
  69. </EntityType>
  70. <EntityType Name="ProductCategory">
  71. <Key>
  72. <PropertyRef Name="IdProductCategory" />
  73. </Key>
  74. <Property Name="IdProductCategory" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  75. <Property Name="NameProductCategory" Type="varchar" MaxLength="100" Nullable="false" />
  76. </EntityType>
  77. <EntityType Name="ProductVendor">
  78. <Key>
  79. <PropertyRef Name="IdProductVendor" />
  80. </Key>
  81. <Property Name="IdProductVendor" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  82. <Property Name="NameProductVendor" Type="varchar" MaxLength="100" Nullable="false" />
  83. </EntityType>
  84. <EntityType Name="Role">
  85. <Key>
  86. <PropertyRef Name="RoleID" />
  87. </Key>
  88. <Property Name="RoleID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  89. <Property Name="RoleName" Type="nvarchar" MaxLength="100" Nullable="false" />
  90. </EntityType>
  91. <EntityType Name="sysdiagrams">
  92. <Key>
  93. <PropertyRef Name="diagram_id" />
  94. </Key>
  95. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  96. <Property Name="principal_id" Type="int" Nullable="false" />
  97. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  98. <Property Name="version" Type="int" />
  99. <Property Name="definition" Type="varbinary(max)" />
  100. </EntityType>
  101. <EntityType Name="User">
  102. <Key>
  103. <PropertyRef Name="UserID" />
  104. </Key>
  105. <Property Name="UserID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  106. <Property Name="UserSurname" Type="nvarchar" MaxLength="100" Nullable="false" />
  107. <Property Name="UserName" Type="nvarchar" MaxLength="100" Nullable="false" />
  108. <Property Name="UserPatronymic" Type="nvarchar" MaxLength="100" Nullable="false" />
  109. <Property Name="UserLogin" Type="nvarchar(max)" Nullable="false" />
  110. <Property Name="UserPassword" Type="nvarchar(max)" Nullable="false" />
  111. <Property Name="UserRole" Type="int" Nullable="false" />
  112. </EntityType>
  113. <Association Name="FK__Order__OrderBuye__5812160E">
  114. <End Role="User" Type="Self.User" Multiplicity="0..1" />
  115. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  116. <ReferentialConstraint>
  117. <Principal Role="User">
  118. <PropertyRef Name="UserID" />
  119. </Principal>
  120. <Dependent Role="Order">
  121. <PropertyRef Name="OrderBuyer" />
  122. </Dependent>
  123. </ReferentialConstraint>
  124. </Association>
  125. <Association Name="FK__Order__OrderPick__59063A47">
  126. <End Role="DeliveryPoint" Type="Self.DeliveryPoint" Multiplicity="1" />
  127. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  128. <ReferentialConstraint>
  129. <Principal Role="DeliveryPoint">
  130. <PropertyRef Name="IdDeliveryPoint" />
  131. </Principal>
  132. <Dependent Role="Order">
  133. <PropertyRef Name="OrderPickupPoint" />
  134. </Dependent>
  135. </ReferentialConstraint>
  136. </Association>
  137. <Association Name="FK__OrderProd__Order__4CA06362">
  138. <End Role="Order" Type="Self.Order" Multiplicity="1" />
  139. <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
  140. <ReferentialConstraint>
  141. <Principal Role="Order">
  142. <PropertyRef Name="OrderID" />
  143. </Principal>
  144. <Dependent Role="OrderProduct">
  145. <PropertyRef Name="OrderID" />
  146. </Dependent>
  147. </ReferentialConstraint>
  148. </Association>
  149. <Association Name="FK__OrderProd__Produ__4D94879B">
  150. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  151. <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
  152. <ReferentialConstraint>
  153. <Principal Role="Product">
  154. <PropertyRef Name="ProductArticleNumber" />
  155. </Principal>
  156. <Dependent Role="OrderProduct">
  157. <PropertyRef Name="ProductArticleNumber" />
  158. </Dependent>
  159. </ReferentialConstraint>
  160. </Association>
  161. <Association Name="FK__Product__Product__59FA5E80">
  162. <End Role="ProductVendor" Type="Self.ProductVendor" Multiplicity="0..1" />
  163. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  164. <ReferentialConstraint>
  165. <Principal Role="ProductVendor">
  166. <PropertyRef Name="IdProductVendor" />
  167. </Principal>
  168. <Dependent Role="Product">
  169. <PropertyRef Name="ProductVendor" />
  170. </Dependent>
  171. </ReferentialConstraint>
  172. </Association>
  173. <Association Name="FK__Product__Product__5AEE82B9">
  174. <End Role="ProductCategory" Type="Self.ProductCategory" Multiplicity="1" />
  175. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  176. <ReferentialConstraint>
  177. <Principal Role="ProductCategory">
  178. <PropertyRef Name="IdProductCategory" />
  179. </Principal>
  180. <Dependent Role="Product">
  181. <PropertyRef Name="ProductCategory" />
  182. </Dependent>
  183. </ReferentialConstraint>
  184. </Association>
  185. <Association Name="FK__Product__Product__5CD6CB2B">
  186. <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="1" />
  187. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  188. <ReferentialConstraint>
  189. <Principal Role="Manufacturer">
  190. <PropertyRef Name="IdManufacturer" />
  191. </Principal>
  192. <Dependent Role="Product">
  193. <PropertyRef Name="ProductManufacturer" />
  194. </Dependent>
  195. </ReferentialConstraint>
  196. </Association>
  197. <Association Name="FK__User__UserRole__45F365D3">
  198. <End Role="Role" Type="Self.Role" Multiplicity="1" />
  199. <End Role="User" Type="Self.User" Multiplicity="*" />
  200. <ReferentialConstraint>
  201. <Principal Role="Role">
  202. <PropertyRef Name="RoleID" />
  203. </Principal>
  204. <Dependent Role="User">
  205. <PropertyRef Name="UserRole" />
  206. </Dependent>
  207. </ReferentialConstraint>
  208. </Association>
  209. <EntityContainer Name="UP_41P_GroshevIModelStoreContainer">
  210. <EntitySet Name="DeliveryPoint" EntityType="Self.DeliveryPoint" Schema="dbo" store:Type="Tables" />
  211. <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" Schema="dbo" store:Type="Tables" />
  212. <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
  213. <EntitySet Name="OrderProduct" EntityType="Self.OrderProduct" Schema="dbo" store:Type="Tables" />
  214. <EntitySet Name="OrderStatus" EntityType="Self.OrderStatus" Schema="dbo" store:Type="Tables" />
  215. <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
  216. <EntitySet Name="ProductCategory" EntityType="Self.ProductCategory" Schema="dbo" store:Type="Tables" />
  217. <EntitySet Name="ProductVendor" EntityType="Self.ProductVendor" Schema="dbo" store:Type="Tables" />
  218. <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
  219. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  220. <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
  221. <AssociationSet Name="FK__Order__OrderBuye__5812160E" Association="Self.FK__Order__OrderBuye__5812160E">
  222. <End Role="User" EntitySet="User" />
  223. <End Role="Order" EntitySet="Order" />
  224. </AssociationSet>
  225. <AssociationSet Name="FK__Order__OrderPick__59063A47" Association="Self.FK__Order__OrderPick__59063A47">
  226. <End Role="DeliveryPoint" EntitySet="DeliveryPoint" />
  227. <End Role="Order" EntitySet="Order" />
  228. </AssociationSet>
  229. <AssociationSet Name="FK__OrderProd__Order__4CA06362" Association="Self.FK__OrderProd__Order__4CA06362">
  230. <End Role="Order" EntitySet="Order" />
  231. <End Role="OrderProduct" EntitySet="OrderProduct" />
  232. </AssociationSet>
  233. <AssociationSet Name="FK__OrderProd__Produ__4D94879B" Association="Self.FK__OrderProd__Produ__4D94879B">
  234. <End Role="Product" EntitySet="Product" />
  235. <End Role="OrderProduct" EntitySet="OrderProduct" />
  236. </AssociationSet>
  237. <AssociationSet Name="FK__Product__Product__59FA5E80" Association="Self.FK__Product__Product__59FA5E80">
  238. <End Role="ProductVendor" EntitySet="ProductVendor" />
  239. <End Role="Product" EntitySet="Product" />
  240. </AssociationSet>
  241. <AssociationSet Name="FK__Product__Product__5AEE82B9" Association="Self.FK__Product__Product__5AEE82B9">
  242. <End Role="ProductCategory" EntitySet="ProductCategory" />
  243. <End Role="Product" EntitySet="Product" />
  244. </AssociationSet>
  245. <AssociationSet Name="FK__Product__Product__5CD6CB2B" Association="Self.FK__Product__Product__5CD6CB2B">
  246. <End Role="Manufacturer" EntitySet="Manufacturer" />
  247. <End Role="Product" EntitySet="Product" />
  248. </AssociationSet>
  249. <AssociationSet Name="FK__User__UserRole__45F365D3" Association="Self.FK__User__UserRole__45F365D3">
  250. <End Role="Role" EntitySet="Role" />
  251. <End Role="User" EntitySet="User" />
  252. </AssociationSet>
  253. </EntityContainer>
  254. </Schema>
  255. </edmx:StorageModels>
  256. <!-- CSDL content -->
  257. <edmx:ConceptualModels>
  258. <Schema Namespace="UP_41P_GroshevIModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  259. <EntityType Name="DeliveryPoint">
  260. <Key>
  261. <PropertyRef Name="IdDeliveryPoint" />
  262. </Key>
  263. <Property Name="IdDeliveryPoint" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  264. <Property Name="PostelIndex" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  265. <Property Name="City" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
  266. <Property Name="Street" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
  267. <Property Name="NumberHouse" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  268. <NavigationProperty Name="Order" Relationship="Self.FK__Order__OrderPick__59063A47" FromRole="DeliveryPoint" ToRole="Order" />
  269. </EntityType>
  270. <EntityType Name="Manufacturer">
  271. <Key>
  272. <PropertyRef Name="IdManufacturer" />
  273. </Key>
  274. <Property Name="IdManufacturer" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  275. <Property Name="NameManufacturer" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
  276. <NavigationProperty Name="Product" Relationship="Self.FK__Product__Product__5CD6CB2B" FromRole="Manufacturer" ToRole="Product" />
  277. </EntityType>
  278. <EntityType Name="Order">
  279. <Key>
  280. <PropertyRef Name="OrderID" />
  281. </Key>
  282. <Property Name="OrderID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  283. <Property Name="OrderStatus" Type="Int32" Nullable="false" />
  284. <Property Name="OrderDeliveryDate" Type="DateTime" Nullable="false" Precision="3" />
  285. <Property Name="OrderPickupPoint" Type="Int32" Nullable="false" />
  286. <Property Name="OrderCreationDate" Type="DateTime" Nullable="false" Precision="3" />
  287. <Property Name="OrderCode" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  288. <Property Name="OrderBuyer" Type="Int32" />
  289. <NavigationProperty Name="DeliveryPoint" Relationship="Self.FK__Order__OrderPick__59063A47" FromRole="Order" ToRole="DeliveryPoint" />
  290. <NavigationProperty Name="User" Relationship="Self.FK__Order__OrderBuye__5812160E" FromRole="Order" ToRole="User" />
  291. <NavigationProperty Name="OrderProduct" Relationship="Self.FK__OrderProd__Order__4CA06362" FromRole="Order" ToRole="OrderProduct" />
  292. </EntityType>
  293. <EntityType Name="OrderProduct">
  294. <Key>
  295. <PropertyRef Name="OrderID" />
  296. <PropertyRef Name="ProductArticleNumber" />
  297. </Key>
  298. <Property Name="OrderID" Type="Int32" Nullable="false" />
  299. <Property Name="ProductArticleNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  300. <Property Name="ProductCount" Type="Int32" Nullable="false" />
  301. <NavigationProperty Name="Order" Relationship="Self.FK__OrderProd__Order__4CA06362" FromRole="OrderProduct" ToRole="Order" />
  302. <NavigationProperty Name="Product" Relationship="Self.FK__OrderProd__Produ__4D94879B" FromRole="OrderProduct" ToRole="Product" />
  303. </EntityType>
  304. <EntityType Name="OrderStatus">
  305. <Key>
  306. <PropertyRef Name="IdOrderStatus" />
  307. </Key>
  308. <Property Name="IdOrderStatus" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  309. <Property Name="NameOrderStatus" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
  310. </EntityType>
  311. <EntityType Name="Product">
  312. <Key>
  313. <PropertyRef Name="ProductArticleNumber" />
  314. </Key>
  315. <Property Name="ProductArticleNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  316. <Property Name="ProductName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  317. <Property Name="ProductDescription" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  318. <Property Name="ProductCategory" Type="Int32" Nullable="false" />
  319. <Property Name="ProductManufacturer" Type="Int32" Nullable="false" />
  320. <Property Name="ProductCost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  321. <Property Name="ProductDiscountAmount" Type="Byte" />
  322. <Property Name="ProductQuantityInStock" Type="Int32" Nullable="false" />
  323. <Property Name="ProductUnit" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  324. <Property Name="ProductVendor" Type="Int32" />
  325. <Property Name="ProductCurrentDiscount" Type="Double" />
  326. <Property Name="ProductPhoto" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  327. <NavigationProperty Name="Manufacturer" Relationship="Self.FK__Product__Product__5CD6CB2B" FromRole="Product" ToRole="Manufacturer" />
  328. <NavigationProperty Name="OrderProduct" Relationship="Self.FK__OrderProd__Produ__4D94879B" FromRole="Product" ToRole="OrderProduct" />
  329. <NavigationProperty Name="ProductVendor1" Relationship="Self.FK__Product__Product__59FA5E80" FromRole="Product" ToRole="ProductVendor" />
  330. <NavigationProperty Name="ProductCategory1" Relationship="Self.FK__Product__Product__5AEE82B9" FromRole="Product" ToRole="ProductCategory" />
  331. </EntityType>
  332. <EntityType Name="ProductCategory">
  333. <Key>
  334. <PropertyRef Name="IdProductCategory" />
  335. </Key>
  336. <Property Name="IdProductCategory" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  337. <Property Name="NameProductCategory" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
  338. <NavigationProperty Name="Product" Relationship="Self.FK__Product__Product__5AEE82B9" FromRole="ProductCategory" ToRole="Product" />
  339. </EntityType>
  340. <EntityType Name="ProductVendor">
  341. <Key>
  342. <PropertyRef Name="IdProductVendor" />
  343. </Key>
  344. <Property Name="IdProductVendor" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  345. <Property Name="NameProductVendor" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
  346. <NavigationProperty Name="Product" Relationship="Self.FK__Product__Product__59FA5E80" FromRole="ProductVendor" ToRole="Product" />
  347. </EntityType>
  348. <EntityType Name="Role">
  349. <Key>
  350. <PropertyRef Name="RoleID" />
  351. </Key>
  352. <Property Name="RoleID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  353. <Property Name="RoleName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  354. <NavigationProperty Name="User" Relationship="Self.FK__User__UserRole__45F365D3" FromRole="Role" ToRole="User" />
  355. </EntityType>
  356. <EntityType Name="sysdiagrams">
  357. <Key>
  358. <PropertyRef Name="diagram_id" />
  359. </Key>
  360. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  361. <Property Name="principal_id" Type="Int32" Nullable="false" />
  362. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  363. <Property Name="version" Type="Int32" />
  364. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  365. </EntityType>
  366. <EntityType Name="User">
  367. <Key>
  368. <PropertyRef Name="UserID" />
  369. </Key>
  370. <Property Name="UserID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  371. <Property Name="UserSurname" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  372. <Property Name="UserName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  373. <Property Name="UserPatronymic" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  374. <Property Name="UserLogin" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  375. <Property Name="UserPassword" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  376. <Property Name="UserRole" Type="Int32" Nullable="false" />
  377. <NavigationProperty Name="Order" Relationship="Self.FK__Order__OrderBuye__5812160E" FromRole="User" ToRole="Order" />
  378. <NavigationProperty Name="Role" Relationship="Self.FK__User__UserRole__45F365D3" FromRole="User" ToRole="Role" />
  379. </EntityType>
  380. <Association Name="FK__Order__OrderPick__59063A47">
  381. <End Role="DeliveryPoint" Type="Self.DeliveryPoint" Multiplicity="1" />
  382. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  383. <ReferentialConstraint>
  384. <Principal Role="DeliveryPoint">
  385. <PropertyRef Name="IdDeliveryPoint" />
  386. </Principal>
  387. <Dependent Role="Order">
  388. <PropertyRef Name="OrderPickupPoint" />
  389. </Dependent>
  390. </ReferentialConstraint>
  391. </Association>
  392. <Association Name="FK__Product__Product__5CD6CB2B">
  393. <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="1" />
  394. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  395. <ReferentialConstraint>
  396. <Principal Role="Manufacturer">
  397. <PropertyRef Name="IdManufacturer" />
  398. </Principal>
  399. <Dependent Role="Product">
  400. <PropertyRef Name="ProductManufacturer" />
  401. </Dependent>
  402. </ReferentialConstraint>
  403. </Association>
  404. <Association Name="FK__Order__OrderBuye__5812160E">
  405. <End Role="User" Type="Self.User" Multiplicity="0..1" />
  406. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  407. <ReferentialConstraint>
  408. <Principal Role="User">
  409. <PropertyRef Name="UserID" />
  410. </Principal>
  411. <Dependent Role="Order">
  412. <PropertyRef Name="OrderBuyer" />
  413. </Dependent>
  414. </ReferentialConstraint>
  415. </Association>
  416. <Association Name="FK__OrderProd__Order__4CA06362">
  417. <End Role="Order" Type="Self.Order" Multiplicity="1" />
  418. <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
  419. <ReferentialConstraint>
  420. <Principal Role="Order">
  421. <PropertyRef Name="OrderID" />
  422. </Principal>
  423. <Dependent Role="OrderProduct">
  424. <PropertyRef Name="OrderID" />
  425. </Dependent>
  426. </ReferentialConstraint>
  427. </Association>
  428. <Association Name="FK__OrderProd__Produ__4D94879B">
  429. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  430. <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
  431. <ReferentialConstraint>
  432. <Principal Role="Product">
  433. <PropertyRef Name="ProductArticleNumber" />
  434. </Principal>
  435. <Dependent Role="OrderProduct">
  436. <PropertyRef Name="ProductArticleNumber" />
  437. </Dependent>
  438. </ReferentialConstraint>
  439. </Association>
  440. <Association Name="FK__Product__Product__59FA5E80">
  441. <End Role="ProductVendor" Type="Self.ProductVendor" Multiplicity="0..1" />
  442. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  443. <ReferentialConstraint>
  444. <Principal Role="ProductVendor">
  445. <PropertyRef Name="IdProductVendor" />
  446. </Principal>
  447. <Dependent Role="Product">
  448. <PropertyRef Name="ProductVendor" />
  449. </Dependent>
  450. </ReferentialConstraint>
  451. </Association>
  452. <Association Name="FK__Product__Product__5AEE82B9">
  453. <End Role="ProductCategory" Type="Self.ProductCategory" Multiplicity="1" />
  454. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  455. <ReferentialConstraint>
  456. <Principal Role="ProductCategory">
  457. <PropertyRef Name="IdProductCategory" />
  458. </Principal>
  459. <Dependent Role="Product">
  460. <PropertyRef Name="ProductCategory" />
  461. </Dependent>
  462. </ReferentialConstraint>
  463. </Association>
  464. <Association Name="FK__User__UserRole__45F365D3">
  465. <End Role="Role" Type="Self.Role" Multiplicity="1" />
  466. <End Role="User" Type="Self.User" Multiplicity="*" />
  467. <ReferentialConstraint>
  468. <Principal Role="Role">
  469. <PropertyRef Name="RoleID" />
  470. </Principal>
  471. <Dependent Role="User">
  472. <PropertyRef Name="UserRole" />
  473. </Dependent>
  474. </ReferentialConstraint>
  475. </Association>
  476. <EntityContainer Name="UP_41P_GroshevIEntities" annotation:LazyLoadingEnabled="true">
  477. <EntitySet Name="DeliveryPoint" EntityType="Self.DeliveryPoint" />
  478. <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" />
  479. <EntitySet Name="Order" EntityType="Self.Order" />
  480. <EntitySet Name="OrderProduct" EntityType="Self.OrderProduct" />
  481. <EntitySet Name="OrderStatus" EntityType="Self.OrderStatus" />
  482. <EntitySet Name="Product" EntityType="Self.Product" />
  483. <EntitySet Name="ProductCategory" EntityType="Self.ProductCategory" />
  484. <EntitySet Name="ProductVendor" EntityType="Self.ProductVendor" />
  485. <EntitySet Name="Role" EntityType="Self.Role" />
  486. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  487. <EntitySet Name="User" EntityType="Self.User" />
  488. <AssociationSet Name="FK__Order__OrderPick__59063A47" Association="Self.FK__Order__OrderPick__59063A47">
  489. <End Role="DeliveryPoint" EntitySet="DeliveryPoint" />
  490. <End Role="Order" EntitySet="Order" />
  491. </AssociationSet>
  492. <AssociationSet Name="FK__Product__Product__5CD6CB2B" Association="Self.FK__Product__Product__5CD6CB2B">
  493. <End Role="Manufacturer" EntitySet="Manufacturer" />
  494. <End Role="Product" EntitySet="Product" />
  495. </AssociationSet>
  496. <AssociationSet Name="FK__Order__OrderBuye__5812160E" Association="Self.FK__Order__OrderBuye__5812160E">
  497. <End Role="User" EntitySet="User" />
  498. <End Role="Order" EntitySet="Order" />
  499. </AssociationSet>
  500. <AssociationSet Name="FK__OrderProd__Order__4CA06362" Association="Self.FK__OrderProd__Order__4CA06362">
  501. <End Role="Order" EntitySet="Order" />
  502. <End Role="OrderProduct" EntitySet="OrderProduct" />
  503. </AssociationSet>
  504. <AssociationSet Name="FK__OrderProd__Produ__4D94879B" Association="Self.FK__OrderProd__Produ__4D94879B">
  505. <End Role="Product" EntitySet="Product" />
  506. <End Role="OrderProduct" EntitySet="OrderProduct" />
  507. </AssociationSet>
  508. <AssociationSet Name="FK__Product__Product__59FA5E80" Association="Self.FK__Product__Product__59FA5E80">
  509. <End Role="ProductVendor" EntitySet="ProductVendor" />
  510. <End Role="Product" EntitySet="Product" />
  511. </AssociationSet>
  512. <AssociationSet Name="FK__Product__Product__5AEE82B9" Association="Self.FK__Product__Product__5AEE82B9">
  513. <End Role="ProductCategory" EntitySet="ProductCategory" />
  514. <End Role="Product" EntitySet="Product" />
  515. </AssociationSet>
  516. <AssociationSet Name="FK__User__UserRole__45F365D3" Association="Self.FK__User__UserRole__45F365D3">
  517. <End Role="Role" EntitySet="Role" />
  518. <End Role="User" EntitySet="User" />
  519. </AssociationSet>
  520. </EntityContainer>
  521. </Schema>
  522. </edmx:ConceptualModels>
  523. <!-- C-S mapping content -->
  524. <edmx:Mappings>
  525. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  526. <EntityContainerMapping StorageEntityContainer="UP_41P_GroshevIModelStoreContainer" CdmEntityContainer="UP_41P_GroshevIEntities">
  527. <EntitySetMapping Name="DeliveryPoint">
  528. <EntityTypeMapping TypeName="UP_41P_GroshevIModel.DeliveryPoint">
  529. <MappingFragment StoreEntitySet="DeliveryPoint">
  530. <ScalarProperty Name="IdDeliveryPoint" ColumnName="IdDeliveryPoint" />
  531. <ScalarProperty Name="PostelIndex" ColumnName="PostelIndex" />
  532. <ScalarProperty Name="City" ColumnName="City" />
  533. <ScalarProperty Name="Street" ColumnName="Street" />
  534. <ScalarProperty Name="NumberHouse" ColumnName="NumberHouse" />
  535. </MappingFragment>
  536. </EntityTypeMapping>
  537. </EntitySetMapping>
  538. <EntitySetMapping Name="Manufacturer">
  539. <EntityTypeMapping TypeName="UP_41P_GroshevIModel.Manufacturer">
  540. <MappingFragment StoreEntitySet="Manufacturer">
  541. <ScalarProperty Name="IdManufacturer" ColumnName="IdManufacturer" />
  542. <ScalarProperty Name="NameManufacturer" ColumnName="NameManufacturer" />
  543. </MappingFragment>
  544. </EntityTypeMapping>
  545. </EntitySetMapping>
  546. <EntitySetMapping Name="Order">
  547. <EntityTypeMapping TypeName="UP_41P_GroshevIModel.Order">
  548. <MappingFragment StoreEntitySet="Order">
  549. <ScalarProperty Name="OrderID" ColumnName="OrderID" />
  550. <ScalarProperty Name="OrderStatus" ColumnName="OrderStatus" />
  551. <ScalarProperty Name="OrderDeliveryDate" ColumnName="OrderDeliveryDate" />
  552. <ScalarProperty Name="OrderPickupPoint" ColumnName="OrderPickupPoint" />
  553. <ScalarProperty Name="OrderCreationDate" ColumnName="OrderCreationDate" />
  554. <ScalarProperty Name="OrderCode" ColumnName="OrderCode" />
  555. <ScalarProperty Name="OrderBuyer" ColumnName="OrderBuyer" />
  556. </MappingFragment>
  557. </EntityTypeMapping>
  558. </EntitySetMapping>
  559. <EntitySetMapping Name="OrderProduct">
  560. <EntityTypeMapping TypeName="UP_41P_GroshevIModel.OrderProduct">
  561. <MappingFragment StoreEntitySet="OrderProduct">
  562. <ScalarProperty Name="OrderID" ColumnName="OrderID" />
  563. <ScalarProperty Name="ProductArticleNumber" ColumnName="ProductArticleNumber" />
  564. <ScalarProperty Name="ProductCount" ColumnName="ProductCount" />
  565. </MappingFragment>
  566. </EntityTypeMapping>
  567. </EntitySetMapping>
  568. <EntitySetMapping Name="OrderStatus">
  569. <EntityTypeMapping TypeName="UP_41P_GroshevIModel.OrderStatus">
  570. <MappingFragment StoreEntitySet="OrderStatus">
  571. <ScalarProperty Name="IdOrderStatus" ColumnName="IdOrderStatus" />
  572. <ScalarProperty Name="NameOrderStatus" ColumnName="NameOrderStatus" />
  573. </MappingFragment>
  574. </EntityTypeMapping>
  575. </EntitySetMapping>
  576. <EntitySetMapping Name="Product">
  577. <EntityTypeMapping TypeName="UP_41P_GroshevIModel.Product">
  578. <MappingFragment StoreEntitySet="Product">
  579. <ScalarProperty Name="ProductArticleNumber" ColumnName="ProductArticleNumber" />
  580. <ScalarProperty Name="ProductName" ColumnName="ProductName" />
  581. <ScalarProperty Name="ProductDescription" ColumnName="ProductDescription" />
  582. <ScalarProperty Name="ProductCategory" ColumnName="ProductCategory" />
  583. <ScalarProperty Name="ProductManufacturer" ColumnName="ProductManufacturer" />
  584. <ScalarProperty Name="ProductCost" ColumnName="ProductCost" />
  585. <ScalarProperty Name="ProductDiscountAmount" ColumnName="ProductDiscountAmount" />
  586. <ScalarProperty Name="ProductQuantityInStock" ColumnName="ProductQuantityInStock" />
  587. <ScalarProperty Name="ProductUnit" ColumnName="ProductUnit" />
  588. <ScalarProperty Name="ProductVendor" ColumnName="ProductVendor" />
  589. <ScalarProperty Name="ProductCurrentDiscount" ColumnName="ProductCurrentDiscount" />
  590. <ScalarProperty Name="ProductPhoto" ColumnName="ProductPhoto" />
  591. </MappingFragment>
  592. </EntityTypeMapping>
  593. </EntitySetMapping>
  594. <EntitySetMapping Name="ProductCategory">
  595. <EntityTypeMapping TypeName="UP_41P_GroshevIModel.ProductCategory">
  596. <MappingFragment StoreEntitySet="ProductCategory">
  597. <ScalarProperty Name="IdProductCategory" ColumnName="IdProductCategory" />
  598. <ScalarProperty Name="NameProductCategory" ColumnName="NameProductCategory" />
  599. </MappingFragment>
  600. </EntityTypeMapping>
  601. </EntitySetMapping>
  602. <EntitySetMapping Name="ProductVendor">
  603. <EntityTypeMapping TypeName="UP_41P_GroshevIModel.ProductVendor">
  604. <MappingFragment StoreEntitySet="ProductVendor">
  605. <ScalarProperty Name="IdProductVendor" ColumnName="IdProductVendor" />
  606. <ScalarProperty Name="NameProductVendor" ColumnName="NameProductVendor" />
  607. </MappingFragment>
  608. </EntityTypeMapping>
  609. </EntitySetMapping>
  610. <EntitySetMapping Name="Role">
  611. <EntityTypeMapping TypeName="UP_41P_GroshevIModel.Role">
  612. <MappingFragment StoreEntitySet="Role">
  613. <ScalarProperty Name="RoleID" ColumnName="RoleID" />
  614. <ScalarProperty Name="RoleName" ColumnName="RoleName" />
  615. </MappingFragment>
  616. </EntityTypeMapping>
  617. </EntitySetMapping>
  618. <EntitySetMapping Name="sysdiagrams">
  619. <EntityTypeMapping TypeName="UP_41P_GroshevIModel.sysdiagrams">
  620. <MappingFragment StoreEntitySet="sysdiagrams">
  621. <ScalarProperty Name="name" ColumnName="name" />
  622. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  623. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  624. <ScalarProperty Name="version" ColumnName="version" />
  625. <ScalarProperty Name="definition" ColumnName="definition" />
  626. </MappingFragment>
  627. </EntityTypeMapping>
  628. </EntitySetMapping>
  629. <EntitySetMapping Name="User">
  630. <EntityTypeMapping TypeName="UP_41P_GroshevIModel.User">
  631. <MappingFragment StoreEntitySet="User">
  632. <ScalarProperty Name="UserID" ColumnName="UserID" />
  633. <ScalarProperty Name="UserSurname" ColumnName="UserSurname" />
  634. <ScalarProperty Name="UserName" ColumnName="UserName" />
  635. <ScalarProperty Name="UserPatronymic" ColumnName="UserPatronymic" />
  636. <ScalarProperty Name="UserLogin" ColumnName="UserLogin" />
  637. <ScalarProperty Name="UserPassword" ColumnName="UserPassword" />
  638. <ScalarProperty Name="UserRole" ColumnName="UserRole" />
  639. </MappingFragment>
  640. </EntityTypeMapping>
  641. </EntitySetMapping>
  642. </EntityContainerMapping>
  643. </Mapping>
  644. </edmx:Mappings>
  645. </edmx:Runtime>
  646. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  647. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  648. <Connection>
  649. <DesignerInfoPropertySet>
  650. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  651. </DesignerInfoPropertySet>
  652. </Connection>
  653. <Options>
  654. <DesignerInfoPropertySet>
  655. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  656. <DesignerProperty Name="EnablePluralization" Value="false" />
  657. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  658. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  659. <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
  660. </DesignerInfoPropertySet>
  661. </Options>
  662. <!-- Diagram content (shape and connector positions) -->
  663. <Diagrams></Diagrams>
  664. </Designer>
  665. </edmx:Edmx>