ModelBD.edmx 31 KB

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