Model1.edmx 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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="Хранилище P_UP_VenediktovModel" 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="Order">
  9. <Key>
  10. <PropertyRef Name="OrderID" />
  11. </Key>
  12. <Property Name="OrderID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="OrderStructure" Type="nvarchar(max)" Nullable="false" />
  14. <Property Name="OrderStatus" Type="nvarchar(max)" Nullable="false" />
  15. <Property Name="OrderDate" Type="datetime" Nullable="false" />
  16. <Property Name="OrderDeliveryDate" Type="datetime" Nullable="false" />
  17. <Property Name="OrderPickupPoint" Type="nvarchar(max)" Nullable="false" />
  18. <Property Name="OrderClient" Type="nvarchar(max)" />
  19. <Property Name="OrderCode" Type="int" Nullable="false" />
  20. </EntityType>
  21. <EntityType Name="OrderProduct">
  22. <Key>
  23. <PropertyRef Name="OrderID" />
  24. <PropertyRef Name="ProductArticleNumber" />
  25. </Key>
  26. <Property Name="OrderID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  27. <Property Name="ProductArticleNumber" Type="nvarchar" MaxLength="100" Nullable="false" />
  28. <Property Name="ProductCont" Type="int" Nullable="false" />
  29. </EntityType>
  30. <EntityType Name="PickupPoint">
  31. <Key>
  32. <PropertyRef Name="Id_PickupPoint" />
  33. </Key>
  34. <Property Name="Id_PickupPoint" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  35. <Property Name="AddressPP" Type="nvarchar(max)" Nullable="false" />
  36. </EntityType>
  37. <EntityType Name="Product">
  38. <Key>
  39. <PropertyRef Name="ProductArticleNumber" />
  40. </Key>
  41. <Property Name="ProductArticleNumber" Type="nvarchar" MaxLength="100" Nullable="false" />
  42. <Property Name="ProductName" Type="nvarchar(max)" Nullable="false" />
  43. <Property Name="ProductDescription" Type="nvarchar(max)" Nullable="false" />
  44. <Property Name="ProductCategory" Type="nvarchar(max)" Nullable="false" />
  45. <Property Name="ProductPhoto" Type="image" />
  46. <Property Name="ProductManufacturer" Type="nvarchar(max)" Nullable="false" />
  47. <Property Name="ProductCost" Type="decimal" Precision="19" Scale="4" Nullable="false" />
  48. <Property Name="ProductDiscountAmount" Type="tinyint" />
  49. <Property Name="ProductQuantityInStock" Type="int" Nullable="false" />
  50. <Property Name="Id_Supplier" Type="int" Nullable="false" />
  51. <Property Name="MaxAmount" Type="int" Nullable="false" />
  52. <Property Name="Id_Measurement" Type="int" Nullable="false" />
  53. </EntityType>
  54. <EntityType Name="ProductMeasurement">
  55. <Key>
  56. <PropertyRef Name="Id_Measurement" />
  57. </Key>
  58. <Property Name="Id_Measurement" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  59. <Property Name="NameMeasurement" Type="nvarchar(max)" Nullable="false" />
  60. </EntityType>
  61. <EntityType Name="ProductSupplier">
  62. <Key>
  63. <PropertyRef Name="Id_Supplier" />
  64. </Key>
  65. <Property Name="Id_Supplier" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  66. <Property Name="SupplierName" Type="nvarchar(max)" Nullable="false" />
  67. </EntityType>
  68. <EntityType Name="Role">
  69. <Key>
  70. <PropertyRef Name="RoleID" />
  71. </Key>
  72. <Property Name="RoleID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  73. <Property Name="RoleName" Type="nvarchar" MaxLength="100" Nullable="false" />
  74. </EntityType>
  75. <EntityType Name="User">
  76. <Key>
  77. <PropertyRef Name="UserID" />
  78. </Key>
  79. <Property Name="UserID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  80. <Property Name="UserSurname" Type="nvarchar" MaxLength="100" Nullable="false" />
  81. <Property Name="UserName" Type="nvarchar" MaxLength="100" Nullable="false" />
  82. <Property Name="UserPatronymic" Type="nvarchar" MaxLength="100" Nullable="false" />
  83. <Property Name="UserLogin" Type="nvarchar(max)" Nullable="false" />
  84. <Property Name="UserPassword" Type="nvarchar(max)" Nullable="false" />
  85. <Property Name="UserRole" Type="int" Nullable="false" />
  86. </EntityType>
  87. <Association Name="FK__OrderProd__Order__403A8C7D">
  88. <End Role="Order" Type="Self.Order" Multiplicity="1" />
  89. <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
  90. <ReferentialConstraint>
  91. <Principal Role="Order">
  92. <PropertyRef Name="OrderID" />
  93. </Principal>
  94. <Dependent Role="OrderProduct">
  95. <PropertyRef Name="OrderID" />
  96. </Dependent>
  97. </ReferentialConstraint>
  98. </Association>
  99. <Association Name="FK__OrderProd__Produ__412EB0B6">
  100. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  101. <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
  102. <ReferentialConstraint>
  103. <Principal Role="Product">
  104. <PropertyRef Name="ProductArticleNumber" />
  105. </Principal>
  106. <Dependent Role="OrderProduct">
  107. <PropertyRef Name="ProductArticleNumber" />
  108. </Dependent>
  109. </ReferentialConstraint>
  110. </Association>
  111. <Association Name="FK__User__UserRole__398D8EEE">
  112. <End Role="Role" Type="Self.Role" Multiplicity="1" />
  113. <End Role="User" Type="Self.User" Multiplicity="*" />
  114. <ReferentialConstraint>
  115. <Principal Role="Role">
  116. <PropertyRef Name="RoleID" />
  117. </Principal>
  118. <Dependent Role="User">
  119. <PropertyRef Name="UserRole" />
  120. </Dependent>
  121. </ReferentialConstraint>
  122. </Association>
  123. <Association Name="FK_Product_ProductMeasurement">
  124. <End Role="ProductMeasurement" Type="Self.ProductMeasurement" Multiplicity="1" />
  125. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  126. <ReferentialConstraint>
  127. <Principal Role="ProductMeasurement">
  128. <PropertyRef Name="Id_Measurement" />
  129. </Principal>
  130. <Dependent Role="Product">
  131. <PropertyRef Name="Id_Measurement" />
  132. </Dependent>
  133. </ReferentialConstraint>
  134. </Association>
  135. <Association Name="FK_Product_ProductSupplier">
  136. <End Role="ProductSupplier" Type="Self.ProductSupplier" Multiplicity="1" />
  137. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  138. <ReferentialConstraint>
  139. <Principal Role="ProductSupplier">
  140. <PropertyRef Name="Id_Supplier" />
  141. </Principal>
  142. <Dependent Role="Product">
  143. <PropertyRef Name="Id_Supplier" />
  144. </Dependent>
  145. </ReferentialConstraint>
  146. </Association>
  147. <EntityContainer Name="Хранилище P_UP_VenediktovModelContainer">
  148. <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
  149. <EntitySet Name="OrderProduct" EntityType="Self.OrderProduct" Schema="dbo" store:Type="Tables" />
  150. <EntitySet Name="PickupPoint" EntityType="Self.PickupPoint" Schema="dbo" store:Type="Tables" />
  151. <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
  152. <EntitySet Name="ProductMeasurement" EntityType="Self.ProductMeasurement" Schema="dbo" store:Type="Tables" />
  153. <EntitySet Name="ProductSupplier" EntityType="Self.ProductSupplier" Schema="dbo" store:Type="Tables" />
  154. <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
  155. <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
  156. <AssociationSet Name="FK__OrderProd__Order__403A8C7D" Association="Self.FK__OrderProd__Order__403A8C7D">
  157. <End Role="Order" EntitySet="Order" />
  158. <End Role="OrderProduct" EntitySet="OrderProduct" />
  159. </AssociationSet>
  160. <AssociationSet Name="FK__OrderProd__Produ__412EB0B6" Association="Self.FK__OrderProd__Produ__412EB0B6">
  161. <End Role="Product" EntitySet="Product" />
  162. <End Role="OrderProduct" EntitySet="OrderProduct" />
  163. </AssociationSet>
  164. <AssociationSet Name="FK__User__UserRole__398D8EEE" Association="Self.FK__User__UserRole__398D8EEE">
  165. <End Role="Role" EntitySet="Role" />
  166. <End Role="User" EntitySet="User" />
  167. </AssociationSet>
  168. <AssociationSet Name="FK_Product_ProductMeasurement" Association="Self.FK_Product_ProductMeasurement">
  169. <End Role="ProductMeasurement" EntitySet="ProductMeasurement" />
  170. <End Role="Product" EntitySet="Product" />
  171. </AssociationSet>
  172. <AssociationSet Name="FK_Product_ProductSupplier" Association="Self.FK_Product_ProductSupplier">
  173. <End Role="ProductSupplier" EntitySet="ProductSupplier" />
  174. <End Role="Product" EntitySet="Product" />
  175. </AssociationSet>
  176. </EntityContainer>
  177. </Schema>
  178. </edmx:StorageModels>
  179. <!-- CSDL content -->
  180. <edmx:ConceptualModels>
  181. <Schema Namespace="P_UP_VenediktovModel" 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">
  182. <EntityType Name="Order">
  183. <Key>
  184. <PropertyRef Name="OrderID" />
  185. </Key>
  186. <Property Name="OrderID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  187. <Property Name="OrderStructure" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  188. <Property Name="OrderStatus" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  189. <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
  190. <Property Name="OrderDeliveryDate" Type="DateTime" Nullable="false" Precision="3" />
  191. <Property Name="OrderPickupPoint" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  192. <Property Name="OrderClient" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  193. <Property Name="OrderCode" Type="Int32" Nullable="false" />
  194. <NavigationProperty Name="OrderProduct" Relationship="Self.FK__OrderProd__Order__403A8C7D" FromRole="Order" ToRole="OrderProduct" />
  195. </EntityType>
  196. <EntityType Name="OrderProduct">
  197. <Key>
  198. <PropertyRef Name="OrderID" />
  199. <PropertyRef Name="ProductArticleNumber" />
  200. </Key>
  201. <Property Name="OrderID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  202. <Property Name="ProductArticleNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  203. <Property Name="ProductCont" Type="Int32" Nullable="false" />
  204. <NavigationProperty Name="Order" Relationship="Self.FK__OrderProd__Order__403A8C7D" FromRole="OrderProduct" ToRole="Order" />
  205. <NavigationProperty Name="Product" Relationship="Self.FK__OrderProd__Produ__412EB0B6" FromRole="OrderProduct" ToRole="Product" />
  206. </EntityType>
  207. <EntityType Name="PickupPoint">
  208. <Key>
  209. <PropertyRef Name="Id_PickupPoint" />
  210. </Key>
  211. <Property Name="Id_PickupPoint" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  212. <Property Name="AddressPP" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  213. </EntityType>
  214. <EntityType Name="Product">
  215. <Key>
  216. <PropertyRef Name="ProductArticleNumber" />
  217. </Key>
  218. <Property Name="ProductArticleNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  219. <Property Name="ProductName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  220. <Property Name="ProductDescription" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  221. <Property Name="ProductCategory" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  222. <Property Name="ProductPhoto" Type="Binary" MaxLength="Max" FixedLength="false" />
  223. <Property Name="ProductManufacturer" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  224. <Property Name="ProductCost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  225. <Property Name="ProductDiscountAmount" Type="Byte" />
  226. <Property Name="ProductQuantityInStock" Type="Int32" Nullable="false" />
  227. <Property Name="Id_Supplier" Type="Int32" Nullable="false" />
  228. <Property Name="MaxAmount" Type="Int32" Nullable="false" />
  229. <Property Name="Id_Measurement" Type="Int32" Nullable="false" />
  230. <NavigationProperty Name="OrderProduct" Relationship="Self.FK__OrderProd__Produ__412EB0B6" FromRole="Product" ToRole="OrderProduct" />
  231. <NavigationProperty Name="ProductMeasurement" Relationship="Self.FK_Product_ProductMeasurement" FromRole="Product" ToRole="ProductMeasurement" />
  232. <NavigationProperty Name="ProductSupplier" Relationship="Self.FK_Product_ProductSupplier" FromRole="Product" ToRole="ProductSupplier" />
  233. </EntityType>
  234. <EntityType Name="ProductMeasurement">
  235. <Key>
  236. <PropertyRef Name="Id_Measurement" />
  237. </Key>
  238. <Property Name="Id_Measurement" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  239. <Property Name="NameMeasurement" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  240. <NavigationProperty Name="Product" Relationship="Self.FK_Product_ProductMeasurement" FromRole="ProductMeasurement" ToRole="Product" />
  241. </EntityType>
  242. <EntityType Name="ProductSupplier">
  243. <Key>
  244. <PropertyRef Name="Id_Supplier" />
  245. </Key>
  246. <Property Name="Id_Supplier" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  247. <Property Name="SupplierName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  248. <NavigationProperty Name="Product" Relationship="Self.FK_Product_ProductSupplier" FromRole="ProductSupplier" ToRole="Product" />
  249. </EntityType>
  250. <EntityType Name="Role">
  251. <Key>
  252. <PropertyRef Name="RoleID" />
  253. </Key>
  254. <Property Name="RoleID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  255. <Property Name="RoleName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  256. <NavigationProperty Name="User" Relationship="Self.FK__User__UserRole__398D8EEE" FromRole="Role" ToRole="User" />
  257. </EntityType>
  258. <EntityType Name="User">
  259. <Key>
  260. <PropertyRef Name="UserID" />
  261. </Key>
  262. <Property Name="UserID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  263. <Property Name="UserSurname" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  264. <Property Name="UserName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  265. <Property Name="UserPatronymic" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  266. <Property Name="UserLogin" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  267. <Property Name="UserPassword" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  268. <Property Name="UserRole" Type="Int32" Nullable="false" />
  269. <NavigationProperty Name="Role" Relationship="Self.FK__User__UserRole__398D8EEE" FromRole="User" ToRole="Role" />
  270. </EntityType>
  271. <Association Name="FK__OrderProd__Order__403A8C7D">
  272. <End Role="Order" Type="Self.Order" Multiplicity="1" />
  273. <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
  274. <ReferentialConstraint>
  275. <Principal Role="Order">
  276. <PropertyRef Name="OrderID" />
  277. </Principal>
  278. <Dependent Role="OrderProduct">
  279. <PropertyRef Name="OrderID" />
  280. </Dependent>
  281. </ReferentialConstraint>
  282. </Association>
  283. <Association Name="FK__OrderProd__Produ__412EB0B6">
  284. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  285. <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
  286. <ReferentialConstraint>
  287. <Principal Role="Product">
  288. <PropertyRef Name="ProductArticleNumber" />
  289. </Principal>
  290. <Dependent Role="OrderProduct">
  291. <PropertyRef Name="ProductArticleNumber" />
  292. </Dependent>
  293. </ReferentialConstraint>
  294. </Association>
  295. <Association Name="FK_Product_ProductMeasurement">
  296. <End Role="ProductMeasurement" Type="Self.ProductMeasurement" Multiplicity="1" />
  297. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  298. <ReferentialConstraint>
  299. <Principal Role="ProductMeasurement">
  300. <PropertyRef Name="Id_Measurement" />
  301. </Principal>
  302. <Dependent Role="Product">
  303. <PropertyRef Name="Id_Measurement" />
  304. </Dependent>
  305. </ReferentialConstraint>
  306. </Association>
  307. <Association Name="FK_Product_ProductSupplier">
  308. <End Role="ProductSupplier" Type="Self.ProductSupplier" Multiplicity="1" />
  309. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  310. <ReferentialConstraint>
  311. <Principal Role="ProductSupplier">
  312. <PropertyRef Name="Id_Supplier" />
  313. </Principal>
  314. <Dependent Role="Product">
  315. <PropertyRef Name="Id_Supplier" />
  316. </Dependent>
  317. </ReferentialConstraint>
  318. </Association>
  319. <Association Name="FK__User__UserRole__398D8EEE">
  320. <End Role="Role" Type="Self.Role" Multiplicity="1" />
  321. <End Role="User" Type="Self.User" Multiplicity="*" />
  322. <ReferentialConstraint>
  323. <Principal Role="Role">
  324. <PropertyRef Name="RoleID" />
  325. </Principal>
  326. <Dependent Role="User">
  327. <PropertyRef Name="UserRole" />
  328. </Dependent>
  329. </ReferentialConstraint>
  330. </Association>
  331. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  332. <EntitySet Name="Order" EntityType="Self.Order" />
  333. <EntitySet Name="OrderProduct" EntityType="Self.OrderProduct" />
  334. <EntitySet Name="PickupPoint" EntityType="Self.PickupPoint" />
  335. <EntitySet Name="Product" EntityType="Self.Product" />
  336. <EntitySet Name="ProductMeasurement" EntityType="Self.ProductMeasurement" />
  337. <EntitySet Name="ProductSupplier" EntityType="Self.ProductSupplier" />
  338. <EntitySet Name="Role" EntityType="Self.Role" />
  339. <EntitySet Name="User" EntityType="Self.User" />
  340. <AssociationSet Name="FK__OrderProd__Order__403A8C7D" Association="Self.FK__OrderProd__Order__403A8C7D">
  341. <End Role="Order" EntitySet="Order" />
  342. <End Role="OrderProduct" EntitySet="OrderProduct" />
  343. </AssociationSet>
  344. <AssociationSet Name="FK__OrderProd__Produ__412EB0B6" Association="Self.FK__OrderProd__Produ__412EB0B6">
  345. <End Role="Product" EntitySet="Product" />
  346. <End Role="OrderProduct" EntitySet="OrderProduct" />
  347. </AssociationSet>
  348. <AssociationSet Name="FK_Product_ProductMeasurement" Association="Self.FK_Product_ProductMeasurement">
  349. <End Role="ProductMeasurement" EntitySet="ProductMeasurement" />
  350. <End Role="Product" EntitySet="Product" />
  351. </AssociationSet>
  352. <AssociationSet Name="FK_Product_ProductSupplier" Association="Self.FK_Product_ProductSupplier">
  353. <End Role="ProductSupplier" EntitySet="ProductSupplier" />
  354. <End Role="Product" EntitySet="Product" />
  355. </AssociationSet>
  356. <AssociationSet Name="FK__User__UserRole__398D8EEE" Association="Self.FK__User__UserRole__398D8EEE">
  357. <End Role="Role" EntitySet="Role" />
  358. <End Role="User" EntitySet="User" />
  359. </AssociationSet>
  360. </EntityContainer>
  361. </Schema>
  362. </edmx:ConceptualModels>
  363. <!-- C-S mapping content -->
  364. <edmx:Mappings>
  365. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  366. <EntityContainerMapping StorageEntityContainer="Хранилище P_UP_VenediktovModelContainer" CdmEntityContainer="Entities">
  367. <EntitySetMapping Name="Order">
  368. <EntityTypeMapping TypeName="P_UP_VenediktovModel.Order">
  369. <MappingFragment StoreEntitySet="Order">
  370. <ScalarProperty Name="OrderID" ColumnName="OrderID" />
  371. <ScalarProperty Name="OrderStructure" ColumnName="OrderStructure" />
  372. <ScalarProperty Name="OrderStatus" ColumnName="OrderStatus" />
  373. <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
  374. <ScalarProperty Name="OrderDeliveryDate" ColumnName="OrderDeliveryDate" />
  375. <ScalarProperty Name="OrderPickupPoint" ColumnName="OrderPickupPoint" />
  376. <ScalarProperty Name="OrderClient" ColumnName="OrderClient" />
  377. <ScalarProperty Name="OrderCode" ColumnName="OrderCode" />
  378. </MappingFragment>
  379. </EntityTypeMapping>
  380. </EntitySetMapping>
  381. <EntitySetMapping Name="OrderProduct">
  382. <EntityTypeMapping TypeName="P_UP_VenediktovModel.OrderProduct">
  383. <MappingFragment StoreEntitySet="OrderProduct">
  384. <ScalarProperty Name="OrderID" ColumnName="OrderID" />
  385. <ScalarProperty Name="ProductArticleNumber" ColumnName="ProductArticleNumber" />
  386. <ScalarProperty Name="ProductCont" ColumnName="ProductCont" />
  387. </MappingFragment>
  388. </EntityTypeMapping>
  389. </EntitySetMapping>
  390. <EntitySetMapping Name="PickupPoint">
  391. <EntityTypeMapping TypeName="P_UP_VenediktovModel.PickupPoint">
  392. <MappingFragment StoreEntitySet="PickupPoint">
  393. <ScalarProperty Name="Id_PickupPoint" ColumnName="Id_PickupPoint" />
  394. <ScalarProperty Name="AddressPP" ColumnName="AddressPP" />
  395. </MappingFragment>
  396. </EntityTypeMapping>
  397. </EntitySetMapping>
  398. <EntitySetMapping Name="Product">
  399. <EntityTypeMapping TypeName="P_UP_VenediktovModel.Product">
  400. <MappingFragment StoreEntitySet="Product">
  401. <ScalarProperty Name="ProductArticleNumber" ColumnName="ProductArticleNumber" />
  402. <ScalarProperty Name="ProductName" ColumnName="ProductName" />
  403. <ScalarProperty Name="ProductDescription" ColumnName="ProductDescription" />
  404. <ScalarProperty Name="ProductCategory" ColumnName="ProductCategory" />
  405. <ScalarProperty Name="ProductPhoto" ColumnName="ProductPhoto" />
  406. <ScalarProperty Name="ProductManufacturer" ColumnName="ProductManufacturer" />
  407. <ScalarProperty Name="ProductCost" ColumnName="ProductCost" />
  408. <ScalarProperty Name="ProductDiscountAmount" ColumnName="ProductDiscountAmount" />
  409. <ScalarProperty Name="ProductQuantityInStock" ColumnName="ProductQuantityInStock" />
  410. <ScalarProperty Name="Id_Supplier" ColumnName="Id_Supplier" />
  411. <ScalarProperty Name="MaxAmount" ColumnName="MaxAmount" />
  412. <ScalarProperty Name="Id_Measurement" ColumnName="Id_Measurement" />
  413. </MappingFragment>
  414. </EntityTypeMapping>
  415. </EntitySetMapping>
  416. <EntitySetMapping Name="ProductMeasurement">
  417. <EntityTypeMapping TypeName="P_UP_VenediktovModel.ProductMeasurement">
  418. <MappingFragment StoreEntitySet="ProductMeasurement">
  419. <ScalarProperty Name="Id_Measurement" ColumnName="Id_Measurement" />
  420. <ScalarProperty Name="NameMeasurement" ColumnName="NameMeasurement" />
  421. </MappingFragment>
  422. </EntityTypeMapping>
  423. </EntitySetMapping>
  424. <EntitySetMapping Name="ProductSupplier">
  425. <EntityTypeMapping TypeName="P_UP_VenediktovModel.ProductSupplier">
  426. <MappingFragment StoreEntitySet="ProductSupplier">
  427. <ScalarProperty Name="Id_Supplier" ColumnName="Id_Supplier" />
  428. <ScalarProperty Name="SupplierName" ColumnName="SupplierName" />
  429. </MappingFragment>
  430. </EntityTypeMapping>
  431. </EntitySetMapping>
  432. <EntitySetMapping Name="Role">
  433. <EntityTypeMapping TypeName="P_UP_VenediktovModel.Role">
  434. <MappingFragment StoreEntitySet="Role">
  435. <ScalarProperty Name="RoleID" ColumnName="RoleID" />
  436. <ScalarProperty Name="RoleName" ColumnName="RoleName" />
  437. </MappingFragment>
  438. </EntityTypeMapping>
  439. </EntitySetMapping>
  440. <EntitySetMapping Name="User">
  441. <EntityTypeMapping TypeName="P_UP_VenediktovModel.User">
  442. <MappingFragment StoreEntitySet="User">
  443. <ScalarProperty Name="UserID" ColumnName="UserID" />
  444. <ScalarProperty Name="UserSurname" ColumnName="UserSurname" />
  445. <ScalarProperty Name="UserName" ColumnName="UserName" />
  446. <ScalarProperty Name="UserPatronymic" ColumnName="UserPatronymic" />
  447. <ScalarProperty Name="UserLogin" ColumnName="UserLogin" />
  448. <ScalarProperty Name="UserPassword" ColumnName="UserPassword" />
  449. <ScalarProperty Name="UserRole" ColumnName="UserRole" />
  450. </MappingFragment>
  451. </EntityTypeMapping>
  452. </EntitySetMapping>
  453. </EntityContainerMapping>
  454. </Mapping>
  455. </edmx:Mappings>
  456. </edmx:Runtime>
  457. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  458. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  459. <Connection>
  460. <DesignerInfoPropertySet>
  461. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  462. </DesignerInfoPropertySet>
  463. </Connection>
  464. <Options>
  465. <DesignerInfoPropertySet>
  466. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  467. <DesignerProperty Name="EnablePluralization" Value="false" />
  468. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  469. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  470. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  471. </DesignerInfoPropertySet>
  472. </Options>
  473. <!-- Diagram content (shape and connector positions) -->
  474. <Diagrams></Diagrams>
  475. </Designer>
  476. </edmx:Edmx>