base1.edmx 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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="Хранилище ToursBaseModel" 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="10" Nullable="false" />
  13. <Property Name="Name" Type="nchar" MaxLength="10" />
  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" />
  21. <Property Name="CountOfStars" Type="int" />
  22. <Property Name="CountryCode" Type="nchar" MaxLength="2" />
  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="100" />
  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="nchar" MaxLength="10" />
  41. </EntityType>
  42. <EntityType Name="sysdiagrams">
  43. <Key>
  44. <PropertyRef Name="diagram_id" />
  45. </Key>
  46. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  47. <Property Name="principal_id" Type="int" Nullable="false" />
  48. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  49. <Property Name="version" Type="int" />
  50. <Property Name="definition" Type="varbinary(max)" />
  51. </EntityType>
  52. <EntityType Name="Tour">
  53. <Key>
  54. <PropertyRef Name="id" />
  55. </Key>
  56. <Property Name="id" Type="int" Nullable="false" />
  57. <Property Name="TicketCount" Type="int" />
  58. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  59. <Property Name="Description" Type="nvarchar(max)" />
  60. <Property Name="ImagePreview" Type="varbinary(max)" />
  61. <Property Name="Price" Type="money" />
  62. <Property Name="isActual" Type="bit" />
  63. </EntityType>
  64. <EntityType Name="Type">
  65. <Key>
  66. <PropertyRef Name="id" />
  67. </Key>
  68. <Property Name="id" Type="int" Nullable="false" />
  69. <Property Name="Name" Type="nvarchar" MaxLength="100" />
  70. <Property Name="Description" Type="nvarchar(max)" />
  71. </EntityType>
  72. <EntityContainer Name="Хранилище ToursBaseModelContainer">
  73. <EntitySet Name="Country" EntityType="Self.Country" Schema="dbo" store:Type="Tables" />
  74. <EntitySet Name="Hotel" EntityType="Self.Hotel" Schema="dbo" store:Type="Tables" />
  75. <EntitySet Name="HotelComment" EntityType="Self.HotelComment" Schema="dbo" store:Type="Tables" />
  76. <EntitySet Name="Hotelimage" EntityType="Self.Hotelimage" Schema="dbo" store:Type="Tables" />
  77. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  78. <EntitySet Name="Tour" EntityType="Self.Tour" Schema="dbo" store:Type="Tables" />
  79. <EntitySet Name="Type" EntityType="Self.Type" Schema="dbo" store:Type="Tables" />
  80. </EntityContainer>
  81. </Schema>
  82. </edmx:StorageModels>
  83. <!-- CSDL content -->
  84. <edmx:ConceptualModels>
  85. <Schema Namespace="ToursBaseModel" 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">
  86. <EntityType Name="Country">
  87. <Key>
  88. <PropertyRef Name="code" />
  89. </Key>
  90. <Property Name="code" Type="String" MaxLength="10" FixedLength="true" Unicode="true" Nullable="false" />
  91. <Property Name="Name" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
  92. </EntityType>
  93. <EntityType Name="Hotel">
  94. <Key>
  95. <PropertyRef Name="id" />
  96. </Key>
  97. <Property Name="id" Type="Int32" Nullable="false" />
  98. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  99. <Property Name="CountOfStars" Type="Int32" />
  100. <Property Name="CountryCode" Type="String" MaxLength="2" FixedLength="true" Unicode="true" />
  101. </EntityType>
  102. <EntityType Name="HotelComment">
  103. <Key>
  104. <PropertyRef Name="id" />
  105. </Key>
  106. <Property Name="id" Type="Int32" Nullable="false" />
  107. <Property Name="Hotelid" Type="Int32" />
  108. <Property Name="Text" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  109. <Property Name="Author" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  110. <Property Name="CreationDate" Type="DateTime" Precision="3" />
  111. </EntityType>
  112. <EntityType Name="Hotelimage">
  113. <Key>
  114. <PropertyRef Name="id" />
  115. </Key>
  116. <Property Name="id" Type="Int32" Nullable="false" />
  117. <Property Name="Hotelid" Type="Int32" />
  118. <Property Name="ImageSource" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
  119. </EntityType>
  120. <EntityType Name="sysdiagrams">
  121. <Key>
  122. <PropertyRef Name="diagram_id" />
  123. </Key>
  124. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  125. <Property Name="principal_id" Type="Int32" Nullable="false" />
  126. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  127. <Property Name="version" Type="Int32" />
  128. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  129. </EntityType>
  130. <EntityType Name="Tour">
  131. <Key>
  132. <PropertyRef Name="id" />
  133. </Key>
  134. <Property Name="id" Type="Int32" Nullable="false" />
  135. <Property Name="TicketCount" Type="Int32" />
  136. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  137. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  138. <Property Name="ImagePreview" Type="Binary" MaxLength="Max" FixedLength="false" />
  139. <Property Name="Price" Type="Decimal" Precision="19" Scale="4" />
  140. <Property Name="isActual" Type="Boolean" />
  141. </EntityType>
  142. <EntityType Name="Type">
  143. <Key>
  144. <PropertyRef Name="id" />
  145. </Key>
  146. <Property Name="id" Type="Int32" Nullable="false" />
  147. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  148. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  149. </EntityType>
  150. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  151. <EntitySet Name="Country" EntityType="Self.Country" />
  152. <EntitySet Name="Hotel" EntityType="Self.Hotel" />
  153. <EntitySet Name="HotelComment" EntityType="Self.HotelComment" />
  154. <EntitySet Name="Hotelimage" EntityType="Self.Hotelimage" />
  155. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  156. <EntitySet Name="Tour" EntityType="Self.Tour" />
  157. <EntitySet Name="Type" EntityType="Self.Type" />
  158. <EntitySet Name="TypeOfTourSet" EntityType="ToursBaseModel.TypeOfTour" />
  159. </EntityContainer>
  160. <EntityType Name="TypeOfTour">
  161. <Key>
  162. <PropertyRef Name="TourId" />
  163. <PropertyRef Name="TypeId" />
  164. </Key>
  165. <Property Name="TourId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  166. <Property Name="TypeId" Type="String" Nullable="false" />
  167. </EntityType>
  168. </Schema>
  169. </edmx:ConceptualModels>
  170. <!-- C-S mapping content -->
  171. <edmx:Mappings>
  172. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  173. <EntityContainerMapping StorageEntityContainer="Хранилище ToursBaseModelContainer" CdmEntityContainer="Entities">
  174. <EntitySetMapping Name="Country">
  175. <EntityTypeMapping TypeName="ToursBaseModel.Country">
  176. <MappingFragment StoreEntitySet="Country">
  177. <ScalarProperty Name="code" ColumnName="code" />
  178. <ScalarProperty Name="Name" ColumnName="Name" />
  179. </MappingFragment>
  180. </EntityTypeMapping>
  181. </EntitySetMapping>
  182. <EntitySetMapping Name="Hotel">
  183. <EntityTypeMapping TypeName="ToursBaseModel.Hotel">
  184. <MappingFragment StoreEntitySet="Hotel">
  185. <ScalarProperty Name="id" ColumnName="id" />
  186. <ScalarProperty Name="Name" ColumnName="Name" />
  187. <ScalarProperty Name="CountOfStars" ColumnName="CountOfStars" />
  188. <ScalarProperty Name="CountryCode" ColumnName="CountryCode" />
  189. </MappingFragment>
  190. </EntityTypeMapping>
  191. </EntitySetMapping>
  192. <EntitySetMapping Name="HotelComment">
  193. <EntityTypeMapping TypeName="ToursBaseModel.HotelComment">
  194. <MappingFragment StoreEntitySet="HotelComment">
  195. <ScalarProperty Name="id" ColumnName="id" />
  196. <ScalarProperty Name="Hotelid" ColumnName="Hotelid" />
  197. <ScalarProperty Name="Text" ColumnName="Text" />
  198. <ScalarProperty Name="Author" ColumnName="Author" />
  199. <ScalarProperty Name="CreationDate" ColumnName="CreationDate" />
  200. </MappingFragment>
  201. </EntityTypeMapping>
  202. </EntitySetMapping>
  203. <EntitySetMapping Name="Hotelimage">
  204. <EntityTypeMapping TypeName="ToursBaseModel.Hotelimage">
  205. <MappingFragment StoreEntitySet="Hotelimage">
  206. <ScalarProperty Name="id" ColumnName="id" />
  207. <ScalarProperty Name="Hotelid" ColumnName="Hotelid" />
  208. <ScalarProperty Name="ImageSource" ColumnName="ImageSource" />
  209. </MappingFragment>
  210. </EntityTypeMapping>
  211. </EntitySetMapping>
  212. <EntitySetMapping Name="sysdiagrams">
  213. <EntityTypeMapping TypeName="ToursBaseModel.sysdiagrams">
  214. <MappingFragment StoreEntitySet="sysdiagrams">
  215. <ScalarProperty Name="name" ColumnName="name" />
  216. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  217. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  218. <ScalarProperty Name="version" ColumnName="version" />
  219. <ScalarProperty Name="definition" ColumnName="definition" />
  220. </MappingFragment>
  221. </EntityTypeMapping>
  222. </EntitySetMapping>
  223. <EntitySetMapping Name="Tour">
  224. <EntityTypeMapping TypeName="ToursBaseModel.Tour">
  225. <MappingFragment StoreEntitySet="Tour">
  226. <ScalarProperty Name="id" ColumnName="id" />
  227. <ScalarProperty Name="TicketCount" ColumnName="TicketCount" />
  228. <ScalarProperty Name="Name" ColumnName="Name" />
  229. <ScalarProperty Name="Description" ColumnName="Description" />
  230. <ScalarProperty Name="ImagePreview" ColumnName="ImagePreview" />
  231. <ScalarProperty Name="Price" ColumnName="Price" />
  232. <ScalarProperty Name="isActual" ColumnName="isActual" />
  233. </MappingFragment>
  234. </EntityTypeMapping>
  235. </EntitySetMapping>
  236. <EntitySetMapping Name="Type">
  237. <EntityTypeMapping TypeName="ToursBaseModel.Type">
  238. <MappingFragment StoreEntitySet="Type">
  239. <ScalarProperty Name="id" ColumnName="id" />
  240. <ScalarProperty Name="Name" ColumnName="Name" />
  241. <ScalarProperty Name="Description" ColumnName="Description" />
  242. </MappingFragment>
  243. </EntityTypeMapping>
  244. </EntitySetMapping>
  245. </EntityContainerMapping>
  246. </Mapping>
  247. </edmx:Mappings>
  248. </edmx:Runtime>
  249. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  250. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  251. <Connection>
  252. <DesignerInfoPropertySet>
  253. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  254. </DesignerInfoPropertySet>
  255. </Connection>
  256. <Options>
  257. <DesignerInfoPropertySet>
  258. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  259. <DesignerProperty Name="EnablePluralization" Value="false" />
  260. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  261. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  262. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  263. </DesignerInfoPropertySet>
  264. </Options>
  265. <!-- Diagram content (shape and connector positions) -->
  266. <Diagrams></Diagrams>
  267. </Designer>
  268. </edmx:Edmx>