Model1.edmx 23 KB

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