ModelDB.edmx 37 KB

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