Model1.edmx 36 KB

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