MyModel.edmx 31 KB

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