KinomaksDB.edmx 29 KB

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