Model1.edmx 33 KB

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