ModelDB.edmx 34 KB

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