Model1.edmx 27 KB

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