ModelDB.edmx 29 KB

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