Model1.edmx 31 KB

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