Model1.edmx 38 KB

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