Model2.edmx 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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="Хранилище Model" 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. <!--Ошибки, обнаруженные при создании:
  9. предупреждение 6002: В таблице или представлении "ECCD2F35-7493-4889-BCD0-C5E3CF08F0D3.dbo.AuthorizationTable" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
  10. <EntityType Name="AuthorizationTable">
  11. <Key>
  12. <PropertyRef Name="login" />
  13. <PropertyRef Name="password" />
  14. </Key>
  15. <Property Name="login" Type="nvarchar" MaxLength="20" Nullable="false" />
  16. <Property Name="password" Type="nvarchar" MaxLength="8" Nullable="false" />
  17. </EntityType>
  18. <EntityType Name="Roads">
  19. <Key>
  20. <PropertyRef Name="roadID" />
  21. </Key>
  22. <Property Name="roadID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  23. <Property Name="nameRoad" Type="nvarchar" MaxLength="40" Nullable="false" />
  24. <Property Name="typeRoad" Type="nvarchar" MaxLength="20" Nullable="false" />
  25. <Property Name="categoryQuality" Type="nvarchar" MaxLength="20" Nullable="false" />
  26. </EntityType>
  27. <EntityType Name="Stations">
  28. <Key>
  29. <PropertyRef Name="stationID" />
  30. </Key>
  31. <Property Name="stationID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  32. <Property Name="typeStationID" Type="int" Nullable="false" />
  33. <Property Name="nameStation" Type="nvarchar" MaxLength="40" Nullable="false" />
  34. <Property Name="image" Type="image" />
  35. <Property Name="overheadTransition" Type="bit" Nullable="false" />
  36. <Property Name="location" Type="nvarchar" MaxLength="50" Nullable="false" />
  37. </EntityType>
  38. <EntityType Name="Stations_Roads">
  39. <Key>
  40. <PropertyRef Name="stationID" />
  41. <PropertyRef Name="roadID" />
  42. </Key>
  43. <Property Name="stationID" Type="int" Nullable="false" />
  44. <Property Name="roadID" Type="int" Nullable="false" />
  45. </EntityType>
  46. <EntityType Name="TypeStation">
  47. <Key>
  48. <PropertyRef Name="typeStationID" />
  49. </Key>
  50. <Property Name="typeStationID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  51. <Property Name="nameTypeStation" Type="nvarchar" MaxLength="40" Nullable="false" />
  52. <Property Name="passagerService" Type="bit" Nullable="false" />
  53. </EntityType>
  54. <Association Name="FK_Stations">
  55. <End Role="TypeStation" Type="Self.TypeStation" Multiplicity="1" />
  56. <End Role="Stations" Type="Self.Stations" Multiplicity="*" />
  57. <ReferentialConstraint>
  58. <Principal Role="TypeStation">
  59. <PropertyRef Name="typeStationID" />
  60. </Principal>
  61. <Dependent Role="Stations">
  62. <PropertyRef Name="typeStationID" />
  63. </Dependent>
  64. </ReferentialConstraint>
  65. </Association>
  66. <Association Name="FK1_Stations_Roads">
  67. <End Role="Stations" Type="Self.Stations" Multiplicity="1">
  68. <OnDelete Action="Cascade" />
  69. </End>
  70. <End Role="Stations_Roads" Type="Self.Stations_Roads" Multiplicity="*" />
  71. <ReferentialConstraint>
  72. <Principal Role="Stations">
  73. <PropertyRef Name="stationID" />
  74. </Principal>
  75. <Dependent Role="Stations_Roads">
  76. <PropertyRef Name="stationID" />
  77. </Dependent>
  78. </ReferentialConstraint>
  79. </Association>
  80. <Association Name="FK2_Stations_Roads">
  81. <End Role="Roads" Type="Self.Roads" Multiplicity="1">
  82. <OnDelete Action="Cascade" />
  83. </End>
  84. <End Role="Stations_Roads" Type="Self.Stations_Roads" Multiplicity="*" />
  85. <ReferentialConstraint>
  86. <Principal Role="Roads">
  87. <PropertyRef Name="roadID" />
  88. </Principal>
  89. <Dependent Role="Stations_Roads">
  90. <PropertyRef Name="roadID" />
  91. </Dependent>
  92. </ReferentialConstraint>
  93. </Association>
  94. <EntityContainer Name="Хранилище ModelContainer">
  95. <EntitySet Name="Roads" EntityType="Self.Roads" Schema="dbo" store:Type="Tables" />
  96. <EntitySet Name="Stations" EntityType="Self.Stations" Schema="dbo" store:Type="Tables" />
  97. <EntitySet Name="Stations_Roads" EntityType="Self.Stations_Roads" Schema="dbo" store:Type="Tables" />
  98. <EntitySet Name="TypeStation" EntityType="Self.TypeStation" Schema="dbo" store:Type="Tables" />
  99. <EntitySet Name="AuthorizationTable" EntityType="Self.AuthorizationTable" store:Type="Tables" store:Schema="dbo">
  100. <DefiningQuery>SELECT
  101. [AuthorizationTable].[login] AS [login],
  102. [AuthorizationTable].[password] AS [password]
  103. FROM [dbo].[AuthorizationTable] AS [AuthorizationTable]</DefiningQuery>
  104. </EntitySet>
  105. <AssociationSet Name="FK_Stations" Association="Self.FK_Stations">
  106. <End Role="TypeStation" EntitySet="TypeStation" />
  107. <End Role="Stations" EntitySet="Stations" />
  108. </AssociationSet>
  109. <AssociationSet Name="FK1_Stations_Roads" Association="Self.FK1_Stations_Roads">
  110. <End Role="Stations" EntitySet="Stations" />
  111. <End Role="Stations_Roads" EntitySet="Stations_Roads" />
  112. </AssociationSet>
  113. <AssociationSet Name="FK2_Stations_Roads" Association="Self.FK2_Stations_Roads">
  114. <End Role="Roads" EntitySet="Roads" />
  115. <End Role="Stations_Roads" EntitySet="Stations_Roads" />
  116. </AssociationSet>
  117. </EntityContainer>
  118. </Schema>
  119. </edmx:StorageModels>
  120. <!-- CSDL content -->
  121. <edmx:ConceptualModels>
  122. <Schema Namespace="Model" 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">
  123. <EntityType Name="Roads">
  124. <Key>
  125. <PropertyRef Name="roadID" />
  126. </Key>
  127. <Property Name="roadID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  128. <Property Name="nameRoad" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  129. <Property Name="typeRoad" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  130. <Property Name="categoryQuality" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  131. <NavigationProperty Name="Stations" Relationship="Self.Stations_Roads" FromRole="Roads" ToRole="Stations" />
  132. </EntityType>
  133. <EntityType Name="Stations">
  134. <Key>
  135. <PropertyRef Name="stationID" />
  136. </Key>
  137. <Property Name="stationID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  138. <Property Name="typeStationID" Type="Int32" Nullable="false" />
  139. <Property Name="nameStation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  140. <Property Name="image" Type="Binary" MaxLength="Max" FixedLength="false" />
  141. <Property Name="overheadTransition" Type="Boolean" Nullable="false" />
  142. <Property Name="location" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  143. <NavigationProperty Name="TypeStation" Relationship="Self.FK_Stations" FromRole="Stations" ToRole="TypeStation" />
  144. <NavigationProperty Name="Roads" Relationship="Self.Stations_Roads" FromRole="Stations" ToRole="Roads" />
  145. </EntityType>
  146. <EntityType Name="TypeStation">
  147. <Key>
  148. <PropertyRef Name="typeStationID" />
  149. </Key>
  150. <Property Name="typeStationID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  151. <Property Name="nameTypeStation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  152. <Property Name="passagerService" Type="Boolean" Nullable="false" />
  153. <NavigationProperty Name="Stations" Relationship="Self.FK_Stations" FromRole="TypeStation" ToRole="Stations" />
  154. </EntityType>
  155. <EntityType Name="AuthorizationTable">
  156. <Key>
  157. <PropertyRef Name="login" />
  158. <PropertyRef Name="password" />
  159. </Key>
  160. <Property Name="login" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  161. <Property Name="password" Type="String" MaxLength="8" FixedLength="false" Unicode="true" Nullable="false" />
  162. </EntityType>
  163. <Association Name="FK_Stations">
  164. <End Role="TypeStation" Type="Self.TypeStation" Multiplicity="1" />
  165. <End Role="Stations" Type="Self.Stations" Multiplicity="*" />
  166. <ReferentialConstraint>
  167. <Principal Role="TypeStation">
  168. <PropertyRef Name="typeStationID" />
  169. </Principal>
  170. <Dependent Role="Stations">
  171. <PropertyRef Name="typeStationID" />
  172. </Dependent>
  173. </ReferentialConstraint>
  174. </Association>
  175. <Association Name="Stations_Roads">
  176. <End Role="Stations" Type="Self.Stations" Multiplicity="*" />
  177. <End Role="Roads" Type="Self.Roads" Multiplicity="*" />
  178. </Association>
  179. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  180. <EntitySet Name="Roads" EntityType="Self.Roads" />
  181. <EntitySet Name="Stations" EntityType="Self.Stations" />
  182. <EntitySet Name="TypeStation" EntityType="Self.TypeStation" />
  183. <EntitySet Name="AuthorizationTable" EntityType="Self.AuthorizationTable" />
  184. <AssociationSet Name="FK_Stations" Association="Self.FK_Stations">
  185. <End Role="TypeStation" EntitySet="TypeStation" />
  186. <End Role="Stations" EntitySet="Stations" />
  187. </AssociationSet>
  188. <AssociationSet Name="Stations_Roads" Association="Self.Stations_Roads">
  189. <End Role="Stations" EntitySet="Stations" />
  190. <End Role="Roads" EntitySet="Roads" />
  191. </AssociationSet>
  192. </EntityContainer>
  193. </Schema>
  194. </edmx:ConceptualModels>
  195. <!-- C-S mapping content -->
  196. <edmx:Mappings>
  197. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  198. <EntityContainerMapping StorageEntityContainer="Хранилище ModelContainer" CdmEntityContainer="Entities">
  199. <EntitySetMapping Name="Roads">
  200. <EntityTypeMapping TypeName="Model.Roads">
  201. <MappingFragment StoreEntitySet="Roads">
  202. <ScalarProperty Name="roadID" ColumnName="roadID" />
  203. <ScalarProperty Name="nameRoad" ColumnName="nameRoad" />
  204. <ScalarProperty Name="typeRoad" ColumnName="typeRoad" />
  205. <ScalarProperty Name="categoryQuality" ColumnName="categoryQuality" />
  206. </MappingFragment>
  207. </EntityTypeMapping>
  208. </EntitySetMapping>
  209. <EntitySetMapping Name="Stations">
  210. <EntityTypeMapping TypeName="Model.Stations">
  211. <MappingFragment StoreEntitySet="Stations">
  212. <ScalarProperty Name="stationID" ColumnName="stationID" />
  213. <ScalarProperty Name="typeStationID" ColumnName="typeStationID" />
  214. <ScalarProperty Name="nameStation" ColumnName="nameStation" />
  215. <ScalarProperty Name="image" ColumnName="image" />
  216. <ScalarProperty Name="overheadTransition" ColumnName="overheadTransition" />
  217. <ScalarProperty Name="location" ColumnName="location" />
  218. </MappingFragment>
  219. </EntityTypeMapping>
  220. </EntitySetMapping>
  221. <EntitySetMapping Name="TypeStation">
  222. <EntityTypeMapping TypeName="Model.TypeStation">
  223. <MappingFragment StoreEntitySet="TypeStation">
  224. <ScalarProperty Name="typeStationID" ColumnName="typeStationID" />
  225. <ScalarProperty Name="nameTypeStation" ColumnName="nameTypeStation" />
  226. <ScalarProperty Name="passagerService" ColumnName="passagerService" />
  227. </MappingFragment>
  228. </EntityTypeMapping>
  229. </EntitySetMapping>
  230. <EntitySetMapping Name="AuthorizationTable">
  231. <EntityTypeMapping TypeName="Model.AuthorizationTable">
  232. <MappingFragment StoreEntitySet="AuthorizationTable">
  233. <ScalarProperty Name="login" ColumnName="login" />
  234. <ScalarProperty Name="password" ColumnName="password" />
  235. </MappingFragment>
  236. </EntityTypeMapping>
  237. </EntitySetMapping>
  238. <AssociationSetMapping Name="Stations_Roads" TypeName="Model.Stations_Roads" StoreEntitySet="Stations_Roads">
  239. <EndProperty Name="Stations">
  240. <ScalarProperty Name="stationID" ColumnName="stationID" />
  241. </EndProperty>
  242. <EndProperty Name="Roads">
  243. <ScalarProperty Name="roadID" ColumnName="roadID" />
  244. </EndProperty>
  245. </AssociationSetMapping>
  246. </EntityContainerMapping>
  247. </Mapping>
  248. </edmx:Mappings>
  249. </edmx:Runtime>
  250. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  251. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  252. <Connection>
  253. <DesignerInfoPropertySet>
  254. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  255. </DesignerInfoPropertySet>
  256. </Connection>
  257. <Options>
  258. <DesignerInfoPropertySet>
  259. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  260. <DesignerProperty Name="EnablePluralization" Value="false" />
  261. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  262. <DesignerProperty Name="UseLegacyProvider" Value="true" />
  263. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  264. </DesignerInfoPropertySet>
  265. </Options>
  266. <!-- Diagram content (shape and connector positions) -->
  267. <Diagrams></Diagrams>
  268. </Designer>
  269. </edmx:Edmx>