Model1.edmx 26 KB

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