ModelBD.edmx 31 KB

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