Model1.edmx 33 KB

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