ModelBD.edmx 31 KB

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