ModelBase.edmx 35 KB

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