Model1.edmx 38 KB

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