Model1.edmx 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  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="Хранилище hotels15Model" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  8. <EntityType Name="Country">
  9. <Key>
  10. <PropertyRef Name="Code" />
  11. </Key>
  12. <Property Name="Code" Type="nchar" MaxLength="2" Nullable="false" />
  13. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  14. </EntityType>
  15. <EntityType Name="Hotel">
  16. <Key>
  17. <PropertyRef Name="Id" />
  18. </Key>
  19. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  20. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  21. <Property Name="CountOfStars" Type="int" Nullable="false" />
  22. <Property Name="CountryCode" Type="nchar" MaxLength="2" Nullable="false" />
  23. <Property Name="Description" Type="nvarchar(max)" />
  24. </EntityType>
  25. <EntityType Name="HotelComment">
  26. <Key>
  27. <PropertyRef Name="Id" />
  28. </Key>
  29. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  30. <Property Name="HotelId" Type="int" Nullable="false" />
  31. <Property Name="Text" Type="nvarchar(max)" Nullable="false" />
  32. <Property Name="Author" Type="nvarchar" MaxLength="100" Nullable="false" />
  33. <Property Name="CreationDate" Type="datetime" Nullable="false" />
  34. </EntityType>
  35. <EntityType Name="HotelImage">
  36. <Key>
  37. <PropertyRef Name="Id" />
  38. </Key>
  39. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  40. <Property Name="HotelId" Type="int" Nullable="false" />
  41. <Property Name="ImageSource" Type="varbinary(max)" Nullable="false" />
  42. </EntityType>
  43. <EntityType Name="HotelOfTour">
  44. <Key>
  45. <PropertyRef Name="HotelId" />
  46. <PropertyRef Name="TourId" />
  47. </Key>
  48. <Property Name="HotelId" Type="int" Nullable="false" />
  49. <Property Name="TourId" Type="int" Nullable="false" />
  50. </EntityType>
  51. <EntityType Name="sysdiagrams">
  52. <Key>
  53. <PropertyRef Name="diagram_id" />
  54. </Key>
  55. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  56. <Property Name="principal_id" Type="int" Nullable="false" />
  57. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  58. <Property Name="version" Type="int" />
  59. <Property Name="definition" Type="varbinary(max)" />
  60. </EntityType>
  61. <EntityType Name="Tour">
  62. <Key>
  63. <PropertyRef Name="Id" />
  64. </Key>
  65. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  66. <Property Name="TicketCount" Type="int" Nullable="false" />
  67. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  68. <Property Name="Description" Type="nvarchar(max)" />
  69. <Property Name="ImagePreview" Type="nvarchar(max)" />
  70. <Property Name="Price" Type="money" Nullable="false" />
  71. <Property Name="IsActual" Type="bit" Nullable="false" />
  72. </EntityType>
  73. <EntityType Name="Type">
  74. <Key>
  75. <PropertyRef Name="Id" />
  76. </Key>
  77. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  78. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  79. <Property Name="Description" Type="nvarchar(max)" />
  80. </EntityType>
  81. <EntityType Name="TypeOfTour">
  82. <Key>
  83. <PropertyRef Name="ID" />
  84. </Key>
  85. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  86. <Property Name="TourId" Type="int" Nullable="false" />
  87. <Property Name="TypeId" Type="int" Nullable="false" />
  88. </EntityType>
  89. <Association Name="FK_Hotel_Country">
  90. <End Role="Country" Type="Self.Country" Multiplicity="1" />
  91. <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
  92. <ReferentialConstraint>
  93. <Principal Role="Country">
  94. <PropertyRef Name="Code" />
  95. </Principal>
  96. <Dependent Role="Hotel">
  97. <PropertyRef Name="CountryCode" />
  98. </Dependent>
  99. </ReferentialConstraint>
  100. </Association>
  101. <Association Name="FK_HotelComment_Hotel">
  102. <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
  103. <End Role="HotelComment" Type="Self.HotelComment" Multiplicity="*" />
  104. <ReferentialConstraint>
  105. <Principal Role="Hotel">
  106. <PropertyRef Name="Id" />
  107. </Principal>
  108. <Dependent Role="HotelComment">
  109. <PropertyRef Name="HotelId" />
  110. </Dependent>
  111. </ReferentialConstraint>
  112. </Association>
  113. <Association Name="FK_HotelImage_Hotel">
  114. <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
  115. <End Role="HotelImage" Type="Self.HotelImage" Multiplicity="*" />
  116. <ReferentialConstraint>
  117. <Principal Role="Hotel">
  118. <PropertyRef Name="Id" />
  119. </Principal>
  120. <Dependent Role="HotelImage">
  121. <PropertyRef Name="HotelId" />
  122. </Dependent>
  123. </ReferentialConstraint>
  124. </Association>
  125. <Association Name="FK_HotelOfTour_Hotel">
  126. <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
  127. <End Role="HotelOfTour" Type="Self.HotelOfTour" Multiplicity="*" />
  128. <ReferentialConstraint>
  129. <Principal Role="Hotel">
  130. <PropertyRef Name="Id" />
  131. </Principal>
  132. <Dependent Role="HotelOfTour">
  133. <PropertyRef Name="HotelId" />
  134. </Dependent>
  135. </ReferentialConstraint>
  136. </Association>
  137. <Association Name="FK_HotelOfTour_Tour">
  138. <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
  139. <End Role="HotelOfTour" Type="Self.HotelOfTour" Multiplicity="*" />
  140. <ReferentialConstraint>
  141. <Principal Role="Tour">
  142. <PropertyRef Name="Id" />
  143. </Principal>
  144. <Dependent Role="HotelOfTour">
  145. <PropertyRef Name="TourId" />
  146. </Dependent>
  147. </ReferentialConstraint>
  148. </Association>
  149. <Association Name="FK_TypeOfTour_Tour1">
  150. <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
  151. <End Role="TypeOfTour" Type="Self.TypeOfTour" Multiplicity="*" />
  152. <ReferentialConstraint>
  153. <Principal Role="Tour">
  154. <PropertyRef Name="Id" />
  155. </Principal>
  156. <Dependent Role="TypeOfTour">
  157. <PropertyRef Name="TourId" />
  158. </Dependent>
  159. </ReferentialConstraint>
  160. </Association>
  161. <Association Name="FK_TypeOfTour_Type">
  162. <End Role="Type" Type="Self.Type" Multiplicity="1" />
  163. <End Role="TypeOfTour" Type="Self.TypeOfTour" Multiplicity="*" />
  164. <ReferentialConstraint>
  165. <Principal Role="Type">
  166. <PropertyRef Name="Id" />
  167. </Principal>
  168. <Dependent Role="TypeOfTour">
  169. <PropertyRef Name="TypeId" />
  170. </Dependent>
  171. </ReferentialConstraint>
  172. </Association>
  173. <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
  174. <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  175. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  176. <Parameter Name="owner_id" Type="int" Mode="In" />
  177. <Parameter Name="version" Type="int" Mode="In" />
  178. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  179. </Function>
  180. <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  181. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  182. <Parameter Name="owner_id" Type="int" Mode="In" />
  183. <Parameter Name="version" Type="int" Mode="In" />
  184. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  185. </Function>
  186. <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  187. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  188. <Parameter Name="owner_id" Type="int" Mode="In" />
  189. </Function>
  190. <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  191. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  192. <Parameter Name="owner_id" Type="int" Mode="In" />
  193. </Function>
  194. <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  195. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  196. <Parameter Name="owner_id" Type="int" Mode="In" />
  197. </Function>
  198. <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  199. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  200. <Parameter Name="owner_id" Type="int" Mode="In" />
  201. <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
  202. </Function>
  203. <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  204. <EntityContainer Name="Хранилище hotels15ModelContainer">
  205. <EntitySet Name="Country" EntityType="Self.Country" Schema="dbo" store:Type="Tables" />
  206. <EntitySet Name="Hotel" EntityType="Self.Hotel" Schema="dbo" store:Type="Tables" />
  207. <EntitySet Name="HotelComment" EntityType="Self.HotelComment" Schema="dbo" store:Type="Tables" />
  208. <EntitySet Name="HotelImage" EntityType="Self.HotelImage" Schema="dbo" store:Type="Tables" />
  209. <EntitySet Name="HotelOfTour" EntityType="Self.HotelOfTour" Schema="dbo" store:Type="Tables" />
  210. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  211. <EntitySet Name="Tour" EntityType="Self.Tour" Schema="dbo" store:Type="Tables" />
  212. <EntitySet Name="Type" EntityType="Self.Type" Schema="dbo" store:Type="Tables" />
  213. <EntitySet Name="TypeOfTour" EntityType="Self.TypeOfTour" Schema="dbo" store:Type="Tables" />
  214. <AssociationSet Name="FK_Hotel_Country" Association="Self.FK_Hotel_Country">
  215. <End Role="Country" EntitySet="Country" />
  216. <End Role="Hotel" EntitySet="Hotel" />
  217. </AssociationSet>
  218. <AssociationSet Name="FK_HotelComment_Hotel" Association="Self.FK_HotelComment_Hotel">
  219. <End Role="Hotel" EntitySet="Hotel" />
  220. <End Role="HotelComment" EntitySet="HotelComment" />
  221. </AssociationSet>
  222. <AssociationSet Name="FK_HotelImage_Hotel" Association="Self.FK_HotelImage_Hotel">
  223. <End Role="Hotel" EntitySet="Hotel" />
  224. <End Role="HotelImage" EntitySet="HotelImage" />
  225. </AssociationSet>
  226. <AssociationSet Name="FK_HotelOfTour_Hotel" Association="Self.FK_HotelOfTour_Hotel">
  227. <End Role="Hotel" EntitySet="Hotel" />
  228. <End Role="HotelOfTour" EntitySet="HotelOfTour" />
  229. </AssociationSet>
  230. <AssociationSet Name="FK_HotelOfTour_Tour" Association="Self.FK_HotelOfTour_Tour">
  231. <End Role="Tour" EntitySet="Tour" />
  232. <End Role="HotelOfTour" EntitySet="HotelOfTour" />
  233. </AssociationSet>
  234. <AssociationSet Name="FK_TypeOfTour_Tour1" Association="Self.FK_TypeOfTour_Tour1">
  235. <End Role="Tour" EntitySet="Tour" />
  236. <End Role="TypeOfTour" EntitySet="TypeOfTour" />
  237. </AssociationSet>
  238. <AssociationSet Name="FK_TypeOfTour_Type" Association="Self.FK_TypeOfTour_Type">
  239. <End Role="Type" EntitySet="Type" />
  240. <End Role="TypeOfTour" EntitySet="TypeOfTour" />
  241. </AssociationSet>
  242. </EntityContainer>
  243. </Schema></edmx:StorageModels>
  244. <!-- CSDL content -->
  245. <edmx:ConceptualModels>
  246. <Schema Namespace="hotels15Model" 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">
  247. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  248. <EntitySet Name="Country" EntityType="hotels15Model.Country" />
  249. <EntitySet Name="Hotel" EntityType="hotels15Model.Hotel" />
  250. <EntitySet Name="HotelComment" EntityType="hotels15Model.HotelComment" />
  251. <EntitySet Name="HotelImage" EntityType="hotels15Model.HotelImage" />
  252. <EntitySet Name="sysdiagrams" EntityType="hotels15Model.sysdiagrams" />
  253. <EntitySet Name="Tour" EntityType="hotels15Model.Tour" />
  254. <EntitySet Name="Type" EntityType="hotels15Model.Type" />
  255. <EntitySet Name="TypeOfTour" EntityType="hotels15Model.TypeOfTour" />
  256. <AssociationSet Name="FK_Hotel_Country" Association="hotels15Model.FK_Hotel_Country">
  257. <End Role="Country" EntitySet="Country" />
  258. <End Role="Hotel" EntitySet="Hotel" />
  259. </AssociationSet>
  260. <AssociationSet Name="FK_HotelComment_Hotel" Association="hotels15Model.FK_HotelComment_Hotel">
  261. <End Role="Hotel" EntitySet="Hotel" />
  262. <End Role="HotelComment" EntitySet="HotelComment" />
  263. </AssociationSet>
  264. <AssociationSet Name="FK_HotelImage_Hotel" Association="hotels15Model.FK_HotelImage_Hotel">
  265. <End Role="Hotel" EntitySet="Hotel" />
  266. <End Role="HotelImage" EntitySet="HotelImage" />
  267. </AssociationSet>
  268. <AssociationSet Name="FK_TypeOfTour_Tour1" Association="hotels15Model.FK_TypeOfTour_Tour1">
  269. <End Role="Tour" EntitySet="Tour" />
  270. <End Role="TypeOfTour" EntitySet="TypeOfTour" />
  271. </AssociationSet>
  272. <AssociationSet Name="FK_TypeOfTour_Type" Association="hotels15Model.FK_TypeOfTour_Type">
  273. <End Role="Type" EntitySet="Type" />
  274. <End Role="TypeOfTour" EntitySet="TypeOfTour" />
  275. </AssociationSet>
  276. <AssociationSet Name="HotelOfTour" Association="hotels15Model.HotelOfTour">
  277. <End Role="Hotel" EntitySet="Hotel" />
  278. <End Role="Tour" EntitySet="Tour" />
  279. </AssociationSet>
  280. <FunctionImport Name="sp_alterdiagram">
  281. <Parameter Name="diagramname" Mode="In" Type="String" />
  282. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  283. <Parameter Name="version" Mode="In" Type="Int32" />
  284. <Parameter Name="definition" Mode="In" Type="Binary" />
  285. </FunctionImport>
  286. <FunctionImport Name="sp_creatediagram">
  287. <Parameter Name="diagramname" Mode="In" Type="String" />
  288. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  289. <Parameter Name="version" Mode="In" Type="Int32" />
  290. <Parameter Name="definition" Mode="In" Type="Binary" />
  291. </FunctionImport>
  292. <FunctionImport Name="sp_dropdiagram">
  293. <Parameter Name="diagramname" Mode="In" Type="String" />
  294. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  295. </FunctionImport>
  296. <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(hotels15Model.sp_helpdiagramdefinition_Result)">
  297. <Parameter Name="diagramname" Mode="In" Type="String" />
  298. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  299. </FunctionImport>
  300. <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(hotels15Model.sp_helpdiagrams_Result)">
  301. <Parameter Name="diagramname" Mode="In" Type="String" />
  302. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  303. </FunctionImport>
  304. <FunctionImport Name="sp_renamediagram">
  305. <Parameter Name="diagramname" Mode="In" Type="String" />
  306. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  307. <Parameter Name="new_diagramname" Mode="In" Type="String" />
  308. </FunctionImport>
  309. <FunctionImport Name="sp_upgraddiagrams" />
  310. </EntityContainer>
  311. <EntityType Name="Country">
  312. <Key>
  313. <PropertyRef Name="Code" />
  314. </Key>
  315. <Property Name="Code" Type="String" Nullable="false" MaxLength="2" FixedLength="true" Unicode="true" />
  316. <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  317. <NavigationProperty Name="Hotel" Relationship="hotels15Model.FK_Hotel_Country" FromRole="Country" ToRole="Hotel" />
  318. </EntityType>
  319. <EntityType Name="Hotel">
  320. <Key>
  321. <PropertyRef Name="Id" />
  322. </Key>
  323. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  324. <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  325. <Property Name="CountOfStars" Type="Int32" Nullable="false" />
  326. <Property Name="CountryCode" Type="String" Nullable="false" MaxLength="2" FixedLength="true" Unicode="true" />
  327. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  328. <NavigationProperty Name="Country" Relationship="hotels15Model.FK_Hotel_Country" FromRole="Hotel" ToRole="Country" />
  329. <NavigationProperty Name="HotelComment" Relationship="hotels15Model.FK_HotelComment_Hotel" FromRole="Hotel" ToRole="HotelComment" />
  330. <NavigationProperty Name="HotelImage" Relationship="hotels15Model.FK_HotelImage_Hotel" FromRole="Hotel" ToRole="HotelImage" />
  331. <NavigationProperty Name="Tour" Relationship="hotels15Model.HotelOfTour" FromRole="Hotel" ToRole="Tour" />
  332. </EntityType>
  333. <EntityType Name="HotelComment">
  334. <Key>
  335. <PropertyRef Name="Id" />
  336. </Key>
  337. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  338. <Property Name="HotelId" Type="Int32" Nullable="false" />
  339. <Property Name="Text" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
  340. <Property Name="Author" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  341. <Property Name="CreationDate" Type="DateTime" Nullable="false" Precision="3" />
  342. <NavigationProperty Name="Hotel" Relationship="hotels15Model.FK_HotelComment_Hotel" FromRole="HotelComment" ToRole="Hotel" />
  343. </EntityType>
  344. <EntityType Name="HotelImage">
  345. <Key>
  346. <PropertyRef Name="Id" />
  347. </Key>
  348. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  349. <Property Name="HotelId" Type="Int32" Nullable="false" />
  350. <Property Name="ImageSource" Type="Binary" Nullable="false" MaxLength="Max" FixedLength="false" />
  351. <NavigationProperty Name="Hotel" Relationship="hotels15Model.FK_HotelImage_Hotel" FromRole="HotelImage" ToRole="Hotel" />
  352. </EntityType>
  353. <EntityType Name="sysdiagrams">
  354. <Key>
  355. <PropertyRef Name="diagram_id" />
  356. </Key>
  357. <Property Name="name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  358. <Property Name="principal_id" Type="Int32" Nullable="false" />
  359. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  360. <Property Name="version" Type="Int32" />
  361. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  362. </EntityType>
  363. <EntityType Name="Tour">
  364. <Key>
  365. <PropertyRef Name="Id" />
  366. </Key>
  367. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  368. <Property Name="TicketCount" Type="Int32" Nullable="false" />
  369. <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  370. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  371. <Property Name="ImagePreview" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  372. <Property Name="Price" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
  373. <Property Name="IsActual" Type="Boolean" Nullable="false" />
  374. <NavigationProperty Name="TypeOfTour" Relationship="hotels15Model.FK_TypeOfTour_Tour1" FromRole="Tour" ToRole="TypeOfTour" />
  375. <NavigationProperty Name="Hotel" Relationship="hotels15Model.HotelOfTour" FromRole="Tour" ToRole="Hotel" />
  376. </EntityType>
  377. <EntityType Name="Type">
  378. <Key>
  379. <PropertyRef Name="Id" />
  380. </Key>
  381. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  382. <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  383. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  384. <NavigationProperty Name="TypeOfTour" Relationship="hotels15Model.FK_TypeOfTour_Type" FromRole="Type" ToRole="TypeOfTour" />
  385. </EntityType>
  386. <EntityType Name="TypeOfTour">
  387. <Key>
  388. <PropertyRef Name="ID" />
  389. </Key>
  390. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  391. <Property Name="TourId" Type="Int32" Nullable="false" />
  392. <Property Name="TypeId" Type="Int32" Nullable="false" />
  393. <NavigationProperty Name="Tour" Relationship="hotels15Model.FK_TypeOfTour_Tour1" FromRole="TypeOfTour" ToRole="Tour" />
  394. <NavigationProperty Name="Type" Relationship="hotels15Model.FK_TypeOfTour_Type" FromRole="TypeOfTour" ToRole="Type" />
  395. </EntityType>
  396. <Association Name="FK_Hotel_Country">
  397. <End Type="hotels15Model.Country" Role="Country" Multiplicity="1" />
  398. <End Type="hotels15Model.Hotel" Role="Hotel" Multiplicity="*" />
  399. <ReferentialConstraint>
  400. <Principal Role="Country">
  401. <PropertyRef Name="Code" />
  402. </Principal>
  403. <Dependent Role="Hotel">
  404. <PropertyRef Name="CountryCode" />
  405. </Dependent>
  406. </ReferentialConstraint>
  407. </Association>
  408. <Association Name="FK_HotelComment_Hotel">
  409. <End Type="hotels15Model.Hotel" Role="Hotel" Multiplicity="1" />
  410. <End Type="hotels15Model.HotelComment" Role="HotelComment" Multiplicity="*" />
  411. <ReferentialConstraint>
  412. <Principal Role="Hotel">
  413. <PropertyRef Name="Id" />
  414. </Principal>
  415. <Dependent Role="HotelComment">
  416. <PropertyRef Name="HotelId" />
  417. </Dependent>
  418. </ReferentialConstraint>
  419. </Association>
  420. <Association Name="FK_HotelImage_Hotel">
  421. <End Type="hotels15Model.Hotel" Role="Hotel" Multiplicity="1" />
  422. <End Type="hotels15Model.HotelImage" Role="HotelImage" Multiplicity="*" />
  423. <ReferentialConstraint>
  424. <Principal Role="Hotel">
  425. <PropertyRef Name="Id" />
  426. </Principal>
  427. <Dependent Role="HotelImage">
  428. <PropertyRef Name="HotelId" />
  429. </Dependent>
  430. </ReferentialConstraint>
  431. </Association>
  432. <Association Name="FK_TypeOfTour_Tour1">
  433. <End Type="hotels15Model.Tour" Role="Tour" Multiplicity="1" />
  434. <End Type="hotels15Model.TypeOfTour" Role="TypeOfTour" Multiplicity="*" />
  435. <ReferentialConstraint>
  436. <Principal Role="Tour">
  437. <PropertyRef Name="Id" />
  438. </Principal>
  439. <Dependent Role="TypeOfTour">
  440. <PropertyRef Name="TourId" />
  441. </Dependent>
  442. </ReferentialConstraint>
  443. </Association>
  444. <Association Name="FK_TypeOfTour_Type">
  445. <End Type="hotels15Model.Type" Role="Type" Multiplicity="1" />
  446. <End Type="hotels15Model.TypeOfTour" Role="TypeOfTour" Multiplicity="*" />
  447. <ReferentialConstraint>
  448. <Principal Role="Type">
  449. <PropertyRef Name="Id" />
  450. </Principal>
  451. <Dependent Role="TypeOfTour">
  452. <PropertyRef Name="TypeId" />
  453. </Dependent>
  454. </ReferentialConstraint>
  455. </Association>
  456. <Association Name="HotelOfTour">
  457. <End Type="hotels15Model.Hotel" Role="Hotel" Multiplicity="*" />
  458. <End Type="hotels15Model.Tour" Role="Tour" Multiplicity="*" />
  459. </Association>
  460. <ComplexType Name="sp_helpdiagramdefinition_Result">
  461. <Property Type="Int32" Name="version" Nullable="true" />
  462. <Property Type="Binary" Name="definition" Nullable="true" />
  463. </ComplexType>
  464. <ComplexType Name="sp_helpdiagrams_Result">
  465. <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
  466. <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
  467. <Property Type="Int32" Name="ID" Nullable="false" />
  468. <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
  469. <Property Type="Int32" Name="OwnerID" Nullable="false" />
  470. </ComplexType>
  471. </Schema>
  472. </edmx:ConceptualModels>
  473. <!-- C-S mapping content -->
  474. <edmx:Mappings>
  475. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  476. <EntityContainerMapping StorageEntityContainer="Хранилище hotels15ModelContainer" CdmEntityContainer="Entities">
  477. <EntitySetMapping Name="Country">
  478. <EntityTypeMapping TypeName="hotels15Model.Country">
  479. <MappingFragment StoreEntitySet="Country">
  480. <ScalarProperty Name="Name" ColumnName="Name" />
  481. <ScalarProperty Name="Code" ColumnName="Code" />
  482. </MappingFragment>
  483. </EntityTypeMapping>
  484. </EntitySetMapping>
  485. <EntitySetMapping Name="Hotel">
  486. <EntityTypeMapping TypeName="hotels15Model.Hotel">
  487. <MappingFragment StoreEntitySet="Hotel">
  488. <ScalarProperty Name="Description" ColumnName="Description" />
  489. <ScalarProperty Name="CountryCode" ColumnName="CountryCode" />
  490. <ScalarProperty Name="CountOfStars" ColumnName="CountOfStars" />
  491. <ScalarProperty Name="Name" ColumnName="Name" />
  492. <ScalarProperty Name="Id" ColumnName="Id" />
  493. </MappingFragment>
  494. </EntityTypeMapping>
  495. </EntitySetMapping>
  496. <EntitySetMapping Name="HotelComment">
  497. <EntityTypeMapping TypeName="hotels15Model.HotelComment">
  498. <MappingFragment StoreEntitySet="HotelComment">
  499. <ScalarProperty Name="CreationDate" ColumnName="CreationDate" />
  500. <ScalarProperty Name="Author" ColumnName="Author" />
  501. <ScalarProperty Name="Text" ColumnName="Text" />
  502. <ScalarProperty Name="HotelId" ColumnName="HotelId" />
  503. <ScalarProperty Name="Id" ColumnName="Id" />
  504. </MappingFragment>
  505. </EntityTypeMapping>
  506. </EntitySetMapping>
  507. <EntitySetMapping Name="HotelImage">
  508. <EntityTypeMapping TypeName="hotels15Model.HotelImage">
  509. <MappingFragment StoreEntitySet="HotelImage">
  510. <ScalarProperty Name="ImageSource" ColumnName="ImageSource" />
  511. <ScalarProperty Name="HotelId" ColumnName="HotelId" />
  512. <ScalarProperty Name="Id" ColumnName="Id" />
  513. </MappingFragment>
  514. </EntityTypeMapping>
  515. </EntitySetMapping>
  516. <EntitySetMapping Name="sysdiagrams">
  517. <EntityTypeMapping TypeName="hotels15Model.sysdiagrams">
  518. <MappingFragment StoreEntitySet="sysdiagrams">
  519. <ScalarProperty Name="definition" ColumnName="definition" />
  520. <ScalarProperty Name="version" ColumnName="version" />
  521. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  522. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  523. <ScalarProperty Name="name" ColumnName="name" />
  524. </MappingFragment>
  525. </EntityTypeMapping>
  526. </EntitySetMapping>
  527. <EntitySetMapping Name="Tour">
  528. <EntityTypeMapping TypeName="hotels15Model.Tour">
  529. <MappingFragment StoreEntitySet="Tour">
  530. <ScalarProperty Name="IsActual" ColumnName="IsActual" />
  531. <ScalarProperty Name="Price" ColumnName="Price" />
  532. <ScalarProperty Name="ImagePreview" ColumnName="ImagePreview" />
  533. <ScalarProperty Name="Description" ColumnName="Description" />
  534. <ScalarProperty Name="Name" ColumnName="Name" />
  535. <ScalarProperty Name="TicketCount" ColumnName="TicketCount" />
  536. <ScalarProperty Name="Id" ColumnName="Id" />
  537. </MappingFragment>
  538. </EntityTypeMapping>
  539. </EntitySetMapping>
  540. <EntitySetMapping Name="Type">
  541. <EntityTypeMapping TypeName="hotels15Model.Type">
  542. <MappingFragment StoreEntitySet="Type">
  543. <ScalarProperty Name="Description" ColumnName="Description" />
  544. <ScalarProperty Name="Name" ColumnName="Name" />
  545. <ScalarProperty Name="Id" ColumnName="Id" />
  546. </MappingFragment>
  547. </EntityTypeMapping>
  548. </EntitySetMapping>
  549. <EntitySetMapping Name="TypeOfTour">
  550. <EntityTypeMapping TypeName="hotels15Model.TypeOfTour">
  551. <MappingFragment StoreEntitySet="TypeOfTour">
  552. <ScalarProperty Name="TypeId" ColumnName="TypeId" />
  553. <ScalarProperty Name="TourId" ColumnName="TourId" />
  554. <ScalarProperty Name="ID" ColumnName="ID" />
  555. </MappingFragment>
  556. </EntityTypeMapping>
  557. </EntitySetMapping>
  558. <AssociationSetMapping Name="HotelOfTour" TypeName="hotels15Model.HotelOfTour" StoreEntitySet="HotelOfTour">
  559. <EndProperty Name="Tour">
  560. <ScalarProperty Name="Id" ColumnName="TourId" />
  561. </EndProperty>
  562. <EndProperty Name="Hotel">
  563. <ScalarProperty Name="Id" ColumnName="HotelId" />
  564. </EndProperty>
  565. </AssociationSetMapping>
  566. <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище hotels15Model.sp_alterdiagram" />
  567. <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище hotels15Model.sp_creatediagram" />
  568. <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище hotels15Model.sp_dropdiagram" />
  569. <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище hotels15Model.sp_helpdiagramdefinition">
  570. <ResultMapping>
  571. <ComplexTypeMapping TypeName="hotels15Model.sp_helpdiagramdefinition_Result">
  572. <ScalarProperty Name="version" ColumnName="version" />
  573. <ScalarProperty Name="definition" ColumnName="definition" />
  574. </ComplexTypeMapping>
  575. </ResultMapping>
  576. </FunctionImportMapping>
  577. <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище hotels15Model.sp_helpdiagrams">
  578. <ResultMapping>
  579. <ComplexTypeMapping TypeName="hotels15Model.sp_helpdiagrams_Result">
  580. <ScalarProperty Name="Database" ColumnName="Database" />
  581. <ScalarProperty Name="Name" ColumnName="Name" />
  582. <ScalarProperty Name="ID" ColumnName="ID" />
  583. <ScalarProperty Name="Owner" ColumnName="Owner" />
  584. <ScalarProperty Name="OwnerID" ColumnName="OwnerID" />
  585. </ComplexTypeMapping>
  586. </ResultMapping>
  587. </FunctionImportMapping>
  588. <FunctionImportMapping FunctionImportName="sp_renamediagram" FunctionName="Хранилище hotels15Model.sp_renamediagram" />
  589. <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище hotels15Model.sp_upgraddiagrams" />
  590. </EntityContainerMapping>
  591. </Mapping>
  592. </edmx:Mappings>
  593. </edmx:Runtime>
  594. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  595. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  596. <Connection>
  597. <DesignerInfoPropertySet>
  598. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  599. </DesignerInfoPropertySet>
  600. </Connection>
  601. <Options>
  602. <DesignerInfoPropertySet>
  603. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  604. <DesignerProperty Name="EnablePluralization" Value="false" />
  605. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  606. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  607. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  608. </DesignerInfoPropertySet>
  609. </Options>
  610. <!-- Diagram content (shape and connector positions) -->
  611. <Diagrams></Diagrams>
  612. </Designer>
  613. </edmx:Edmx>