DataBaseModel.edmx 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  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="Хранилище user123Model" 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="Code_Manufacturer" />
  11. </Key>
  12. <Property Name="Code_Manufacturer" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="Name_Manufacturer" Type="nvarchar" MaxLength="50" Nullable="false" />
  14. </EntityType>
  15. <EntityType Name="Orders">
  16. <Key>
  17. <PropertyRef Name="Code_Order" />
  18. </Key>
  19. <Property Name="Code_Order" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  20. <Property Name="Code_Point" Type="int" Nullable="false" />
  21. <Property Name="Amount_Order" Type="decimal" Precision="18" Scale="0" Nullable="false" />
  22. <Property Name="Date_Delivery" Type="date" Nullable="false" />
  23. <Property Name="Get_Code" Type="int" Nullable="false" />
  24. </EntityType>
  25. <!--Ошибки, обнаруженные при создании:
  26. предупреждение 6002: В таблице или представлении "user123.dbo.Orders_Products" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
  27. <EntityType Name="Orders_Products">
  28. <Key>
  29. <PropertyRef Name="Code_Order" />
  30. <PropertyRef Name="Code_Product" />
  31. <PropertyRef Name="Count_Product_Order" />
  32. </Key>
  33. <Property Name="Code_Order" Type="int" Nullable="false" />
  34. <Property Name="Code_Product" Type="int" Nullable="false" />
  35. <Property Name="Count_Product_Order" Type="int" Nullable="false" />
  36. </EntityType>
  37. <EntityType Name="Point_Issue">
  38. <Key>
  39. <PropertyRef Name="Code_Point" />
  40. </Key>
  41. <Property Name="Code_Point" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  42. <Property Name="Name_Point" Type="nvarchar(max)" Nullable="false" />
  43. </EntityType>
  44. <EntityType Name="Products">
  45. <Key>
  46. <PropertyRef Name="Code_Product" />
  47. </Key>
  48. <Property Name="Code_Product" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  49. <Property Name="Name_Product" Type="nvarchar" MaxLength="50" Nullable="false" />
  50. <Property Name="Description_Product" Type="nvarchar(max)" Nullable="false" />
  51. <Property Name="Code_Manufacturer" Type="int" Nullable="false" />
  52. <Property Name="Price_Product" Type="decimal" Precision="18" Scale="2" Nullable="false" />
  53. <Property Name="Discount_Product" Type="decimal" Precision="18" Scale="2" Nullable="false" />
  54. <Property Name="Photo_Product" Type="nvarchar(max)" />
  55. </EntityType>
  56. <EntityType Name="Roles">
  57. <Key>
  58. <PropertyRef Name="Code_Role" />
  59. </Key>
  60. <Property Name="Code_Role" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  61. <Property Name="Name_Role" Type="nvarchar" MaxLength="25" Nullable="false" />
  62. </EntityType>
  63. <EntityType Name="Users">
  64. <Key>
  65. <PropertyRef Name="Code_User" />
  66. </Key>
  67. <Property Name="Code_User" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  68. <Property Name="Code_Role" Type="int" />
  69. <Property Name="Surname_User" Type="nvarchar" MaxLength="25" Nullable="false" />
  70. <Property Name="Name_User" Type="nvarchar" MaxLength="25" Nullable="false" />
  71. <Property Name="Midname_User" Type="nvarchar" MaxLength="25" Nullable="false" />
  72. <Property Name="Login_User" Type="nvarchar" MaxLength="25" Nullable="false" />
  73. <Property Name="Password_User" Type="nvarchar" MaxLength="25" Nullable="false" />
  74. </EntityType>
  75. <!--Ошибки, обнаруженные при создании:
  76. предупреждение 6002: В таблице или представлении "user123.dbo.Warehouse" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
  77. <EntityType Name="Warehouse">
  78. <Key>
  79. <PropertyRef Name="Code_Product" />
  80. <PropertyRef Name="Count_Product" />
  81. </Key>
  82. <Property Name="Code_Product" Type="int" Nullable="false" />
  83. <Property Name="Count_Product" Type="int" Nullable="false" />
  84. </EntityType>
  85. <Association Name="FK__Orders__Code_Poi__36B12243">
  86. <End Role="Point_Issue" Type="Self.Point_Issue" Multiplicity="1" />
  87. <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
  88. <ReferentialConstraint>
  89. <Principal Role="Point_Issue">
  90. <PropertyRef Name="Code_Point" />
  91. </Principal>
  92. <Dependent Role="Orders">
  93. <PropertyRef Name="Code_Point" />
  94. </Dependent>
  95. </ReferentialConstraint>
  96. </Association>
  97. <Association Name="FK__Orders_Pr__Code___38996AB5">
  98. <End Role="Orders" Type="Self.Orders" Multiplicity="1" />
  99. <End Role="Orders_Products" Type="Self.Orders_Products" Multiplicity="*" />
  100. <ReferentialConstraint>
  101. <Principal Role="Orders">
  102. <PropertyRef Name="Code_Order" />
  103. </Principal>
  104. <Dependent Role="Orders_Products">
  105. <PropertyRef Name="Code_Order" />
  106. </Dependent>
  107. </ReferentialConstraint>
  108. </Association>
  109. <Association Name="FK__Orders_Pr__Code___398D8EEE">
  110. <End Role="Products" Type="Self.Products" Multiplicity="1" />
  111. <End Role="Orders_Products" Type="Self.Orders_Products" Multiplicity="*" />
  112. <ReferentialConstraint>
  113. <Principal Role="Products">
  114. <PropertyRef Name="Code_Product" />
  115. </Principal>
  116. <Dependent Role="Orders_Products">
  117. <PropertyRef Name="Code_Product" />
  118. </Dependent>
  119. </ReferentialConstraint>
  120. </Association>
  121. <Association Name="FK__Products__Code_M__300424B4">
  122. <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="1" />
  123. <End Role="Products" Type="Self.Products" Multiplicity="*" />
  124. <ReferentialConstraint>
  125. <Principal Role="Manufacturer">
  126. <PropertyRef Name="Code_Manufacturer" />
  127. </Principal>
  128. <Dependent Role="Products">
  129. <PropertyRef Name="Code_Manufacturer" />
  130. </Dependent>
  131. </ReferentialConstraint>
  132. </Association>
  133. <Association Name="FK__Users__Code_Role__2B3F6F97">
  134. <End Role="Roles" Type="Self.Roles" Multiplicity="0..1" />
  135. <End Role="Users" Type="Self.Users" Multiplicity="*" />
  136. <ReferentialConstraint>
  137. <Principal Role="Roles">
  138. <PropertyRef Name="Code_Role" />
  139. </Principal>
  140. <Dependent Role="Users">
  141. <PropertyRef Name="Code_Role" />
  142. </Dependent>
  143. </ReferentialConstraint>
  144. </Association>
  145. <Association Name="FK__Warehouse__Code___31EC6D26">
  146. <End Role="Products" Type="Self.Products" Multiplicity="1" />
  147. <End Role="Warehouse" Type="Self.Warehouse" Multiplicity="*" />
  148. <ReferentialConstraint>
  149. <Principal Role="Products">
  150. <PropertyRef Name="Code_Product" />
  151. </Principal>
  152. <Dependent Role="Warehouse">
  153. <PropertyRef Name="Code_Product" />
  154. </Dependent>
  155. </ReferentialConstraint>
  156. </Association>
  157. <EntityContainer Name="Хранилище user123ModelContainer">
  158. <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" Schema="dbo" store:Type="Tables" />
  159. <EntitySet Name="Orders" EntityType="Self.Orders" Schema="dbo" store:Type="Tables" />
  160. <EntitySet Name="Point_Issue" EntityType="Self.Point_Issue" Schema="dbo" store:Type="Tables" />
  161. <EntitySet Name="Products" EntityType="Self.Products" Schema="dbo" store:Type="Tables" />
  162. <EntitySet Name="Roles" EntityType="Self.Roles" Schema="dbo" store:Type="Tables" />
  163. <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
  164. <EntitySet Name="Orders_Products" EntityType="Self.Orders_Products" store:Type="Tables" store:Schema="dbo">
  165. <DefiningQuery>SELECT
  166. [Orders_Products].[Code_Order] AS [Code_Order],
  167. [Orders_Products].[Code_Product] AS [Code_Product],
  168. [Orders_Products].[Count_Product_Order] AS [Count_Product_Order]
  169. FROM [dbo].[Orders_Products] AS [Orders_Products]</DefiningQuery>
  170. </EntitySet>
  171. <EntitySet Name="Warehouse" EntityType="Self.Warehouse" store:Type="Tables" store:Schema="dbo">
  172. <DefiningQuery>SELECT
  173. [Warehouse].[Code_Product] AS [Code_Product],
  174. [Warehouse].[Count_Product] AS [Count_Product]
  175. FROM [dbo].[Warehouse] AS [Warehouse]</DefiningQuery>
  176. </EntitySet>
  177. <AssociationSet Name="FK__Orders__Code_Poi__36B12243" Association="Self.FK__Orders__Code_Poi__36B12243">
  178. <End Role="Point_Issue" EntitySet="Point_Issue" />
  179. <End Role="Orders" EntitySet="Orders" />
  180. </AssociationSet>
  181. <AssociationSet Name="FK__Orders_Pr__Code___38996AB5" Association="Self.FK__Orders_Pr__Code___38996AB5">
  182. <End Role="Orders" EntitySet="Orders" />
  183. <End Role="Orders_Products" EntitySet="Orders_Products" />
  184. </AssociationSet>
  185. <AssociationSet Name="FK__Orders_Pr__Code___398D8EEE" Association="Self.FK__Orders_Pr__Code___398D8EEE">
  186. <End Role="Products" EntitySet="Products" />
  187. <End Role="Orders_Products" EntitySet="Orders_Products" />
  188. </AssociationSet>
  189. <AssociationSet Name="FK__Products__Code_M__300424B4" Association="Self.FK__Products__Code_M__300424B4">
  190. <End Role="Manufacturer" EntitySet="Manufacturer" />
  191. <End Role="Products" EntitySet="Products" />
  192. </AssociationSet>
  193. <AssociationSet Name="FK__Users__Code_Role__2B3F6F97" Association="Self.FK__Users__Code_Role__2B3F6F97">
  194. <End Role="Roles" EntitySet="Roles" />
  195. <End Role="Users" EntitySet="Users" />
  196. </AssociationSet>
  197. <AssociationSet Name="FK__Warehouse__Code___31EC6D26" Association="Self.FK__Warehouse__Code___31EC6D26">
  198. <End Role="Products" EntitySet="Products" />
  199. <End Role="Warehouse" EntitySet="Warehouse" />
  200. </AssociationSet>
  201. </EntityContainer>
  202. </Schema>
  203. </edmx:StorageModels>
  204. <!-- CSDL content -->
  205. <edmx:ConceptualModels>
  206. <Schema Namespace="user123Model" 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">
  207. <EntityType Name="Manufacturer">
  208. <Key>
  209. <PropertyRef Name="Code_Manufacturer" />
  210. </Key>
  211. <Property Name="Code_Manufacturer" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  212. <Property Name="Name_Manufacturer" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  213. <NavigationProperty Name="Products" Relationship="Self.FK__Products__Code_M__300424B4" FromRole="Manufacturer" ToRole="Products" />
  214. </EntityType>
  215. <EntityType Name="Orders">
  216. <Key>
  217. <PropertyRef Name="Code_Order" />
  218. </Key>
  219. <Property Name="Code_Order" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  220. <Property Name="Code_Point" Type="Int32" Nullable="false" />
  221. <Property Name="Amount_Order" Type="Decimal" Precision="18" Scale="0" Nullable="false" />
  222. <Property Name="Date_Delivery" Type="DateTime" Nullable="false" Precision="0" />
  223. <Property Name="Get_Code" Type="Int32" Nullable="false" />
  224. <NavigationProperty Name="Point_Issue" Relationship="Self.FK__Orders__Code_Poi__36B12243" FromRole="Orders" ToRole="Point_Issue" />
  225. <NavigationProperty Name="Orders_Products" Relationship="Self.FK__Orders_Pr__Code___38996AB5" FromRole="Orders" ToRole="Orders_Products" />
  226. </EntityType>
  227. <EntityType Name="Point_Issue">
  228. <Key>
  229. <PropertyRef Name="Code_Point" />
  230. </Key>
  231. <Property Name="Code_Point" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  232. <Property Name="Name_Point" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  233. <NavigationProperty Name="Orders" Relationship="Self.FK__Orders__Code_Poi__36B12243" FromRole="Point_Issue" ToRole="Orders" />
  234. </EntityType>
  235. <EntityType Name="Products">
  236. <Key>
  237. <PropertyRef Name="Code_Product" />
  238. </Key>
  239. <Property Name="Code_Product" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  240. <Property Name="Name_Product" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  241. <Property Name="Description_Product" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  242. <Property Name="Code_Manufacturer" Type="Int32" Nullable="false" />
  243. <Property Name="Price_Product" Type="Decimal" Precision="18" Scale="2" Nullable="false" />
  244. <Property Name="Discount_Product" Type="Decimal" Precision="18" Scale="2" Nullable="false" />
  245. <Property Name="Photo_Product" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  246. <NavigationProperty Name="Manufacturer" Relationship="Self.FK__Products__Code_M__300424B4" FromRole="Products" ToRole="Manufacturer" />
  247. <NavigationProperty Name="Orders_Products" Relationship="Self.FK__Orders_Pr__Code___398D8EEE" FromRole="Products" ToRole="Orders_Products" />
  248. <NavigationProperty Name="Warehouse" Relationship="Self.FK__Warehouse__Code___31EC6D26" FromRole="Products" ToRole="Warehouse" />
  249. </EntityType>
  250. <EntityType Name="Roles">
  251. <Key>
  252. <PropertyRef Name="Code_Role" />
  253. </Key>
  254. <Property Name="Code_Role" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  255. <Property Name="Name_Role" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
  256. <NavigationProperty Name="Users" Relationship="Self.FK__Users__Code_Role__2B3F6F97" FromRole="Roles" ToRole="Users" />
  257. </EntityType>
  258. <EntityType Name="Users">
  259. <Key>
  260. <PropertyRef Name="Code_User" />
  261. </Key>
  262. <Property Name="Code_User" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  263. <Property Name="Code_Role" Type="Int32" />
  264. <Property Name="Surname_User" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
  265. <Property Name="Name_User" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
  266. <Property Name="Midname_User" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
  267. <Property Name="Login_User" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
  268. <Property Name="Password_User" Type="String" MaxLength="25" FixedLength="false" Unicode="true" Nullable="false" />
  269. <NavigationProperty Name="Roles" Relationship="Self.FK__Users__Code_Role__2B3F6F97" FromRole="Users" ToRole="Roles" />
  270. </EntityType>
  271. <EntityType Name="Orders_Products">
  272. <Key>
  273. <PropertyRef Name="Code_Order" />
  274. <PropertyRef Name="Code_Product" />
  275. <PropertyRef Name="Count_Product_Order" />
  276. </Key>
  277. <Property Name="Code_Order" Type="Int32" Nullable="false" />
  278. <Property Name="Code_Product" Type="Int32" Nullable="false" />
  279. <Property Name="Count_Product_Order" Type="Int32" Nullable="false" />
  280. <NavigationProperty Name="Orders" Relationship="Self.FK__Orders_Pr__Code___38996AB5" FromRole="Orders_Products" ToRole="Orders" />
  281. <NavigationProperty Name="Products" Relationship="Self.FK__Orders_Pr__Code___398D8EEE" FromRole="Orders_Products" ToRole="Products" />
  282. </EntityType>
  283. <EntityType Name="Warehouse">
  284. <Key>
  285. <PropertyRef Name="Code_Product" />
  286. <PropertyRef Name="Count_Product" />
  287. </Key>
  288. <Property Name="Code_Product" Type="Int32" Nullable="false" />
  289. <Property Name="Count_Product" Type="Int32" Nullable="false" />
  290. <NavigationProperty Name="Products" Relationship="Self.FK__Warehouse__Code___31EC6D26" FromRole="Warehouse" ToRole="Products" />
  291. </EntityType>
  292. <Association Name="FK__Products__Code_M__300424B4">
  293. <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="1" />
  294. <End Role="Products" Type="Self.Products" Multiplicity="*" />
  295. <ReferentialConstraint>
  296. <Principal Role="Manufacturer">
  297. <PropertyRef Name="Code_Manufacturer" />
  298. </Principal>
  299. <Dependent Role="Products">
  300. <PropertyRef Name="Code_Manufacturer" />
  301. </Dependent>
  302. </ReferentialConstraint>
  303. </Association>
  304. <Association Name="FK__Orders__Code_Poi__36B12243">
  305. <End Role="Point_Issue" Type="Self.Point_Issue" Multiplicity="1" />
  306. <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
  307. <ReferentialConstraint>
  308. <Principal Role="Point_Issue">
  309. <PropertyRef Name="Code_Point" />
  310. </Principal>
  311. <Dependent Role="Orders">
  312. <PropertyRef Name="Code_Point" />
  313. </Dependent>
  314. </ReferentialConstraint>
  315. </Association>
  316. <Association Name="FK__Orders_Pr__Code___38996AB5">
  317. <End Role="Orders" Type="Self.Orders" Multiplicity="1" />
  318. <End Role="Orders_Products" Type="Self.Orders_Products" Multiplicity="*" />
  319. <ReferentialConstraint>
  320. <Principal Role="Orders">
  321. <PropertyRef Name="Code_Order" />
  322. </Principal>
  323. <Dependent Role="Orders_Products">
  324. <PropertyRef Name="Code_Order" />
  325. </Dependent>
  326. </ReferentialConstraint>
  327. </Association>
  328. <Association Name="FK__Orders_Pr__Code___398D8EEE">
  329. <End Role="Products" Type="Self.Products" Multiplicity="1" />
  330. <End Role="Orders_Products" Type="Self.Orders_Products" Multiplicity="*" />
  331. <ReferentialConstraint>
  332. <Principal Role="Products">
  333. <PropertyRef Name="Code_Product" />
  334. </Principal>
  335. <Dependent Role="Orders_Products">
  336. <PropertyRef Name="Code_Product" />
  337. </Dependent>
  338. </ReferentialConstraint>
  339. </Association>
  340. <Association Name="FK__Warehouse__Code___31EC6D26">
  341. <End Role="Products" Type="Self.Products" Multiplicity="1" />
  342. <End Role="Warehouse" Type="Self.Warehouse" Multiplicity="*" />
  343. <ReferentialConstraint>
  344. <Principal Role="Products">
  345. <PropertyRef Name="Code_Product" />
  346. </Principal>
  347. <Dependent Role="Warehouse">
  348. <PropertyRef Name="Code_Product" />
  349. </Dependent>
  350. </ReferentialConstraint>
  351. </Association>
  352. <Association Name="FK__Users__Code_Role__2B3F6F97">
  353. <End Role="Roles" Type="Self.Roles" Multiplicity="0..1" />
  354. <End Role="Users" Type="Self.Users" Multiplicity="*" />
  355. <ReferentialConstraint>
  356. <Principal Role="Roles">
  357. <PropertyRef Name="Code_Role" />
  358. </Principal>
  359. <Dependent Role="Users">
  360. <PropertyRef Name="Code_Role" />
  361. </Dependent>
  362. </ReferentialConstraint>
  363. </Association>
  364. <EntityContainer Name="DataBaseEntities" annotation:LazyLoadingEnabled="true">
  365. <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" />
  366. <EntitySet Name="Orders" EntityType="Self.Orders" />
  367. <EntitySet Name="Point_Issue" EntityType="Self.Point_Issue" />
  368. <EntitySet Name="Products" EntityType="Self.Products" />
  369. <EntitySet Name="Roles" EntityType="Self.Roles" />
  370. <EntitySet Name="Users" EntityType="Self.Users" />
  371. <EntitySet Name="Orders_Products" EntityType="Self.Orders_Products" />
  372. <EntitySet Name="Warehouse" EntityType="Self.Warehouse" />
  373. <AssociationSet Name="FK__Products__Code_M__300424B4" Association="Self.FK__Products__Code_M__300424B4">
  374. <End Role="Manufacturer" EntitySet="Manufacturer" />
  375. <End Role="Products" EntitySet="Products" />
  376. </AssociationSet>
  377. <AssociationSet Name="FK__Orders__Code_Poi__36B12243" Association="Self.FK__Orders__Code_Poi__36B12243">
  378. <End Role="Point_Issue" EntitySet="Point_Issue" />
  379. <End Role="Orders" EntitySet="Orders" />
  380. </AssociationSet>
  381. <AssociationSet Name="FK__Orders_Pr__Code___38996AB5" Association="Self.FK__Orders_Pr__Code___38996AB5">
  382. <End Role="Orders" EntitySet="Orders" />
  383. <End Role="Orders_Products" EntitySet="Orders_Products" />
  384. </AssociationSet>
  385. <AssociationSet Name="FK__Orders_Pr__Code___398D8EEE" Association="Self.FK__Orders_Pr__Code___398D8EEE">
  386. <End Role="Products" EntitySet="Products" />
  387. <End Role="Orders_Products" EntitySet="Orders_Products" />
  388. </AssociationSet>
  389. <AssociationSet Name="FK__Warehouse__Code___31EC6D26" Association="Self.FK__Warehouse__Code___31EC6D26">
  390. <End Role="Products" EntitySet="Products" />
  391. <End Role="Warehouse" EntitySet="Warehouse" />
  392. </AssociationSet>
  393. <AssociationSet Name="FK__Users__Code_Role__2B3F6F97" Association="Self.FK__Users__Code_Role__2B3F6F97">
  394. <End Role="Roles" EntitySet="Roles" />
  395. <End Role="Users" EntitySet="Users" />
  396. </AssociationSet>
  397. </EntityContainer>
  398. </Schema>
  399. </edmx:ConceptualModels>
  400. <!-- C-S mapping content -->
  401. <edmx:Mappings>
  402. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  403. <EntityContainerMapping StorageEntityContainer="Хранилище user123ModelContainer" CdmEntityContainer="DataBaseEntities">
  404. <EntitySetMapping Name="Manufacturer">
  405. <EntityTypeMapping TypeName="user123Model.Manufacturer">
  406. <MappingFragment StoreEntitySet="Manufacturer">
  407. <ScalarProperty Name="Code_Manufacturer" ColumnName="Code_Manufacturer" />
  408. <ScalarProperty Name="Name_Manufacturer" ColumnName="Name_Manufacturer" />
  409. </MappingFragment>
  410. </EntityTypeMapping>
  411. </EntitySetMapping>
  412. <EntitySetMapping Name="Orders">
  413. <EntityTypeMapping TypeName="user123Model.Orders">
  414. <MappingFragment StoreEntitySet="Orders">
  415. <ScalarProperty Name="Code_Order" ColumnName="Code_Order" />
  416. <ScalarProperty Name="Code_Point" ColumnName="Code_Point" />
  417. <ScalarProperty Name="Amount_Order" ColumnName="Amount_Order" />
  418. <ScalarProperty Name="Date_Delivery" ColumnName="Date_Delivery" />
  419. <ScalarProperty Name="Get_Code" ColumnName="Get_Code" />
  420. </MappingFragment>
  421. </EntityTypeMapping>
  422. </EntitySetMapping>
  423. <EntitySetMapping Name="Point_Issue">
  424. <EntityTypeMapping TypeName="user123Model.Point_Issue">
  425. <MappingFragment StoreEntitySet="Point_Issue">
  426. <ScalarProperty Name="Code_Point" ColumnName="Code_Point" />
  427. <ScalarProperty Name="Name_Point" ColumnName="Name_Point" />
  428. </MappingFragment>
  429. </EntityTypeMapping>
  430. </EntitySetMapping>
  431. <EntitySetMapping Name="Products">
  432. <EntityTypeMapping TypeName="user123Model.Products">
  433. <MappingFragment StoreEntitySet="Products">
  434. <ScalarProperty Name="Code_Product" ColumnName="Code_Product" />
  435. <ScalarProperty Name="Name_Product" ColumnName="Name_Product" />
  436. <ScalarProperty Name="Description_Product" ColumnName="Description_Product" />
  437. <ScalarProperty Name="Code_Manufacturer" ColumnName="Code_Manufacturer" />
  438. <ScalarProperty Name="Price_Product" ColumnName="Price_Product" />
  439. <ScalarProperty Name="Discount_Product" ColumnName="Discount_Product" />
  440. <ScalarProperty Name="Photo_Product" ColumnName="Photo_Product" />
  441. </MappingFragment>
  442. </EntityTypeMapping>
  443. </EntitySetMapping>
  444. <EntitySetMapping Name="Roles">
  445. <EntityTypeMapping TypeName="user123Model.Roles">
  446. <MappingFragment StoreEntitySet="Roles">
  447. <ScalarProperty Name="Code_Role" ColumnName="Code_Role" />
  448. <ScalarProperty Name="Name_Role" ColumnName="Name_Role" />
  449. </MappingFragment>
  450. </EntityTypeMapping>
  451. </EntitySetMapping>
  452. <EntitySetMapping Name="Users">
  453. <EntityTypeMapping TypeName="user123Model.Users">
  454. <MappingFragment StoreEntitySet="Users">
  455. <ScalarProperty Name="Code_User" ColumnName="Code_User" />
  456. <ScalarProperty Name="Code_Role" ColumnName="Code_Role" />
  457. <ScalarProperty Name="Surname_User" ColumnName="Surname_User" />
  458. <ScalarProperty Name="Name_User" ColumnName="Name_User" />
  459. <ScalarProperty Name="Midname_User" ColumnName="Midname_User" />
  460. <ScalarProperty Name="Login_User" ColumnName="Login_User" />
  461. <ScalarProperty Name="Password_User" ColumnName="Password_User" />
  462. </MappingFragment>
  463. </EntityTypeMapping>
  464. </EntitySetMapping>
  465. <EntitySetMapping Name="Orders_Products">
  466. <EntityTypeMapping TypeName="user123Model.Orders_Products">
  467. <MappingFragment StoreEntitySet="Orders_Products">
  468. <ScalarProperty Name="Code_Order" ColumnName="Code_Order" />
  469. <ScalarProperty Name="Code_Product" ColumnName="Code_Product" />
  470. <ScalarProperty Name="Count_Product_Order" ColumnName="Count_Product_Order" />
  471. </MappingFragment>
  472. </EntityTypeMapping>
  473. </EntitySetMapping>
  474. <EntitySetMapping Name="Warehouse">
  475. <EntityTypeMapping TypeName="user123Model.Warehouse">
  476. <MappingFragment StoreEntitySet="Warehouse">
  477. <ScalarProperty Name="Code_Product" ColumnName="Code_Product" />
  478. <ScalarProperty Name="Count_Product" ColumnName="Count_Product" />
  479. </MappingFragment>
  480. </EntityTypeMapping>
  481. </EntitySetMapping>
  482. </EntityContainerMapping>
  483. </Mapping>
  484. </edmx:Mappings>
  485. </edmx:Runtime>
  486. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  487. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  488. <Connection>
  489. <DesignerInfoPropertySet>
  490. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  491. </DesignerInfoPropertySet>
  492. </Connection>
  493. <Options>
  494. <DesignerInfoPropertySet>
  495. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  496. <DesignerProperty Name="EnablePluralization" Value="false" />
  497. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  498. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  499. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  500. </DesignerInfoPropertySet>
  501. </Options>
  502. <!-- Diagram content (shape and connector positions) -->
  503. <Diagrams></Diagrams>
  504. </Designer>
  505. </edmx:Edmx>