DataBaseModel.edmx 26 KB

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