Model1.edmx 38 KB

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