Model1.edmx 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  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="Хранилище ToursModel" 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="Country">
  9. <Key>
  10. <PropertyRef Name="Code" />
  11. </Key>
  12. <Property Name="Code" Type="nchar" MaxLength="2" Nullable="false" />
  13. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  14. </EntityType>
  15. <EntityType Name="Hotel">
  16. <Key>
  17. <PropertyRef Name="Id" />
  18. </Key>
  19. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  20. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  21. <Property Name="CountOfStars" Type="int" Nullable="false" />
  22. <Property Name="CountryCode" Type="nchar" MaxLength="2" Nullable="false" />
  23. <Property Name="Description" Type="nvarchar(max)" />
  24. </EntityType>
  25. <EntityType Name="HotelComment">
  26. <Key>
  27. <PropertyRef Name="Id" />
  28. </Key>
  29. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  30. <Property Name="HotelId" Type="int" Nullable="false" />
  31. <Property Name="Text" Type="nvarchar(max)" Nullable="false" />
  32. <Property Name="Author" Type="nvarchar" MaxLength="100" Nullable="false" />
  33. <Property Name="CreationDate" Type="datetime" Nullable="false" />
  34. </EntityType>
  35. <EntityType Name="HotelImage">
  36. <Key>
  37. <PropertyRef Name="Id" />
  38. </Key>
  39. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  40. <Property Name="HotelId" Type="int" Nullable="false" />
  41. <Property Name="ImageSource" Type="varbinary(max)" Nullable="false" />
  42. </EntityType>
  43. <EntityType Name="HotelOfTour">
  44. <Key>
  45. <PropertyRef Name="HotelId" />
  46. <PropertyRef Name="TourId" />
  47. </Key>
  48. <Property Name="HotelId" Type="int" Nullable="false" />
  49. <Property Name="TourId" Type="int" Nullable="false" />
  50. </EntityType>
  51. <EntityType Name="sysdiagrams">
  52. <Key>
  53. <PropertyRef Name="diagram_id" />
  54. </Key>
  55. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  56. <Property Name="principal_id" Type="int" Nullable="false" />
  57. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  58. <Property Name="version" Type="int" />
  59. <Property Name="definition" Type="varbinary(max)" />
  60. </EntityType>
  61. <EntityType Name="Tour">
  62. <Key>
  63. <PropertyRef Name="Id" />
  64. </Key>
  65. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  66. <Property Name="TicketCount" Type="int" Nullable="false" />
  67. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  68. <Property Name="Description" Type="nvarchar(max)" />
  69. <Property Name="ImagePreview" Type="varbinary(max)" />
  70. <Property Name="Price" Type="money" Nullable="false" />
  71. <Property Name="IsActual" Type="bit" Nullable="false" />
  72. </EntityType>
  73. <EntityType Name="Type">
  74. <Key>
  75. <PropertyRef Name="Id" />
  76. </Key>
  77. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  78. <Property Name="Name" Type="nvarchar" MaxLength="150" Nullable="false" />
  79. <Property Name="Description" Type="nvarchar(max)" />
  80. </EntityType>
  81. <EntityType Name="TypeOfTour">
  82. <Key>
  83. <PropertyRef Name="TourId" />
  84. <PropertyRef Name="TypeId" />
  85. </Key>
  86. <Property Name="TourId" Type="int" Nullable="false" />
  87. <Property Name="TypeId" Type="int" Nullable="false" />
  88. </EntityType>
  89. <Association Name="FK_Hotel_Country">
  90. <End Role="Country" Type="Self.Country" Multiplicity="1" />
  91. <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
  92. <ReferentialConstraint>
  93. <Principal Role="Country">
  94. <PropertyRef Name="Code" />
  95. </Principal>
  96. <Dependent Role="Hotel">
  97. <PropertyRef Name="CountryCode" />
  98. </Dependent>
  99. </ReferentialConstraint>
  100. </Association>
  101. <Association Name="FK_HotelComment_Hotel">
  102. <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
  103. <End Role="HotelComment" Type="Self.HotelComment" Multiplicity="*" />
  104. <ReferentialConstraint>
  105. <Principal Role="Hotel">
  106. <PropertyRef Name="Id" />
  107. </Principal>
  108. <Dependent Role="HotelComment">
  109. <PropertyRef Name="HotelId" />
  110. </Dependent>
  111. </ReferentialConstraint>
  112. </Association>
  113. <Association Name="FK_HotelImage_Hotel">
  114. <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
  115. <End Role="HotelImage" Type="Self.HotelImage" Multiplicity="*" />
  116. <ReferentialConstraint>
  117. <Principal Role="Hotel">
  118. <PropertyRef Name="Id" />
  119. </Principal>
  120. <Dependent Role="HotelImage">
  121. <PropertyRef Name="HotelId" />
  122. </Dependent>
  123. </ReferentialConstraint>
  124. </Association>
  125. <Association Name="FK_HotelOfTour_Hotel">
  126. <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
  127. <End Role="HotelOfTour" Type="Self.HotelOfTour" Multiplicity="*" />
  128. <ReferentialConstraint>
  129. <Principal Role="Hotel">
  130. <PropertyRef Name="Id" />
  131. </Principal>
  132. <Dependent Role="HotelOfTour">
  133. <PropertyRef Name="HotelId" />
  134. </Dependent>
  135. </ReferentialConstraint>
  136. </Association>
  137. <Association Name="FK_HotelOfTour_Tour">
  138. <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
  139. <End Role="HotelOfTour" Type="Self.HotelOfTour" Multiplicity="*" />
  140. <ReferentialConstraint>
  141. <Principal Role="Tour">
  142. <PropertyRef Name="Id" />
  143. </Principal>
  144. <Dependent Role="HotelOfTour">
  145. <PropertyRef Name="TourId" />
  146. </Dependent>
  147. </ReferentialConstraint>
  148. </Association>
  149. <Association Name="FK_TypeOfTour_Tour">
  150. <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
  151. <End Role="TypeOfTour" Type="Self.TypeOfTour" Multiplicity="*" />
  152. <ReferentialConstraint>
  153. <Principal Role="Tour">
  154. <PropertyRef Name="Id" />
  155. </Principal>
  156. <Dependent Role="TypeOfTour">
  157. <PropertyRef Name="TourId" />
  158. </Dependent>
  159. </ReferentialConstraint>
  160. </Association>
  161. <Association Name="FK_TypeOfTour_Type">
  162. <End Role="Type" Type="Self.Type" Multiplicity="1" />
  163. <End Role="TypeOfTour" Type="Self.TypeOfTour" Multiplicity="*" />
  164. <ReferentialConstraint>
  165. <Principal Role="Type">
  166. <PropertyRef Name="Id" />
  167. </Principal>
  168. <Dependent Role="TypeOfTour">
  169. <PropertyRef Name="TypeId" />
  170. </Dependent>
  171. </ReferentialConstraint>
  172. </Association>
  173. <EntityContainer Name="Хранилище ToursModelContainer">
  174. <EntitySet Name="Country" EntityType="Self.Country" Schema="dbo" store:Type="Tables" />
  175. <EntitySet Name="Hotel" EntityType="Self.Hotel" Schema="dbo" store:Type="Tables" />
  176. <EntitySet Name="HotelComment" EntityType="Self.HotelComment" Schema="dbo" store:Type="Tables" />
  177. <EntitySet Name="HotelImage" EntityType="Self.HotelImage" Schema="dbo" store:Type="Tables" />
  178. <EntitySet Name="HotelOfTour" EntityType="Self.HotelOfTour" Schema="dbo" store:Type="Tables" />
  179. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  180. <EntitySet Name="Tour" EntityType="Self.Tour" Schema="dbo" store:Type="Tables" />
  181. <EntitySet Name="Type" EntityType="Self.Type" Schema="dbo" store:Type="Tables" />
  182. <EntitySet Name="TypeOfTour" EntityType="Self.TypeOfTour" Schema="dbo" store:Type="Tables" />
  183. <AssociationSet Name="FK_Hotel_Country" Association="Self.FK_Hotel_Country">
  184. <End Role="Country" EntitySet="Country" />
  185. <End Role="Hotel" EntitySet="Hotel" />
  186. </AssociationSet>
  187. <AssociationSet Name="FK_HotelComment_Hotel" Association="Self.FK_HotelComment_Hotel">
  188. <End Role="Hotel" EntitySet="Hotel" />
  189. <End Role="HotelComment" EntitySet="HotelComment" />
  190. </AssociationSet>
  191. <AssociationSet Name="FK_HotelImage_Hotel" Association="Self.FK_HotelImage_Hotel">
  192. <End Role="Hotel" EntitySet="Hotel" />
  193. <End Role="HotelImage" EntitySet="HotelImage" />
  194. </AssociationSet>
  195. <AssociationSet Name="FK_HotelOfTour_Hotel" Association="Self.FK_HotelOfTour_Hotel">
  196. <End Role="Hotel" EntitySet="Hotel" />
  197. <End Role="HotelOfTour" EntitySet="HotelOfTour" />
  198. </AssociationSet>
  199. <AssociationSet Name="FK_HotelOfTour_Tour" Association="Self.FK_HotelOfTour_Tour">
  200. <End Role="Tour" EntitySet="Tour" />
  201. <End Role="HotelOfTour" EntitySet="HotelOfTour" />
  202. </AssociationSet>
  203. <AssociationSet Name="FK_TypeOfTour_Tour" Association="Self.FK_TypeOfTour_Tour">
  204. <End Role="Tour" EntitySet="Tour" />
  205. <End Role="TypeOfTour" EntitySet="TypeOfTour" />
  206. </AssociationSet>
  207. <AssociationSet Name="FK_TypeOfTour_Type" Association="Self.FK_TypeOfTour_Type">
  208. <End Role="Type" EntitySet="Type" />
  209. <End Role="TypeOfTour" EntitySet="TypeOfTour" />
  210. </AssociationSet>
  211. </EntityContainer>
  212. </Schema>
  213. </edmx:StorageModels>
  214. <!-- CSDL content -->
  215. <edmx:ConceptualModels>
  216. <Schema Namespace="ToursModel" 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">
  217. <EntityType Name="Country">
  218. <Key>
  219. <PropertyRef Name="Code" />
  220. </Key>
  221. <Property Name="Code" Type="String" MaxLength="2" FixedLength="true" Unicode="true" Nullable="false" />
  222. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  223. <NavigationProperty Name="Hotels" Relationship="Self.FK_Hotel_Country" FromRole="Country" ToRole="Hotel" />
  224. </EntityType>
  225. <EntityType Name="Hotel">
  226. <Key>
  227. <PropertyRef Name="Id" />
  228. </Key>
  229. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  230. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  231. <Property Name="CountOfStars" Type="Int32" Nullable="false" />
  232. <Property Name="CountryCode" Type="String" MaxLength="2" FixedLength="true" Unicode="true" Nullable="false" />
  233. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  234. <NavigationProperty Name="Country" Relationship="Self.FK_Hotel_Country" FromRole="Hotel" ToRole="Country" />
  235. <NavigationProperty Name="HotelComments" Relationship="Self.FK_HotelComment_Hotel" FromRole="Hotel" ToRole="HotelComment" />
  236. <NavigationProperty Name="HotelImages" Relationship="Self.FK_HotelImage_Hotel" FromRole="Hotel" ToRole="HotelImage" />
  237. <NavigationProperty Name="Tours" Relationship="Self.HotelOfTour" FromRole="Hotel" ToRole="Tour" />
  238. </EntityType>
  239. <EntityType Name="HotelComment">
  240. <Key>
  241. <PropertyRef Name="Id" />
  242. </Key>
  243. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  244. <Property Name="HotelId" Type="Int32" Nullable="false" />
  245. <Property Name="Text" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  246. <Property Name="Author" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  247. <Property Name="CreationDate" Type="DateTime" Nullable="false" Precision="3" />
  248. <NavigationProperty Name="Hotel" Relationship="Self.FK_HotelComment_Hotel" FromRole="HotelComment" ToRole="Hotel" />
  249. </EntityType>
  250. <EntityType Name="HotelImage">
  251. <Key>
  252. <PropertyRef Name="Id" />
  253. </Key>
  254. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  255. <Property Name="HotelId" Type="Int32" Nullable="false" />
  256. <Property Name="ImageSource" Type="Binary" MaxLength="Max" FixedLength="false" Nullable="false" />
  257. <NavigationProperty Name="Hotel" Relationship="Self.FK_HotelImage_Hotel" FromRole="HotelImage" ToRole="Hotel" />
  258. </EntityType>
  259. <EntityType Name="sysdiagram">
  260. <Key>
  261. <PropertyRef Name="diagram_id" />
  262. </Key>
  263. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  264. <Property Name="principal_id" Type="Int32" Nullable="false" />
  265. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  266. <Property Name="version" Type="Int32" />
  267. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  268. </EntityType>
  269. <EntityType Name="Tour">
  270. <Key>
  271. <PropertyRef Name="Id" />
  272. </Key>
  273. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  274. <Property Name="TicketCount" Type="Int32" Nullable="false" />
  275. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  276. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  277. <Property Name="ImagePreview" Type="Binary" MaxLength="Max" FixedLength="false" />
  278. <Property Name="Price" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  279. <Property Name="IsActual" Type="Boolean" Nullable="false" />
  280. <NavigationProperty Name="Hotels" Relationship="Self.HotelOfTour" FromRole="Tour" ToRole="Hotel" />
  281. <NavigationProperty Name="Types" Relationship="Self.TypeOfTour" FromRole="Tour" ToRole="Type" />
  282. </EntityType>
  283. <EntityType Name="Type">
  284. <Key>
  285. <PropertyRef Name="Id" />
  286. </Key>
  287. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  288. <Property Name="Name" Type="String" MaxLength="150" FixedLength="false" Unicode="true" Nullable="false" />
  289. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  290. <NavigationProperty Name="Tours" Relationship="Self.TypeOfTour" FromRole="Type" ToRole="Tour" />
  291. </EntityType>
  292. <Association Name="FK_Hotel_Country">
  293. <End Role="Country" Type="Self.Country" Multiplicity="1" />
  294. <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
  295. <ReferentialConstraint>
  296. <Principal Role="Country">
  297. <PropertyRef Name="Code" />
  298. </Principal>
  299. <Dependent Role="Hotel">
  300. <PropertyRef Name="CountryCode" />
  301. </Dependent>
  302. </ReferentialConstraint>
  303. </Association>
  304. <Association Name="FK_HotelComment_Hotel">
  305. <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
  306. <End Role="HotelComment" Type="Self.HotelComment" Multiplicity="*" />
  307. <ReferentialConstraint>
  308. <Principal Role="Hotel">
  309. <PropertyRef Name="Id" />
  310. </Principal>
  311. <Dependent Role="HotelComment">
  312. <PropertyRef Name="HotelId" />
  313. </Dependent>
  314. </ReferentialConstraint>
  315. </Association>
  316. <Association Name="FK_HotelImage_Hotel">
  317. <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
  318. <End Role="HotelImage" Type="Self.HotelImage" Multiplicity="*" />
  319. <ReferentialConstraint>
  320. <Principal Role="Hotel">
  321. <PropertyRef Name="Id" />
  322. </Principal>
  323. <Dependent Role="HotelImage">
  324. <PropertyRef Name="HotelId" />
  325. </Dependent>
  326. </ReferentialConstraint>
  327. </Association>
  328. <Association Name="HotelOfTour">
  329. <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
  330. <End Role="Tour" Type="Self.Tour" Multiplicity="*" />
  331. </Association>
  332. <Association Name="TypeOfTour">
  333. <End Role="Tour" Type="Self.Tour" Multiplicity="*" />
  334. <End Role="Type" Type="Self.Type" Multiplicity="*" />
  335. </Association>
  336. <EntityContainer Name="ToursEntities" annotation:LazyLoadingEnabled="true">
  337. <EntitySet Name="Countries" EntityType="Self.Country" />
  338. <EntitySet Name="Hotels" EntityType="Self.Hotel" />
  339. <EntitySet Name="HotelComments" EntityType="Self.HotelComment" />
  340. <EntitySet Name="HotelImages" EntityType="Self.HotelImage" />
  341. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagram" />
  342. <EntitySet Name="Tours" EntityType="Self.Tour" />
  343. <EntitySet Name="Types" EntityType="Self.Type" />
  344. <AssociationSet Name="FK_Hotel_Country" Association="Self.FK_Hotel_Country">
  345. <End Role="Country" EntitySet="Countries" />
  346. <End Role="Hotel" EntitySet="Hotels" />
  347. </AssociationSet>
  348. <AssociationSet Name="FK_HotelComment_Hotel" Association="Self.FK_HotelComment_Hotel">
  349. <End Role="Hotel" EntitySet="Hotels" />
  350. <End Role="HotelComment" EntitySet="HotelComments" />
  351. </AssociationSet>
  352. <AssociationSet Name="FK_HotelImage_Hotel" Association="Self.FK_HotelImage_Hotel">
  353. <End Role="Hotel" EntitySet="Hotels" />
  354. <End Role="HotelImage" EntitySet="HotelImages" />
  355. </AssociationSet>
  356. <AssociationSet Name="HotelOfTour" Association="Self.HotelOfTour">
  357. <End Role="Hotel" EntitySet="Hotels" />
  358. <End Role="Tour" EntitySet="Tours" />
  359. </AssociationSet>
  360. <AssociationSet Name="TypeOfTour" Association="Self.TypeOfTour">
  361. <End Role="Tour" EntitySet="Tours" />
  362. <End Role="Type" EntitySet="Types" />
  363. </AssociationSet>
  364. </EntityContainer>
  365. </Schema>
  366. </edmx:ConceptualModels>
  367. <!-- C-S mapping content -->
  368. <edmx:Mappings>
  369. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  370. <EntityContainerMapping StorageEntityContainer="Хранилище ToursModelContainer" CdmEntityContainer="ToursEntities">
  371. <EntitySetMapping Name="Countries">
  372. <EntityTypeMapping TypeName="ToursModel.Country">
  373. <MappingFragment StoreEntitySet="Country">
  374. <ScalarProperty Name="Code" ColumnName="Code" />
  375. <ScalarProperty Name="Name" ColumnName="Name" />
  376. </MappingFragment>
  377. </EntityTypeMapping>
  378. </EntitySetMapping>
  379. <EntitySetMapping Name="Hotels">
  380. <EntityTypeMapping TypeName="ToursModel.Hotel">
  381. <MappingFragment StoreEntitySet="Hotel">
  382. <ScalarProperty Name="Id" ColumnName="Id" />
  383. <ScalarProperty Name="Name" ColumnName="Name" />
  384. <ScalarProperty Name="CountOfStars" ColumnName="CountOfStars" />
  385. <ScalarProperty Name="CountryCode" ColumnName="CountryCode" />
  386. <ScalarProperty Name="Description" ColumnName="Description" />
  387. </MappingFragment>
  388. </EntityTypeMapping>
  389. </EntitySetMapping>
  390. <EntitySetMapping Name="HotelComments">
  391. <EntityTypeMapping TypeName="ToursModel.HotelComment">
  392. <MappingFragment StoreEntitySet="HotelComment">
  393. <ScalarProperty Name="Id" ColumnName="Id" />
  394. <ScalarProperty Name="HotelId" ColumnName="HotelId" />
  395. <ScalarProperty Name="Text" ColumnName="Text" />
  396. <ScalarProperty Name="Author" ColumnName="Author" />
  397. <ScalarProperty Name="CreationDate" ColumnName="CreationDate" />
  398. </MappingFragment>
  399. </EntityTypeMapping>
  400. </EntitySetMapping>
  401. <EntitySetMapping Name="HotelImages">
  402. <EntityTypeMapping TypeName="ToursModel.HotelImage">
  403. <MappingFragment StoreEntitySet="HotelImage">
  404. <ScalarProperty Name="Id" ColumnName="Id" />
  405. <ScalarProperty Name="HotelId" ColumnName="HotelId" />
  406. <ScalarProperty Name="ImageSource" ColumnName="ImageSource" />
  407. </MappingFragment>
  408. </EntityTypeMapping>
  409. </EntitySetMapping>
  410. <EntitySetMapping Name="sysdiagrams">
  411. <EntityTypeMapping TypeName="ToursModel.sysdiagram">
  412. <MappingFragment StoreEntitySet="sysdiagrams">
  413. <ScalarProperty Name="name" ColumnName="name" />
  414. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  415. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  416. <ScalarProperty Name="version" ColumnName="version" />
  417. <ScalarProperty Name="definition" ColumnName="definition" />
  418. </MappingFragment>
  419. </EntityTypeMapping>
  420. </EntitySetMapping>
  421. <EntitySetMapping Name="Tours">
  422. <EntityTypeMapping TypeName="ToursModel.Tour">
  423. <MappingFragment StoreEntitySet="Tour">
  424. <ScalarProperty Name="Id" ColumnName="Id" />
  425. <ScalarProperty Name="TicketCount" ColumnName="TicketCount" />
  426. <ScalarProperty Name="Name" ColumnName="Name" />
  427. <ScalarProperty Name="Description" ColumnName="Description" />
  428. <ScalarProperty Name="ImagePreview" ColumnName="ImagePreview" />
  429. <ScalarProperty Name="Price" ColumnName="Price" />
  430. <ScalarProperty Name="IsActual" ColumnName="IsActual" />
  431. </MappingFragment>
  432. </EntityTypeMapping>
  433. </EntitySetMapping>
  434. <EntitySetMapping Name="Types">
  435. <EntityTypeMapping TypeName="ToursModel.Type">
  436. <MappingFragment StoreEntitySet="Type">
  437. <ScalarProperty Name="Id" ColumnName="Id" />
  438. <ScalarProperty Name="Name" ColumnName="Name" />
  439. <ScalarProperty Name="Description" ColumnName="Description" />
  440. </MappingFragment>
  441. </EntityTypeMapping>
  442. </EntitySetMapping>
  443. <AssociationSetMapping Name="HotelOfTour" TypeName="ToursModel.HotelOfTour" StoreEntitySet="HotelOfTour">
  444. <EndProperty Name="Hotel">
  445. <ScalarProperty Name="Id" ColumnName="HotelId" />
  446. </EndProperty>
  447. <EndProperty Name="Tour">
  448. <ScalarProperty Name="Id" ColumnName="TourId" />
  449. </EndProperty>
  450. </AssociationSetMapping>
  451. <AssociationSetMapping Name="TypeOfTour" TypeName="ToursModel.TypeOfTour" StoreEntitySet="TypeOfTour">
  452. <EndProperty Name="Tour">
  453. <ScalarProperty Name="Id" ColumnName="TourId" />
  454. </EndProperty>
  455. <EndProperty Name="Type">
  456. <ScalarProperty Name="Id" ColumnName="TypeId" />
  457. </EndProperty>
  458. </AssociationSetMapping>
  459. </EntityContainerMapping>
  460. </Mapping>
  461. </edmx:Mappings>
  462. </edmx:Runtime>
  463. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  464. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  465. <Connection>
  466. <DesignerInfoPropertySet>
  467. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  468. </DesignerInfoPropertySet>
  469. </Connection>
  470. <Options>
  471. <DesignerInfoPropertySet>
  472. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  473. <DesignerProperty Name="EnablePluralization" Value="true" />
  474. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  475. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  476. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  477. </DesignerInfoPropertySet>
  478. </Options>
  479. <!-- Diagram content (shape and connector positions) -->
  480. <Diagrams></Diagrams>
  481. </Designer>
  482. </edmx:Edmx>