Model1.edmx 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <edmx:Edmx Version="2.0" xmlns:edmx="http://schemas.microsoft.com/ado/2008/10/edmx">
  3. <!-- EF Runtime content -->
  4. <edmx:Runtime>
  5. <!-- SSDL content -->
  6. <edmx:StorageModels>
  7. <Schema Namespace="Хранилище gr606_sosanModel" Provider="System.Data.SqlClient" ProviderManifestToken="2008" 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/02/edm/ssdl">
  8. <EntityType Name="Address">
  9. <Key>
  10. <PropertyRef Name="IdAddress" />
  11. </Key>
  12. <Property Name="IdAddress" Type="int" Nullable="false" />
  13. <Property Name="Street" Type="nvarchar" MaxLength="100" Nullable="false" />
  14. <Property Name="Number" Type="int" Nullable="false" />
  15. <Property Name="HouseNumber" Type="int" Nullable="false" />
  16. <Property Name="Flat" Type="int" Nullable="false" />
  17. <Property Name="IdEmployee" Type="int" />
  18. </EntityType>
  19. <EntityType Name="CardAmount">
  20. <Key>
  21. <PropertyRef Name="IdCard" />
  22. </Key>
  23. <Property Name="IdCard" Type="int" Nullable="false" />
  24. <Property Name="Sum" Type="money" />
  25. <Property Name="PaymentName" Type="nvarchar" MaxLength="50" />
  26. <Property Name="IdPay" Type="int" />
  27. </EntityType>
  28. <EntityType Name="Cash">
  29. <Key>
  30. <PropertyRef Name="IdCash" />
  31. </Key>
  32. <Property Name="IdCash" Type="int" Nullable="false" />
  33. <Property Name="Sum" Type="money" />
  34. <Property Name="PaymentName" Type="nvarchar" MaxLength="50" />
  35. <Property Name="IdPay" Type="int" />
  36. </EntityType>
  37. <EntityType Name="CashRegister">
  38. <Key>
  39. <PropertyRef Name="IdCashRegistre" />
  40. </Key>
  41. <Property Name="IdCashRegistre" Type="int" Nullable="false" />
  42. <Property Name="IdEmployee" Type="int" />
  43. <Property Name="IdProduct" Type="int" />
  44. <Property Name="IdSurrender" Type="int" />
  45. <Property Name="IdDate" Type="int" />
  46. <Property Name="IdPay" Type="int" />
  47. </EntityType>
  48. <EntityType Name="Dates">
  49. <Key>
  50. <PropertyRef Name="IdDate" />
  51. </Key>
  52. <Property Name="IdDate" Type="int" Nullable="false" />
  53. <Property Name="Date" Type="date" />
  54. </EntityType>
  55. <EntityType Name="Employees">
  56. <Key>
  57. <PropertyRef Name="IdEmployee" />
  58. </Key>
  59. <Property Name="IdEmployee" Type="int" Nullable="false" />
  60. <Property Name="Surname" Type="nvarchar" MaxLength="100" Nullable="false" />
  61. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  62. <Property Name="Patronymic" Type="nvarchar" MaxLength="100" Nullable="false" />
  63. <Property Name="TelephoneNumber" Type="nvarchar" MaxLength="20" Nullable="false" />
  64. <Property Name="Email" Type="nvarchar" MaxLength="50" Nullable="false" />
  65. <Property Name="Login" Type="nvarchar" MaxLength="20" Nullable="false" />
  66. <Property Name="Password" Type="nvarchar" MaxLength="20" Nullable="false" />
  67. </EntityType>
  68. <EntityType Name="PasportDetails">
  69. <Key>
  70. <PropertyRef Name="IdDetail" />
  71. </Key>
  72. <Property Name="IdDetail" Type="int" Nullable="false" />
  73. <Property Name="Number" Type="int" Nullable="false" />
  74. <Property Name="Series" Type="int" Nullable="false" />
  75. <Property Name="IssuedBy" Type="nvarchar" MaxLength="150" Nullable="false" />
  76. <Property Name="IdEmployee" Type="int" />
  77. </EntityType>
  78. <EntityType Name="Payment">
  79. <Key>
  80. <PropertyRef Name="IdPay" />
  81. </Key>
  82. <Property Name="IdPay" Type="int" Nullable="false" />
  83. <Property Name="HistoryAboutPayment" Type="nvarchar" MaxLength="255" />
  84. </EntityType>
  85. <EntityType Name="Product">
  86. <Key>
  87. <PropertyRef Name="IdProduct" />
  88. </Key>
  89. <Property Name="IdProduct" Type="int" Nullable="false" />
  90. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  91. <Property Name="Manufacture" Type="nvarchar" MaxLength="255" Nullable="false" />
  92. <Property Name="ProductGroup" Type="nvarchar" MaxLength="255" Nullable="false" />
  93. <Property Name="Cost" Type="money" Nullable="false" />
  94. <Property Name="TypeOfProduct" Type="nvarchar" MaxLength="100" Nullable="false" />
  95. <Property Name="Bardcode" Type="int" Nullable="false" />
  96. <Property Name="Margin" Type="money" Nullable="false" />
  97. <Property Name="Quantity" Type="int" Nullable="false" />
  98. <Property Name="Discount" Type="money" Nullable="false" />
  99. <Property Name="Unit" Type="nvarchar" MaxLength="50" Nullable="false" />
  100. <Property Name="VAT" Type="money" />
  101. </EntityType>
  102. <EntityType Name="Revenue">
  103. <Key>
  104. <PropertyRef Name="IdRevenue" />
  105. </Key>
  106. <Property Name="IdRevenue" Type="int" Nullable="false" />
  107. <Property Name="SumRevenue" Type="money" />
  108. <Property Name="IdEmployee" Type="int" />
  109. </EntityType>
  110. <EntityType Name="SuppliersProduct">
  111. <Key>
  112. <PropertyRef Name="IdSupplier" />
  113. </Key>
  114. <Property Name="IdSupplier" Type="int" Nullable="false" />
  115. <Property Name="CompanyName" Type="nvarchar" MaxLength="255" Nullable="false" />
  116. <Property Name="IdSupply" Type="int" Nullable="false" />
  117. </EntityType>
  118. <EntityType Name="SupplyProduct">
  119. <Key>
  120. <PropertyRef Name="IdSupply" />
  121. </Key>
  122. <Property Name="IdSupply" Type="int" Nullable="false" />
  123. <Property Name="QuantityDeliveredProduct" Type="int" Nullable="false" />
  124. <Property Name="CostDeliveredProduct" Type="money" Nullable="false" />
  125. <Property Name="IdProduct" Type="int" Nullable="false" />
  126. </EntityType>
  127. <EntityType Name="SurrenderOfMoney">
  128. <Key>
  129. <PropertyRef Name="IdSurrender" />
  130. </Key>
  131. <Property Name="IdSurrender" Type="int" Nullable="false" />
  132. <Property Name="Sum" Type="money" />
  133. <Property Name="NumberOfChecks" Type="int" />
  134. </EntityType>
  135. <EntityType Name="WorkingShift">
  136. <Key>
  137. <PropertyRef Name="IdShift" />
  138. </Key>
  139. <Property Name="IdShift" Type="int" Nullable="false" />
  140. <Property Name="NameShift" Type="nvarchar" MaxLength="100" Nullable="false" />
  141. <Property Name="IdEmployee" Type="int" />
  142. </EntityType>
  143. <Association Name="FK_Address_Employees">
  144. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  145. <End Role="Address" Type="Self.Address" Multiplicity="*" />
  146. <ReferentialConstraint>
  147. <Principal Role="Employees">
  148. <PropertyRef Name="IdEmployee" />
  149. </Principal>
  150. <Dependent Role="Address">
  151. <PropertyRef Name="IdEmployee" />
  152. </Dependent>
  153. </ReferentialConstraint>
  154. </Association>
  155. <Association Name="FK_CardAmount_Payment">
  156. <End Role="Payment" Type="Self.Payment" Multiplicity="0..1" />
  157. <End Role="CardAmount" Type="Self.CardAmount" Multiplicity="*" />
  158. <ReferentialConstraint>
  159. <Principal Role="Payment">
  160. <PropertyRef Name="IdPay" />
  161. </Principal>
  162. <Dependent Role="CardAmount">
  163. <PropertyRef Name="IdPay" />
  164. </Dependent>
  165. </ReferentialConstraint>
  166. </Association>
  167. <Association Name="FK_Cash_Payment">
  168. <End Role="Payment" Type="Self.Payment" Multiplicity="0..1" />
  169. <End Role="Cash" Type="Self.Cash" Multiplicity="*" />
  170. <ReferentialConstraint>
  171. <Principal Role="Payment">
  172. <PropertyRef Name="IdPay" />
  173. </Principal>
  174. <Dependent Role="Cash">
  175. <PropertyRef Name="IdPay" />
  176. </Dependent>
  177. </ReferentialConstraint>
  178. </Association>
  179. <Association Name="FK_CashRegister_Dates">
  180. <End Role="Dates" Type="Self.Dates" Multiplicity="0..1" />
  181. <End Role="CashRegister" Type="Self.CashRegister" Multiplicity="*" />
  182. <ReferentialConstraint>
  183. <Principal Role="Dates">
  184. <PropertyRef Name="IdDate" />
  185. </Principal>
  186. <Dependent Role="CashRegister">
  187. <PropertyRef Name="IdDate" />
  188. </Dependent>
  189. </ReferentialConstraint>
  190. </Association>
  191. <Association Name="FK_CashRegister_Employees">
  192. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  193. <End Role="CashRegister" Type="Self.CashRegister" Multiplicity="*" />
  194. <ReferentialConstraint>
  195. <Principal Role="Employees">
  196. <PropertyRef Name="IdEmployee" />
  197. </Principal>
  198. <Dependent Role="CashRegister">
  199. <PropertyRef Name="IdEmployee" />
  200. </Dependent>
  201. </ReferentialConstraint>
  202. </Association>
  203. <Association Name="FK_CashRegister_Payment">
  204. <End Role="Payment" Type="Self.Payment" Multiplicity="0..1" />
  205. <End Role="CashRegister" Type="Self.CashRegister" Multiplicity="*" />
  206. <ReferentialConstraint>
  207. <Principal Role="Payment">
  208. <PropertyRef Name="IdPay" />
  209. </Principal>
  210. <Dependent Role="CashRegister">
  211. <PropertyRef Name="IdPay" />
  212. </Dependent>
  213. </ReferentialConstraint>
  214. </Association>
  215. <Association Name="FK_CashRegister_Product">
  216. <End Role="Product" Type="Self.Product" Multiplicity="0..1" />
  217. <End Role="CashRegister" Type="Self.CashRegister" Multiplicity="*" />
  218. <ReferentialConstraint>
  219. <Principal Role="Product">
  220. <PropertyRef Name="IdProduct" />
  221. </Principal>
  222. <Dependent Role="CashRegister">
  223. <PropertyRef Name="IdProduct" />
  224. </Dependent>
  225. </ReferentialConstraint>
  226. </Association>
  227. <Association Name="FK_CashRegister_SurrenderOfMoney">
  228. <End Role="SurrenderOfMoney" Type="Self.SurrenderOfMoney" Multiplicity="0..1" />
  229. <End Role="CashRegister" Type="Self.CashRegister" Multiplicity="*" />
  230. <ReferentialConstraint>
  231. <Principal Role="SurrenderOfMoney">
  232. <PropertyRef Name="IdSurrender" />
  233. </Principal>
  234. <Dependent Role="CashRegister">
  235. <PropertyRef Name="IdSurrender" />
  236. </Dependent>
  237. </ReferentialConstraint>
  238. </Association>
  239. <Association Name="FK_PasportDetails_Employees">
  240. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  241. <End Role="PasportDetails" Type="Self.PasportDetails" Multiplicity="*" />
  242. <ReferentialConstraint>
  243. <Principal Role="Employees">
  244. <PropertyRef Name="IdEmployee" />
  245. </Principal>
  246. <Dependent Role="PasportDetails">
  247. <PropertyRef Name="IdEmployee" />
  248. </Dependent>
  249. </ReferentialConstraint>
  250. </Association>
  251. <Association Name="FK_Revenue_Employees">
  252. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  253. <End Role="Revenue" Type="Self.Revenue" Multiplicity="*" />
  254. <ReferentialConstraint>
  255. <Principal Role="Employees">
  256. <PropertyRef Name="IdEmployee" />
  257. </Principal>
  258. <Dependent Role="Revenue">
  259. <PropertyRef Name="IdEmployee" />
  260. </Dependent>
  261. </ReferentialConstraint>
  262. </Association>
  263. <Association Name="FK_SuppliersProduct_SupplyProduct">
  264. <End Role="SupplyProduct" Type="Self.SupplyProduct" Multiplicity="1" />
  265. <End Role="SuppliersProduct" Type="Self.SuppliersProduct" Multiplicity="*" />
  266. <ReferentialConstraint>
  267. <Principal Role="SupplyProduct">
  268. <PropertyRef Name="IdSupply" />
  269. </Principal>
  270. <Dependent Role="SuppliersProduct">
  271. <PropertyRef Name="IdSupply" />
  272. </Dependent>
  273. </ReferentialConstraint>
  274. </Association>
  275. <Association Name="FK_SupplyProduct_Product">
  276. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  277. <End Role="SupplyProduct" Type="Self.SupplyProduct" Multiplicity="*" />
  278. <ReferentialConstraint>
  279. <Principal Role="Product">
  280. <PropertyRef Name="IdProduct" />
  281. </Principal>
  282. <Dependent Role="SupplyProduct">
  283. <PropertyRef Name="IdProduct" />
  284. </Dependent>
  285. </ReferentialConstraint>
  286. </Association>
  287. <Association Name="FK_WorkingShift_Employees">
  288. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  289. <End Role="WorkingShift" Type="Self.WorkingShift" Multiplicity="*" />
  290. <ReferentialConstraint>
  291. <Principal Role="Employees">
  292. <PropertyRef Name="IdEmployee" />
  293. </Principal>
  294. <Dependent Role="WorkingShift">
  295. <PropertyRef Name="IdEmployee" />
  296. </Dependent>
  297. </ReferentialConstraint>
  298. </Association>
  299. <EntityContainer Name="Хранилище gr606_sosanModelContainer">
  300. <EntitySet Name="Address" EntityType="Self.Address" Schema="dbo" store:Type="Tables" />
  301. <EntitySet Name="CardAmount" EntityType="Self.CardAmount" Schema="dbo" store:Type="Tables" />
  302. <EntitySet Name="Cash" EntityType="Self.Cash" Schema="dbo" store:Type="Tables" />
  303. <EntitySet Name="CashRegister" EntityType="Self.CashRegister" Schema="dbo" store:Type="Tables" />
  304. <EntitySet Name="Dates" EntityType="Self.Dates" Schema="dbo" store:Type="Tables" />
  305. <EntitySet Name="Employees" EntityType="Self.Employees" Schema="dbo" store:Type="Tables" />
  306. <EntitySet Name="PasportDetails" EntityType="Self.PasportDetails" Schema="dbo" store:Type="Tables" />
  307. <EntitySet Name="Payment" EntityType="Self.Payment" Schema="dbo" store:Type="Tables" />
  308. <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
  309. <EntitySet Name="Revenue" EntityType="Self.Revenue" Schema="dbo" store:Type="Tables" />
  310. <EntitySet Name="SuppliersProduct" EntityType="Self.SuppliersProduct" Schema="dbo" store:Type="Tables" />
  311. <EntitySet Name="SupplyProduct" EntityType="Self.SupplyProduct" Schema="dbo" store:Type="Tables" />
  312. <EntitySet Name="SurrenderOfMoney" EntityType="Self.SurrenderOfMoney" Schema="dbo" store:Type="Tables" />
  313. <EntitySet Name="WorkingShift" EntityType="Self.WorkingShift" Schema="dbo" store:Type="Tables" />
  314. <AssociationSet Name="FK_Address_Employees" Association="Self.FK_Address_Employees">
  315. <End Role="Employees" EntitySet="Employees" />
  316. <End Role="Address" EntitySet="Address" />
  317. </AssociationSet>
  318. <AssociationSet Name="FK_CardAmount_Payment" Association="Self.FK_CardAmount_Payment">
  319. <End Role="Payment" EntitySet="Payment" />
  320. <End Role="CardAmount" EntitySet="CardAmount" />
  321. </AssociationSet>
  322. <AssociationSet Name="FK_Cash_Payment" Association="Self.FK_Cash_Payment">
  323. <End Role="Payment" EntitySet="Payment" />
  324. <End Role="Cash" EntitySet="Cash" />
  325. </AssociationSet>
  326. <AssociationSet Name="FK_CashRegister_Dates" Association="Self.FK_CashRegister_Dates">
  327. <End Role="Dates" EntitySet="Dates" />
  328. <End Role="CashRegister" EntitySet="CashRegister" />
  329. </AssociationSet>
  330. <AssociationSet Name="FK_CashRegister_Employees" Association="Self.FK_CashRegister_Employees">
  331. <End Role="Employees" EntitySet="Employees" />
  332. <End Role="CashRegister" EntitySet="CashRegister" />
  333. </AssociationSet>
  334. <AssociationSet Name="FK_CashRegister_Payment" Association="Self.FK_CashRegister_Payment">
  335. <End Role="Payment" EntitySet="Payment" />
  336. <End Role="CashRegister" EntitySet="CashRegister" />
  337. </AssociationSet>
  338. <AssociationSet Name="FK_CashRegister_Product" Association="Self.FK_CashRegister_Product">
  339. <End Role="Product" EntitySet="Product" />
  340. <End Role="CashRegister" EntitySet="CashRegister" />
  341. </AssociationSet>
  342. <AssociationSet Name="FK_CashRegister_SurrenderOfMoney" Association="Self.FK_CashRegister_SurrenderOfMoney">
  343. <End Role="SurrenderOfMoney" EntitySet="SurrenderOfMoney" />
  344. <End Role="CashRegister" EntitySet="CashRegister" />
  345. </AssociationSet>
  346. <AssociationSet Name="FK_PasportDetails_Employees" Association="Self.FK_PasportDetails_Employees">
  347. <End Role="Employees" EntitySet="Employees" />
  348. <End Role="PasportDetails" EntitySet="PasportDetails" />
  349. </AssociationSet>
  350. <AssociationSet Name="FK_Revenue_Employees" Association="Self.FK_Revenue_Employees">
  351. <End Role="Employees" EntitySet="Employees" />
  352. <End Role="Revenue" EntitySet="Revenue" />
  353. </AssociationSet>
  354. <AssociationSet Name="FK_SuppliersProduct_SupplyProduct" Association="Self.FK_SuppliersProduct_SupplyProduct">
  355. <End Role="SupplyProduct" EntitySet="SupplyProduct" />
  356. <End Role="SuppliersProduct" EntitySet="SuppliersProduct" />
  357. </AssociationSet>
  358. <AssociationSet Name="FK_SupplyProduct_Product" Association="Self.FK_SupplyProduct_Product">
  359. <End Role="Product" EntitySet="Product" />
  360. <End Role="SupplyProduct" EntitySet="SupplyProduct" />
  361. </AssociationSet>
  362. <AssociationSet Name="FK_WorkingShift_Employees" Association="Self.FK_WorkingShift_Employees">
  363. <End Role="Employees" EntitySet="Employees" />
  364. <End Role="WorkingShift" EntitySet="WorkingShift" />
  365. </AssociationSet>
  366. </EntityContainer>
  367. </Schema>
  368. </edmx:StorageModels>
  369. <!-- CSDL content -->
  370. <edmx:ConceptualModels>
  371. <Schema Namespace="gr606_sosanModel" Alias="Self" 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/2008/09/edm">
  372. <EntityType Name="Address">
  373. <Key>
  374. <PropertyRef Name="IdAddress" />
  375. </Key>
  376. <Property Name="IdAddress" Type="Int32" Nullable="false" />
  377. <Property Name="Street" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  378. <Property Name="Number" Type="Int32" Nullable="false" />
  379. <Property Name="HouseNumber" Type="Int32" Nullable="false" />
  380. <Property Name="Flat" Type="Int32" Nullable="false" />
  381. <Property Name="IdEmployee" Type="Int32" />
  382. <NavigationProperty Name="Employees" Relationship="Self.FK_Address_Employees" FromRole="Address" ToRole="Employees" />
  383. </EntityType>
  384. <EntityType Name="CardAmount">
  385. <Key>
  386. <PropertyRef Name="IdCard" />
  387. </Key>
  388. <Property Name="IdCard" Type="Int32" Nullable="false" />
  389. <Property Name="Sum" Type="Decimal" Precision="19" Scale="4" />
  390. <Property Name="PaymentName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  391. <Property Name="IdPay" Type="Int32" />
  392. <NavigationProperty Name="Payment" Relationship="Self.FK_CardAmount_Payment" FromRole="CardAmount" ToRole="Payment" />
  393. </EntityType>
  394. <EntityType Name="Cash">
  395. <Key>
  396. <PropertyRef Name="IdCash" />
  397. </Key>
  398. <Property Name="IdCash" Type="Int32" Nullable="false" />
  399. <Property Name="Sum" Type="Decimal" Precision="19" Scale="4" />
  400. <Property Name="PaymentName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  401. <Property Name="IdPay" Type="Int32" />
  402. <NavigationProperty Name="Payment" Relationship="Self.FK_Cash_Payment" FromRole="Cash" ToRole="Payment" />
  403. </EntityType>
  404. <EntityType Name="CashRegister">
  405. <Key>
  406. <PropertyRef Name="IdCashRegistre" />
  407. </Key>
  408. <Property Name="IdCashRegistre" Type="Int32" Nullable="false" />
  409. <Property Name="IdEmployee" Type="Int32" />
  410. <Property Name="IdProduct" Type="Int32" />
  411. <Property Name="IdSurrender" Type="Int32" />
  412. <Property Name="IdDate" Type="Int32" />
  413. <Property Name="IdPay" Type="Int32" />
  414. <NavigationProperty Name="Dates" Relationship="Self.FK_CashRegister_Dates" FromRole="CashRegister" ToRole="Dates" />
  415. <NavigationProperty Name="Employees" Relationship="Self.FK_CashRegister_Employees" FromRole="CashRegister" ToRole="Employees" />
  416. <NavigationProperty Name="Payment" Relationship="Self.FK_CashRegister_Payment" FromRole="CashRegister" ToRole="Payment" />
  417. <NavigationProperty Name="Product" Relationship="Self.FK_CashRegister_Product" FromRole="CashRegister" ToRole="Product" />
  418. <NavigationProperty Name="SurrenderOfMoney" Relationship="Self.FK_CashRegister_SurrenderOfMoney" FromRole="CashRegister" ToRole="SurrenderOfMoney" />
  419. </EntityType>
  420. <EntityType Name="Dates">
  421. <Key>
  422. <PropertyRef Name="IdDate" />
  423. </Key>
  424. <Property Name="IdDate" Type="Int32" Nullable="false" />
  425. <Property Name="Date" Type="DateTime" Precision="0" />
  426. <NavigationProperty Name="CashRegister" Relationship="Self.FK_CashRegister_Dates" FromRole="Dates" ToRole="CashRegister" />
  427. </EntityType>
  428. <EntityType Name="Employees">
  429. <Key>
  430. <PropertyRef Name="IdEmployee" />
  431. </Key>
  432. <Property Name="IdEmployee" Type="Int32" Nullable="false" />
  433. <Property Name="Surname" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  434. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  435. <Property Name="Patronymic" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  436. <Property Name="TelephoneNumber" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  437. <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  438. <Property Name="Login" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  439. <Property Name="Password" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  440. <NavigationProperty Name="Address" Relationship="Self.FK_Address_Employees" FromRole="Employees" ToRole="Address" />
  441. <NavigationProperty Name="CashRegister" Relationship="Self.FK_CashRegister_Employees" FromRole="Employees" ToRole="CashRegister" />
  442. <NavigationProperty Name="PasportDetails" Relationship="Self.FK_PasportDetails_Employees" FromRole="Employees" ToRole="PasportDetails" />
  443. <NavigationProperty Name="Revenue" Relationship="Self.FK_Revenue_Employees" FromRole="Employees" ToRole="Revenue" />
  444. <NavigationProperty Name="WorkingShift" Relationship="Self.FK_WorkingShift_Employees" FromRole="Employees" ToRole="WorkingShift" />
  445. </EntityType>
  446. <EntityType Name="PasportDetails">
  447. <Key>
  448. <PropertyRef Name="IdDetail" />
  449. </Key>
  450. <Property Name="IdDetail" Type="Int32" Nullable="false" />
  451. <Property Name="Number" Type="Int32" Nullable="false" />
  452. <Property Name="Series" Type="Int32" Nullable="false" />
  453. <Property Name="IssuedBy" Type="String" MaxLength="150" FixedLength="false" Unicode="true" Nullable="false" />
  454. <Property Name="IdEmployee" Type="Int32" />
  455. <NavigationProperty Name="Employees" Relationship="Self.FK_PasportDetails_Employees" FromRole="PasportDetails" ToRole="Employees" />
  456. </EntityType>
  457. <EntityType Name="Payment">
  458. <Key>
  459. <PropertyRef Name="IdPay" />
  460. </Key>
  461. <Property Name="IdPay" Type="Int32" Nullable="false" />
  462. <Property Name="HistoryAboutPayment" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  463. <NavigationProperty Name="CardAmount" Relationship="Self.FK_CardAmount_Payment" FromRole="Payment" ToRole="CardAmount" />
  464. <NavigationProperty Name="Cash" Relationship="Self.FK_Cash_Payment" FromRole="Payment" ToRole="Cash" />
  465. <NavigationProperty Name="CashRegister" Relationship="Self.FK_CashRegister_Payment" FromRole="Payment" ToRole="CashRegister" />
  466. </EntityType>
  467. <EntityType Name="Product">
  468. <Key>
  469. <PropertyRef Name="IdProduct" />
  470. </Key>
  471. <Property Name="IdProduct" Type="Int32" Nullable="false" />
  472. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  473. <Property Name="Manufacture" Type="String" MaxLength="255" FixedLength="false" Unicode="true" Nullable="false" />
  474. <Property Name="ProductGroup" Type="String" MaxLength="255" FixedLength="false" Unicode="true" Nullable="false" />
  475. <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  476. <Property Name="TypeOfProduct" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  477. <Property Name="Bardcode" Type="Int32" Nullable="false" />
  478. <Property Name="Margin" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  479. <Property Name="Quantity" Type="Int32" Nullable="false" />
  480. <Property Name="Discount" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  481. <Property Name="Unit" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  482. <Property Name="VAT" Type="Decimal" Precision="19" Scale="4" />
  483. <NavigationProperty Name="CashRegister" Relationship="Self.FK_CashRegister_Product" FromRole="Product" ToRole="CashRegister" />
  484. <NavigationProperty Name="SupplyProduct" Relationship="Self.FK_SupplyProduct_Product" FromRole="Product" ToRole="SupplyProduct" />
  485. </EntityType>
  486. <EntityType Name="Revenue">
  487. <Key>
  488. <PropertyRef Name="IdRevenue" />
  489. </Key>
  490. <Property Name="IdRevenue" Type="Int32" Nullable="false" />
  491. <Property Name="SumRevenue" Type="Decimal" Precision="19" Scale="4" />
  492. <Property Name="IdEmployee" Type="Int32" />
  493. <NavigationProperty Name="Employees" Relationship="Self.FK_Revenue_Employees" FromRole="Revenue" ToRole="Employees" />
  494. </EntityType>
  495. <EntityType Name="SuppliersProduct">
  496. <Key>
  497. <PropertyRef Name="IdSupplier" />
  498. </Key>
  499. <Property Name="IdSupplier" Type="Int32" Nullable="false" />
  500. <Property Name="CompanyName" Type="String" MaxLength="255" FixedLength="false" Unicode="true" Nullable="false" />
  501. <Property Name="IdSupply" Type="Int32" Nullable="false" />
  502. <NavigationProperty Name="SupplyProduct" Relationship="Self.FK_SuppliersProduct_SupplyProduct" FromRole="SuppliersProduct" ToRole="SupplyProduct" />
  503. </EntityType>
  504. <EntityType Name="SupplyProduct">
  505. <Key>
  506. <PropertyRef Name="IdSupply" />
  507. </Key>
  508. <Property Name="IdSupply" Type="Int32" Nullable="false" />
  509. <Property Name="QuantityDeliveredProduct" Type="Int32" Nullable="false" />
  510. <Property Name="CostDeliveredProduct" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  511. <Property Name="IdProduct" Type="Int32" Nullable="false" />
  512. <NavigationProperty Name="Product" Relationship="Self.FK_SupplyProduct_Product" FromRole="SupplyProduct" ToRole="Product" />
  513. <NavigationProperty Name="SuppliersProduct" Relationship="Self.FK_SuppliersProduct_SupplyProduct" FromRole="SupplyProduct" ToRole="SuppliersProduct" />
  514. </EntityType>
  515. <EntityType Name="SurrenderOfMoney">
  516. <Key>
  517. <PropertyRef Name="IdSurrender" />
  518. </Key>
  519. <Property Name="IdSurrender" Type="Int32" Nullable="false" />
  520. <Property Name="Sum" Type="Decimal" Precision="19" Scale="4" />
  521. <Property Name="NumberOfChecks" Type="Int32" />
  522. <NavigationProperty Name="CashRegister" Relationship="Self.FK_CashRegister_SurrenderOfMoney" FromRole="SurrenderOfMoney" ToRole="CashRegister" />
  523. </EntityType>
  524. <EntityType Name="WorkingShift">
  525. <Key>
  526. <PropertyRef Name="IdShift" />
  527. </Key>
  528. <Property Name="IdShift" Type="Int32" Nullable="false" />
  529. <Property Name="NameShift" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  530. <Property Name="IdEmployee" Type="Int32" />
  531. <NavigationProperty Name="Employees" Relationship="Self.FK_WorkingShift_Employees" FromRole="WorkingShift" ToRole="Employees" />
  532. </EntityType>
  533. <Association Name="FK_Address_Employees">
  534. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  535. <End Role="Address" Type="Self.Address" Multiplicity="*" />
  536. <ReferentialConstraint>
  537. <Principal Role="Employees">
  538. <PropertyRef Name="IdEmployee" />
  539. </Principal>
  540. <Dependent Role="Address">
  541. <PropertyRef Name="IdEmployee" />
  542. </Dependent>
  543. </ReferentialConstraint>
  544. </Association>
  545. <Association Name="FK_CardAmount_Payment">
  546. <End Role="Payment" Type="Self.Payment" Multiplicity="0..1" />
  547. <End Role="CardAmount" Type="Self.CardAmount" Multiplicity="*" />
  548. <ReferentialConstraint>
  549. <Principal Role="Payment">
  550. <PropertyRef Name="IdPay" />
  551. </Principal>
  552. <Dependent Role="CardAmount">
  553. <PropertyRef Name="IdPay" />
  554. </Dependent>
  555. </ReferentialConstraint>
  556. </Association>
  557. <Association Name="FK_Cash_Payment">
  558. <End Role="Payment" Type="Self.Payment" Multiplicity="0..1" />
  559. <End Role="Cash" Type="Self.Cash" Multiplicity="*" />
  560. <ReferentialConstraint>
  561. <Principal Role="Payment">
  562. <PropertyRef Name="IdPay" />
  563. </Principal>
  564. <Dependent Role="Cash">
  565. <PropertyRef Name="IdPay" />
  566. </Dependent>
  567. </ReferentialConstraint>
  568. </Association>
  569. <Association Name="FK_CashRegister_Dates">
  570. <End Role="Dates" Type="Self.Dates" Multiplicity="0..1" />
  571. <End Role="CashRegister" Type="Self.CashRegister" Multiplicity="*" />
  572. <ReferentialConstraint>
  573. <Principal Role="Dates">
  574. <PropertyRef Name="IdDate" />
  575. </Principal>
  576. <Dependent Role="CashRegister">
  577. <PropertyRef Name="IdDate" />
  578. </Dependent>
  579. </ReferentialConstraint>
  580. </Association>
  581. <Association Name="FK_CashRegister_Employees">
  582. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  583. <End Role="CashRegister" Type="Self.CashRegister" Multiplicity="*" />
  584. <ReferentialConstraint>
  585. <Principal Role="Employees">
  586. <PropertyRef Name="IdEmployee" />
  587. </Principal>
  588. <Dependent Role="CashRegister">
  589. <PropertyRef Name="IdEmployee" />
  590. </Dependent>
  591. </ReferentialConstraint>
  592. </Association>
  593. <Association Name="FK_CashRegister_Payment">
  594. <End Role="Payment" Type="Self.Payment" Multiplicity="0..1" />
  595. <End Role="CashRegister" Type="Self.CashRegister" Multiplicity="*" />
  596. <ReferentialConstraint>
  597. <Principal Role="Payment">
  598. <PropertyRef Name="IdPay" />
  599. </Principal>
  600. <Dependent Role="CashRegister">
  601. <PropertyRef Name="IdPay" />
  602. </Dependent>
  603. </ReferentialConstraint>
  604. </Association>
  605. <Association Name="FK_CashRegister_Product">
  606. <End Role="Product" Type="Self.Product" Multiplicity="0..1" />
  607. <End Role="CashRegister" Type="Self.CashRegister" Multiplicity="*" />
  608. <ReferentialConstraint>
  609. <Principal Role="Product">
  610. <PropertyRef Name="IdProduct" />
  611. </Principal>
  612. <Dependent Role="CashRegister">
  613. <PropertyRef Name="IdProduct" />
  614. </Dependent>
  615. </ReferentialConstraint>
  616. </Association>
  617. <Association Name="FK_CashRegister_SurrenderOfMoney">
  618. <End Role="SurrenderOfMoney" Type="Self.SurrenderOfMoney" Multiplicity="0..1" />
  619. <End Role="CashRegister" Type="Self.CashRegister" Multiplicity="*" />
  620. <ReferentialConstraint>
  621. <Principal Role="SurrenderOfMoney">
  622. <PropertyRef Name="IdSurrender" />
  623. </Principal>
  624. <Dependent Role="CashRegister">
  625. <PropertyRef Name="IdSurrender" />
  626. </Dependent>
  627. </ReferentialConstraint>
  628. </Association>
  629. <Association Name="FK_PasportDetails_Employees">
  630. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  631. <End Role="PasportDetails" Type="Self.PasportDetails" Multiplicity="*" />
  632. <ReferentialConstraint>
  633. <Principal Role="Employees">
  634. <PropertyRef Name="IdEmployee" />
  635. </Principal>
  636. <Dependent Role="PasportDetails">
  637. <PropertyRef Name="IdEmployee" />
  638. </Dependent>
  639. </ReferentialConstraint>
  640. </Association>
  641. <Association Name="FK_Revenue_Employees">
  642. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  643. <End Role="Revenue" Type="Self.Revenue" Multiplicity="*" />
  644. <ReferentialConstraint>
  645. <Principal Role="Employees">
  646. <PropertyRef Name="IdEmployee" />
  647. </Principal>
  648. <Dependent Role="Revenue">
  649. <PropertyRef Name="IdEmployee" />
  650. </Dependent>
  651. </ReferentialConstraint>
  652. </Association>
  653. <Association Name="FK_WorkingShift_Employees">
  654. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  655. <End Role="WorkingShift" Type="Self.WorkingShift" Multiplicity="*" />
  656. <ReferentialConstraint>
  657. <Principal Role="Employees">
  658. <PropertyRef Name="IdEmployee" />
  659. </Principal>
  660. <Dependent Role="WorkingShift">
  661. <PropertyRef Name="IdEmployee" />
  662. </Dependent>
  663. </ReferentialConstraint>
  664. </Association>
  665. <Association Name="FK_SupplyProduct_Product">
  666. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  667. <End Role="SupplyProduct" Type="Self.SupplyProduct" Multiplicity="*" />
  668. <ReferentialConstraint>
  669. <Principal Role="Product">
  670. <PropertyRef Name="IdProduct" />
  671. </Principal>
  672. <Dependent Role="SupplyProduct">
  673. <PropertyRef Name="IdProduct" />
  674. </Dependent>
  675. </ReferentialConstraint>
  676. </Association>
  677. <Association Name="FK_SuppliersProduct_SupplyProduct">
  678. <End Role="SupplyProduct" Type="Self.SupplyProduct" Multiplicity="1" />
  679. <End Role="SuppliersProduct" Type="Self.SuppliersProduct" Multiplicity="*" />
  680. <ReferentialConstraint>
  681. <Principal Role="SupplyProduct">
  682. <PropertyRef Name="IdSupply" />
  683. </Principal>
  684. <Dependent Role="SuppliersProduct">
  685. <PropertyRef Name="IdSupply" />
  686. </Dependent>
  687. </ReferentialConstraint>
  688. </Association>
  689. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  690. <EntitySet Name="Address" EntityType="Self.Address" />
  691. <EntitySet Name="CardAmount" EntityType="Self.CardAmount" />
  692. <EntitySet Name="Cash" EntityType="Self.Cash" />
  693. <EntitySet Name="CashRegister" EntityType="Self.CashRegister" />
  694. <EntitySet Name="Dates" EntityType="Self.Dates" />
  695. <EntitySet Name="Employees" EntityType="Self.Employees" />
  696. <EntitySet Name="PasportDetails" EntityType="Self.PasportDetails" />
  697. <EntitySet Name="Payment" EntityType="Self.Payment" />
  698. <EntitySet Name="Product" EntityType="Self.Product" />
  699. <EntitySet Name="Revenue" EntityType="Self.Revenue" />
  700. <EntitySet Name="SuppliersProduct" EntityType="Self.SuppliersProduct" />
  701. <EntitySet Name="SupplyProduct" EntityType="Self.SupplyProduct" />
  702. <EntitySet Name="SurrenderOfMoney" EntityType="Self.SurrenderOfMoney" />
  703. <EntitySet Name="WorkingShift" EntityType="Self.WorkingShift" />
  704. <AssociationSet Name="FK_Address_Employees" Association="Self.FK_Address_Employees">
  705. <End Role="Employees" EntitySet="Employees" />
  706. <End Role="Address" EntitySet="Address" />
  707. </AssociationSet>
  708. <AssociationSet Name="FK_CardAmount_Payment" Association="Self.FK_CardAmount_Payment">
  709. <End Role="Payment" EntitySet="Payment" />
  710. <End Role="CardAmount" EntitySet="CardAmount" />
  711. </AssociationSet>
  712. <AssociationSet Name="FK_Cash_Payment" Association="Self.FK_Cash_Payment">
  713. <End Role="Payment" EntitySet="Payment" />
  714. <End Role="Cash" EntitySet="Cash" />
  715. </AssociationSet>
  716. <AssociationSet Name="FK_CashRegister_Dates" Association="Self.FK_CashRegister_Dates">
  717. <End Role="Dates" EntitySet="Dates" />
  718. <End Role="CashRegister" EntitySet="CashRegister" />
  719. </AssociationSet>
  720. <AssociationSet Name="FK_CashRegister_Employees" Association="Self.FK_CashRegister_Employees">
  721. <End Role="Employees" EntitySet="Employees" />
  722. <End Role="CashRegister" EntitySet="CashRegister" />
  723. </AssociationSet>
  724. <AssociationSet Name="FK_CashRegister_Payment" Association="Self.FK_CashRegister_Payment">
  725. <End Role="Payment" EntitySet="Payment" />
  726. <End Role="CashRegister" EntitySet="CashRegister" />
  727. </AssociationSet>
  728. <AssociationSet Name="FK_CashRegister_Product" Association="Self.FK_CashRegister_Product">
  729. <End Role="Product" EntitySet="Product" />
  730. <End Role="CashRegister" EntitySet="CashRegister" />
  731. </AssociationSet>
  732. <AssociationSet Name="FK_CashRegister_SurrenderOfMoney" Association="Self.FK_CashRegister_SurrenderOfMoney">
  733. <End Role="SurrenderOfMoney" EntitySet="SurrenderOfMoney" />
  734. <End Role="CashRegister" EntitySet="CashRegister" />
  735. </AssociationSet>
  736. <AssociationSet Name="FK_PasportDetails_Employees" Association="Self.FK_PasportDetails_Employees">
  737. <End Role="Employees" EntitySet="Employees" />
  738. <End Role="PasportDetails" EntitySet="PasportDetails" />
  739. </AssociationSet>
  740. <AssociationSet Name="FK_Revenue_Employees" Association="Self.FK_Revenue_Employees">
  741. <End Role="Employees" EntitySet="Employees" />
  742. <End Role="Revenue" EntitySet="Revenue" />
  743. </AssociationSet>
  744. <AssociationSet Name="FK_WorkingShift_Employees" Association="Self.FK_WorkingShift_Employees">
  745. <End Role="Employees" EntitySet="Employees" />
  746. <End Role="WorkingShift" EntitySet="WorkingShift" />
  747. </AssociationSet>
  748. <AssociationSet Name="FK_SupplyProduct_Product" Association="Self.FK_SupplyProduct_Product">
  749. <End Role="Product" EntitySet="Product" />
  750. <End Role="SupplyProduct" EntitySet="SupplyProduct" />
  751. </AssociationSet>
  752. <AssociationSet Name="FK_SuppliersProduct_SupplyProduct" Association="Self.FK_SuppliersProduct_SupplyProduct">
  753. <End Role="SupplyProduct" EntitySet="SupplyProduct" />
  754. <End Role="SuppliersProduct" EntitySet="SuppliersProduct" />
  755. </AssociationSet>
  756. </EntityContainer>
  757. </Schema>
  758. </edmx:ConceptualModels>
  759. <!-- C-S mapping content -->
  760. <edmx:Mappings>
  761. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2008/09/mapping/cs">
  762. <EntityContainerMapping StorageEntityContainer="Хранилище gr606_sosanModelContainer" CdmEntityContainer="Entities">
  763. <EntitySetMapping Name="Address">
  764. <EntityTypeMapping TypeName="gr606_sosanModel.Address">
  765. <MappingFragment StoreEntitySet="Address">
  766. <ScalarProperty Name="IdAddress" ColumnName="IdAddress" />
  767. <ScalarProperty Name="Street" ColumnName="Street" />
  768. <ScalarProperty Name="Number" ColumnName="Number" />
  769. <ScalarProperty Name="HouseNumber" ColumnName="HouseNumber" />
  770. <ScalarProperty Name="Flat" ColumnName="Flat" />
  771. <ScalarProperty Name="IdEmployee" ColumnName="IdEmployee" />
  772. </MappingFragment>
  773. </EntityTypeMapping>
  774. </EntitySetMapping>
  775. <EntitySetMapping Name="CardAmount">
  776. <EntityTypeMapping TypeName="gr606_sosanModel.CardAmount">
  777. <MappingFragment StoreEntitySet="CardAmount">
  778. <ScalarProperty Name="IdCard" ColumnName="IdCard" />
  779. <ScalarProperty Name="Sum" ColumnName="Sum" />
  780. <ScalarProperty Name="PaymentName" ColumnName="PaymentName" />
  781. <ScalarProperty Name="IdPay" ColumnName="IdPay" />
  782. </MappingFragment>
  783. </EntityTypeMapping>
  784. </EntitySetMapping>
  785. <EntitySetMapping Name="Cash">
  786. <EntityTypeMapping TypeName="gr606_sosanModel.Cash">
  787. <MappingFragment StoreEntitySet="Cash">
  788. <ScalarProperty Name="IdCash" ColumnName="IdCash" />
  789. <ScalarProperty Name="Sum" ColumnName="Sum" />
  790. <ScalarProperty Name="PaymentName" ColumnName="PaymentName" />
  791. <ScalarProperty Name="IdPay" ColumnName="IdPay" />
  792. </MappingFragment>
  793. </EntityTypeMapping>
  794. </EntitySetMapping>
  795. <EntitySetMapping Name="CashRegister">
  796. <EntityTypeMapping TypeName="gr606_sosanModel.CashRegister">
  797. <MappingFragment StoreEntitySet="CashRegister">
  798. <ScalarProperty Name="IdCashRegistre" ColumnName="IdCashRegistre" />
  799. <ScalarProperty Name="IdEmployee" ColumnName="IdEmployee" />
  800. <ScalarProperty Name="IdProduct" ColumnName="IdProduct" />
  801. <ScalarProperty Name="IdSurrender" ColumnName="IdSurrender" />
  802. <ScalarProperty Name="IdDate" ColumnName="IdDate" />
  803. <ScalarProperty Name="IdPay" ColumnName="IdPay" />
  804. </MappingFragment>
  805. </EntityTypeMapping>
  806. </EntitySetMapping>
  807. <EntitySetMapping Name="Dates">
  808. <EntityTypeMapping TypeName="gr606_sosanModel.Dates">
  809. <MappingFragment StoreEntitySet="Dates">
  810. <ScalarProperty Name="IdDate" ColumnName="IdDate" />
  811. <ScalarProperty Name="Date" ColumnName="Date" />
  812. </MappingFragment>
  813. </EntityTypeMapping>
  814. </EntitySetMapping>
  815. <EntitySetMapping Name="Employees">
  816. <EntityTypeMapping TypeName="gr606_sosanModel.Employees">
  817. <MappingFragment StoreEntitySet="Employees">
  818. <ScalarProperty Name="IdEmployee" ColumnName="IdEmployee" />
  819. <ScalarProperty Name="Surname" ColumnName="Surname" />
  820. <ScalarProperty Name="Name" ColumnName="Name" />
  821. <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
  822. <ScalarProperty Name="TelephoneNumber" ColumnName="TelephoneNumber" />
  823. <ScalarProperty Name="Email" ColumnName="Email" />
  824. <ScalarProperty Name="Login" ColumnName="Login" />
  825. <ScalarProperty Name="Password" ColumnName="Password" />
  826. </MappingFragment>
  827. </EntityTypeMapping>
  828. </EntitySetMapping>
  829. <EntitySetMapping Name="PasportDetails">
  830. <EntityTypeMapping TypeName="gr606_sosanModel.PasportDetails">
  831. <MappingFragment StoreEntitySet="PasportDetails">
  832. <ScalarProperty Name="IdDetail" ColumnName="IdDetail" />
  833. <ScalarProperty Name="Number" ColumnName="Number" />
  834. <ScalarProperty Name="Series" ColumnName="Series" />
  835. <ScalarProperty Name="IssuedBy" ColumnName="IssuedBy" />
  836. <ScalarProperty Name="IdEmployee" ColumnName="IdEmployee" />
  837. </MappingFragment>
  838. </EntityTypeMapping>
  839. </EntitySetMapping>
  840. <EntitySetMapping Name="Payment">
  841. <EntityTypeMapping TypeName="gr606_sosanModel.Payment">
  842. <MappingFragment StoreEntitySet="Payment">
  843. <ScalarProperty Name="IdPay" ColumnName="IdPay" />
  844. <ScalarProperty Name="HistoryAboutPayment" ColumnName="HistoryAboutPayment" />
  845. </MappingFragment>
  846. </EntityTypeMapping>
  847. </EntitySetMapping>
  848. <EntitySetMapping Name="Product">
  849. <EntityTypeMapping TypeName="gr606_sosanModel.Product">
  850. <MappingFragment StoreEntitySet="Product">
  851. <ScalarProperty Name="IdProduct" ColumnName="IdProduct" />
  852. <ScalarProperty Name="Name" ColumnName="Name" />
  853. <ScalarProperty Name="Manufacture" ColumnName="Manufacture" />
  854. <ScalarProperty Name="ProductGroup" ColumnName="ProductGroup" />
  855. <ScalarProperty Name="Cost" ColumnName="Cost" />
  856. <ScalarProperty Name="TypeOfProduct" ColumnName="TypeOfProduct" />
  857. <ScalarProperty Name="Bardcode" ColumnName="Bardcode" />
  858. <ScalarProperty Name="Margin" ColumnName="Margin" />
  859. <ScalarProperty Name="Quantity" ColumnName="Quantity" />
  860. <ScalarProperty Name="Discount" ColumnName="Discount" />
  861. <ScalarProperty Name="Unit" ColumnName="Unit" />
  862. <ScalarProperty Name="VAT" ColumnName="VAT" />
  863. </MappingFragment>
  864. </EntityTypeMapping>
  865. </EntitySetMapping>
  866. <EntitySetMapping Name="Revenue">
  867. <EntityTypeMapping TypeName="gr606_sosanModel.Revenue">
  868. <MappingFragment StoreEntitySet="Revenue">
  869. <ScalarProperty Name="IdRevenue" ColumnName="IdRevenue" />
  870. <ScalarProperty Name="SumRevenue" ColumnName="SumRevenue" />
  871. <ScalarProperty Name="IdEmployee" ColumnName="IdEmployee" />
  872. </MappingFragment>
  873. </EntityTypeMapping>
  874. </EntitySetMapping>
  875. <EntitySetMapping Name="SuppliersProduct">
  876. <EntityTypeMapping TypeName="gr606_sosanModel.SuppliersProduct">
  877. <MappingFragment StoreEntitySet="SuppliersProduct">
  878. <ScalarProperty Name="IdSupplier" ColumnName="IdSupplier" />
  879. <ScalarProperty Name="CompanyName" ColumnName="CompanyName" />
  880. <ScalarProperty Name="IdSupply" ColumnName="IdSupply" />
  881. </MappingFragment>
  882. </EntityTypeMapping>
  883. </EntitySetMapping>
  884. <EntitySetMapping Name="SupplyProduct">
  885. <EntityTypeMapping TypeName="gr606_sosanModel.SupplyProduct">
  886. <MappingFragment StoreEntitySet="SupplyProduct">
  887. <ScalarProperty Name="IdSupply" ColumnName="IdSupply" />
  888. <ScalarProperty Name="QuantityDeliveredProduct" ColumnName="QuantityDeliveredProduct" />
  889. <ScalarProperty Name="CostDeliveredProduct" ColumnName="CostDeliveredProduct" />
  890. <ScalarProperty Name="IdProduct" ColumnName="IdProduct" />
  891. </MappingFragment>
  892. </EntityTypeMapping>
  893. </EntitySetMapping>
  894. <EntitySetMapping Name="SurrenderOfMoney">
  895. <EntityTypeMapping TypeName="gr606_sosanModel.SurrenderOfMoney">
  896. <MappingFragment StoreEntitySet="SurrenderOfMoney">
  897. <ScalarProperty Name="IdSurrender" ColumnName="IdSurrender" />
  898. <ScalarProperty Name="Sum" ColumnName="Sum" />
  899. <ScalarProperty Name="NumberOfChecks" ColumnName="NumberOfChecks" />
  900. </MappingFragment>
  901. </EntityTypeMapping>
  902. </EntitySetMapping>
  903. <EntitySetMapping Name="WorkingShift">
  904. <EntityTypeMapping TypeName="gr606_sosanModel.WorkingShift">
  905. <MappingFragment StoreEntitySet="WorkingShift">
  906. <ScalarProperty Name="IdShift" ColumnName="IdShift" />
  907. <ScalarProperty Name="NameShift" ColumnName="NameShift" />
  908. <ScalarProperty Name="IdEmployee" ColumnName="IdEmployee" />
  909. </MappingFragment>
  910. </EntityTypeMapping>
  911. </EntitySetMapping>
  912. </EntityContainerMapping>
  913. </Mapping>
  914. </edmx:Mappings>
  915. </edmx:Runtime>
  916. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  917. <Designer xmlns="http://schemas.microsoft.com/ado/2008/10/edmx">
  918. <Connection>
  919. <DesignerInfoPropertySet>
  920. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  921. </DesignerInfoPropertySet>
  922. </Connection>
  923. <Options>
  924. <DesignerInfoPropertySet>
  925. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  926. <DesignerProperty Name="EnablePluralization" Value="false" />
  927. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  928. <DesignerProperty Name="UseLegacyProvider" Value="true" />
  929. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  930. </DesignerInfoPropertySet>
  931. </Options>
  932. <!-- Diagram content (shape and connector positions) -->
  933. <Diagrams></Diagrams>
  934. </Designer>
  935. </edmx:Edmx>