Model1.ssdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <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">
  3. <EntityType Name="Country">
  4. <Key>
  5. <PropertyRef Name="Code" />
  6. </Key>
  7. <Property Name="Code" Type="nvarchar" MaxLength="50" Nullable="false" />
  8. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  9. </EntityType>
  10. <EntityType Name="Hotel">
  11. <Key>
  12. <PropertyRef Name="id" />
  13. </Key>
  14. <Property Name="id" Type="int" Nullable="false" />
  15. <Property Name="name" Type="nvarchar" MaxLength="50" />
  16. <Property Name="countOfStars" Type="int" />
  17. <Property Name="countryCode" Type="nvarchar" MaxLength="50" />
  18. </EntityType>
  19. <EntityType Name="HotelComment">
  20. <Key>
  21. <PropertyRef Name="id" />
  22. </Key>
  23. <Property Name="id" Type="int" Nullable="false" />
  24. <Property Name="Hotelid" Type="int" />
  25. <Property Name="Text" Type="nvarchar(max)" />
  26. <Property Name="Author" Type="nvarchar" MaxLength="50" />
  27. <Property Name="CreationDate" Type="datetime" />
  28. </EntityType>
  29. <EntityType Name="Hotelimage">
  30. <Key>
  31. <PropertyRef Name="id" />
  32. </Key>
  33. <Property Name="id" Type="int" Nullable="false" />
  34. <Property Name="Hotelid" Type="int" />
  35. <Property Name="ImageSource" Type="nvarchar(max)" />
  36. </EntityType>
  37. <EntityType Name="hoteOftour">
  38. <Key>
  39. <PropertyRef Name="hoteld" />
  40. <PropertyRef Name="tound" />
  41. </Key>
  42. <Property Name="hoteld" Type="int" Nullable="false" />
  43. <Property Name="tound" Type="int" Nullable="false" />
  44. </EntityType>
  45. <EntityType Name="sysdiagrams">
  46. <Key>
  47. <PropertyRef Name="diagram_id" />
  48. </Key>
  49. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  50. <Property Name="principal_id" Type="int" Nullable="false" />
  51. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  52. <Property Name="version" Type="int" />
  53. <Property Name="definition" Type="varbinary(max)" />
  54. </EntityType>
  55. <EntityType Name="Tour">
  56. <Key>
  57. <PropertyRef Name="id" />
  58. </Key>
  59. <Property Name="id" Type="int" Nullable="false" />
  60. <Property Name="TicketCount" Type="int" />
  61. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  62. <Property Name="Description" Type="nvarchar(max)" />
  63. <Property Name="ImagePreview" Type="nvarchar(max)" />
  64. <Property Name="Price" Type="money" />
  65. <Property Name="isActual" Type="bit" />
  66. </EntityType>
  67. <EntityType Name="type">
  68. <Key>
  69. <PropertyRef Name="id" />
  70. </Key>
  71. <Property Name="id" Type="int" Nullable="false" />
  72. <Property Name="dezipbion" Type="nvarchar" MaxLength="50" />
  73. <Property Name="demcribion" Type="nvarchar(max)" />
  74. </EntityType>
  75. <EntityType Name="typeOFtour">
  76. <Key>
  77. <PropertyRef Name="tould" />
  78. <PropertyRef Name="typeld" />
  79. </Key>
  80. <Property Name="tould" Type="int" Nullable="false" />
  81. <Property Name="typeld" Type="int" Nullable="false" />
  82. </EntityType>
  83. <Association Name="FK_Hotel_Country">
  84. <End Role="Country" Type="Self.Country" Multiplicity="0..1" />
  85. <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
  86. <ReferentialConstraint>
  87. <Principal Role="Country">
  88. <PropertyRef Name="Code" />
  89. </Principal>
  90. <Dependent Role="Hotel">
  91. <PropertyRef Name="name" />
  92. </Dependent>
  93. </ReferentialConstraint>
  94. </Association>
  95. <Association Name="FK_HotelComment_Hotel">
  96. <End Role="Hotel" Type="Self.Hotel" Multiplicity="0..1" />
  97. <End Role="HotelComment" Type="Self.HotelComment" Multiplicity="*" />
  98. <ReferentialConstraint>
  99. <Principal Role="Hotel">
  100. <PropertyRef Name="id" />
  101. </Principal>
  102. <Dependent Role="HotelComment">
  103. <PropertyRef Name="Hotelid" />
  104. </Dependent>
  105. </ReferentialConstraint>
  106. </Association>
  107. <Association Name="FK_Hotelimage_Hotel">
  108. <End Role="Hotel" Type="Self.Hotel" Multiplicity="0..1" />
  109. <End Role="Hotelimage" Type="Self.Hotelimage" Multiplicity="*" />
  110. <ReferentialConstraint>
  111. <Principal Role="Hotel">
  112. <PropertyRef Name="id" />
  113. </Principal>
  114. <Dependent Role="Hotelimage">
  115. <PropertyRef Name="Hotelid" />
  116. </Dependent>
  117. </ReferentialConstraint>
  118. </Association>
  119. <Association Name="FK_hoteOftour_Hotel">
  120. <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
  121. <End Role="hoteOftour" Type="Self.hoteOftour" Multiplicity="*" />
  122. <ReferentialConstraint>
  123. <Principal Role="Hotel">
  124. <PropertyRef Name="id" />
  125. </Principal>
  126. <Dependent Role="hoteOftour">
  127. <PropertyRef Name="tound" />
  128. </Dependent>
  129. </ReferentialConstraint>
  130. </Association>
  131. <Association Name="FK_hoteOftour_Tour">
  132. <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
  133. <End Role="hoteOftour" Type="Self.hoteOftour" Multiplicity="*" />
  134. <ReferentialConstraint>
  135. <Principal Role="Tour">
  136. <PropertyRef Name="id" />
  137. </Principal>
  138. <Dependent Role="hoteOftour">
  139. <PropertyRef Name="hoteld" />
  140. </Dependent>
  141. </ReferentialConstraint>
  142. </Association>
  143. <Association Name="FK_typeOFtour_Tour">
  144. <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
  145. <End Role="typeOFtour" Type="Self.typeOFtour" Multiplicity="*" />
  146. <ReferentialConstraint>
  147. <Principal Role="Tour">
  148. <PropertyRef Name="id" />
  149. </Principal>
  150. <Dependent Role="typeOFtour">
  151. <PropertyRef Name="tould" />
  152. </Dependent>
  153. </ReferentialConstraint>
  154. </Association>
  155. <Association Name="FK_typeOFtour_type">
  156. <End Role="type" Type="Self.type" Multiplicity="1" />
  157. <End Role="typeOFtour" Type="Self.typeOFtour" Multiplicity="*" />
  158. <ReferentialConstraint>
  159. <Principal Role="type">
  160. <PropertyRef Name="id" />
  161. </Principal>
  162. <Dependent Role="typeOFtour">
  163. <PropertyRef Name="typeld" />
  164. </Dependent>
  165. </ReferentialConstraint>
  166. </Association>
  167. <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
  168. <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  169. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  170. <Parameter Name="owner_id" Type="int" Mode="In" />
  171. <Parameter Name="version" Type="int" Mode="In" />
  172. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  173. </Function>
  174. <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  175. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  176. <Parameter Name="owner_id" Type="int" Mode="In" />
  177. <Parameter Name="version" Type="int" Mode="In" />
  178. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  179. </Function>
  180. <Function Name="sp_dropdiagram" 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_helpdiagramdefinition" 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_helpdiagrams" 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. </Function>
  192. <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  193. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  194. <Parameter Name="owner_id" Type="int" Mode="In" />
  195. <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
  196. </Function>
  197. <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  198. <EntityContainer Name="Хранилище BobrovTournModelContainer">
  199. <EntitySet Name="Country" EntityType="Self.Country" Schema="dbo" store:Type="Tables" />
  200. <EntitySet Name="Hotel" EntityType="Self.Hotel" Schema="dbo" store:Type="Tables" />
  201. <EntitySet Name="HotelComment" EntityType="Self.HotelComment" Schema="dbo" store:Type="Tables" />
  202. <EntitySet Name="Hotelimage" EntityType="Self.Hotelimage" Schema="dbo" store:Type="Tables" />
  203. <EntitySet Name="hoteOftour" EntityType="Self.hoteOftour" Schema="dbo" store:Type="Tables" />
  204. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  205. <EntitySet Name="Tour" EntityType="Self.Tour" Schema="dbo" store:Type="Tables" />
  206. <EntitySet Name="type" EntityType="Self.type" Schema="dbo" store:Type="Tables" />
  207. <EntitySet Name="typeOFtour" EntityType="Self.typeOFtour" Schema="dbo" store:Type="Tables" />
  208. <AssociationSet Name="FK_Hotel_Country" Association="Self.FK_Hotel_Country">
  209. <End Role="Country" EntitySet="Country" />
  210. <End Role="Hotel" EntitySet="Hotel" />
  211. </AssociationSet>
  212. <AssociationSet Name="FK_HotelComment_Hotel" Association="Self.FK_HotelComment_Hotel">
  213. <End Role="Hotel" EntitySet="Hotel" />
  214. <End Role="HotelComment" EntitySet="HotelComment" />
  215. </AssociationSet>
  216. <AssociationSet Name="FK_Hotelimage_Hotel" Association="Self.FK_Hotelimage_Hotel">
  217. <End Role="Hotel" EntitySet="Hotel" />
  218. <End Role="Hotelimage" EntitySet="Hotelimage" />
  219. </AssociationSet>
  220. <AssociationSet Name="FK_hoteOftour_Hotel" Association="Self.FK_hoteOftour_Hotel">
  221. <End Role="Hotel" EntitySet="Hotel" />
  222. <End Role="hoteOftour" EntitySet="hoteOftour" />
  223. </AssociationSet>
  224. <AssociationSet Name="FK_hoteOftour_Tour" Association="Self.FK_hoteOftour_Tour">
  225. <End Role="Tour" EntitySet="Tour" />
  226. <End Role="hoteOftour" EntitySet="hoteOftour" />
  227. </AssociationSet>
  228. <AssociationSet Name="FK_typeOFtour_Tour" Association="Self.FK_typeOFtour_Tour">
  229. <End Role="Tour" EntitySet="Tour" />
  230. <End Role="typeOFtour" EntitySet="typeOFtour" />
  231. </AssociationSet>
  232. <AssociationSet Name="FK_typeOFtour_type" Association="Self.FK_typeOFtour_type">
  233. <End Role="type" EntitySet="type" />
  234. <End Role="typeOFtour" EntitySet="typeOFtour" />
  235. </AssociationSet>
  236. </EntityContainer>
  237. </Schema>