EDM.edmx 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  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="RouteScheduleDataBaseModel.Store" 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="Carriages">
  9. <Key>
  10. <PropertyRef Name="IdCarriage" />
  11. </Key>
  12. <Property Name="IdCarriage" Type="int" Nullable="false" />
  13. <Property Name="Count" Type="int" Nullable="false" />
  14. </EntityType>
  15. <EntityType Name="Routes">
  16. <Key>
  17. <PropertyRef Name="IdRoute" />
  18. </Key>
  19. <Property Name="IdRoute" Type="int" Nullable="false" />
  20. <Property Name="IdTrain" Type="int" Nullable="false" />
  21. <Property Name="Departure_Date" Type="datetime" Nullable="false" />
  22. <Property Name="Arrival_Date" Type="datetime" Nullable="false" />
  23. </EntityType>
  24. <EntityType Name="RoutesStations">
  25. <Key>
  26. <PropertyRef Name="IdRouteStation" />
  27. </Key>
  28. <Property Name="IdRouteStation" Type="int" Nullable="false" />
  29. <Property Name="IdRoute" Type="int" Nullable="false" />
  30. <Property Name="IdStation" Type="int" Nullable="false" />
  31. </EntityType>
  32. <EntityType Name="Station">
  33. <Key>
  34. <PropertyRef Name="IdStation" />
  35. </Key>
  36. <Property Name="IdStation" Type="int" Nullable="false" />
  37. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  38. <Property Name="Location" Type="nvarchar" MaxLength="50" Nullable="false" />
  39. </EntityType>
  40. <EntityType Name="sysdiagrams">
  41. <Key>
  42. <PropertyRef Name="diagram_id" />
  43. </Key>
  44. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  45. <Property Name="principal_id" Type="int" Nullable="false" />
  46. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  47. <Property Name="version" Type="int" />
  48. <Property Name="definition" Type="varbinary(max)" />
  49. </EntityType>
  50. <EntityType Name="Tickets">
  51. <Key>
  52. <PropertyRef Name="IdTicket" />
  53. </Key>
  54. <Property Name="IdTicket" Type="int" Nullable="false" />
  55. <Property Name="IdUser" Type="int" Nullable="false" />
  56. <Property Name="IdRoute" Type="int" Nullable="false" />
  57. <Property Name="IdCarriage" Type="int" Nullable="false" />
  58. <Property Name="PlaceNumber" Type="int" Nullable="false" />
  59. <Property Name="Category" Type="int" Nullable="false" />
  60. <Property Name="BuyDate" Type="datetime" Nullable="false" />
  61. </EntityType>
  62. <EntityType Name="Trains">
  63. <Key>
  64. <PropertyRef Name="IdTrain" />
  65. </Key>
  66. <Property Name="IdTrain" Type="int" Nullable="false" />
  67. <Property Name="NameOfTrain" Type="nvarchar" MaxLength="50" Nullable="false" />
  68. </EntityType>
  69. <EntityType Name="Users">
  70. <Key>
  71. <PropertyRef Name="IdUser" />
  72. </Key>
  73. <Property Name="IdUser" Type="int" Nullable="false" />
  74. <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
  75. <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
  76. <Property Name="Passport" Type="nvarchar" MaxLength="10" />
  77. <Property Name="Surname" Type="nvarchar" MaxLength="50" />
  78. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  79. <Property Name="Patronymic" Type="nvarchar" MaxLength="50" />
  80. </EntityType>
  81. <Association Name="FK_Routes_Trains">
  82. <End Role="Trains" Type="Self.Trains" Multiplicity="1" />
  83. <End Role="Routes" Type="Self.Routes" Multiplicity="*" />
  84. <ReferentialConstraint>
  85. <Principal Role="Trains">
  86. <PropertyRef Name="IdTrain" />
  87. </Principal>
  88. <Dependent Role="Routes">
  89. <PropertyRef Name="IdTrain" />
  90. </Dependent>
  91. </ReferentialConstraint>
  92. </Association>
  93. <Association Name="FK_RoutesStations_Routes">
  94. <End Role="Routes" Type="Self.Routes" Multiplicity="1" />
  95. <End Role="RoutesStations" Type="Self.RoutesStations" Multiplicity="*" />
  96. <ReferentialConstraint>
  97. <Principal Role="Routes">
  98. <PropertyRef Name="IdRoute" />
  99. </Principal>
  100. <Dependent Role="RoutesStations">
  101. <PropertyRef Name="IdRoute" />
  102. </Dependent>
  103. </ReferentialConstraint>
  104. </Association>
  105. <Association Name="FK_RoutesStations_Station">
  106. <End Role="Station" Type="Self.Station" Multiplicity="1" />
  107. <End Role="RoutesStations" Type="Self.RoutesStations" Multiplicity="*" />
  108. <ReferentialConstraint>
  109. <Principal Role="Station">
  110. <PropertyRef Name="IdStation" />
  111. </Principal>
  112. <Dependent Role="RoutesStations">
  113. <PropertyRef Name="IdStation" />
  114. </Dependent>
  115. </ReferentialConstraint>
  116. </Association>
  117. <Association Name="FK_Tickets_Carriages">
  118. <End Role="Carriages" Type="Self.Carriages" Multiplicity="1" />
  119. <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
  120. <ReferentialConstraint>
  121. <Principal Role="Carriages">
  122. <PropertyRef Name="IdCarriage" />
  123. </Principal>
  124. <Dependent Role="Tickets">
  125. <PropertyRef Name="IdCarriage" />
  126. </Dependent>
  127. </ReferentialConstraint>
  128. </Association>
  129. <Association Name="FK_Tickets_Routes">
  130. <End Role="Routes" Type="Self.Routes" Multiplicity="1" />
  131. <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
  132. <ReferentialConstraint>
  133. <Principal Role="Routes">
  134. <PropertyRef Name="IdRoute" />
  135. </Principal>
  136. <Dependent Role="Tickets">
  137. <PropertyRef Name="IdRoute" />
  138. </Dependent>
  139. </ReferentialConstraint>
  140. </Association>
  141. <Association Name="FK_Tickets_Users">
  142. <End Role="Users" Type="Self.Users" Multiplicity="1" />
  143. <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
  144. <ReferentialConstraint>
  145. <Principal Role="Users">
  146. <PropertyRef Name="IdUser" />
  147. </Principal>
  148. <Dependent Role="Tickets">
  149. <PropertyRef Name="IdUser" />
  150. </Dependent>
  151. </ReferentialConstraint>
  152. </Association>
  153. <EntityContainer Name="RouteScheduleDataBaseModelStoreContainer">
  154. <EntitySet Name="Carriages" EntityType="Self.Carriages" Schema="dbo" store:Type="Tables" />
  155. <EntitySet Name="Routes" EntityType="Self.Routes" Schema="dbo" store:Type="Tables" />
  156. <EntitySet Name="RoutesStations" EntityType="Self.RoutesStations" Schema="dbo" store:Type="Tables" />
  157. <EntitySet Name="Station" EntityType="Self.Station" Schema="dbo" store:Type="Tables" />
  158. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  159. <EntitySet Name="Tickets" EntityType="Self.Tickets" Schema="dbo" store:Type="Tables" />
  160. <EntitySet Name="Trains" EntityType="Self.Trains" Schema="dbo" store:Type="Tables" />
  161. <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
  162. <AssociationSet Name="FK_Routes_Trains" Association="Self.FK_Routes_Trains">
  163. <End Role="Trains" EntitySet="Trains" />
  164. <End Role="Routes" EntitySet="Routes" />
  165. </AssociationSet>
  166. <AssociationSet Name="FK_RoutesStations_Routes" Association="Self.FK_RoutesStations_Routes">
  167. <End Role="Routes" EntitySet="Routes" />
  168. <End Role="RoutesStations" EntitySet="RoutesStations" />
  169. </AssociationSet>
  170. <AssociationSet Name="FK_RoutesStations_Station" Association="Self.FK_RoutesStations_Station">
  171. <End Role="Station" EntitySet="Station" />
  172. <End Role="RoutesStations" EntitySet="RoutesStations" />
  173. </AssociationSet>
  174. <AssociationSet Name="FK_Tickets_Carriages" Association="Self.FK_Tickets_Carriages">
  175. <End Role="Carriages" EntitySet="Carriages" />
  176. <End Role="Tickets" EntitySet="Tickets" />
  177. </AssociationSet>
  178. <AssociationSet Name="FK_Tickets_Routes" Association="Self.FK_Tickets_Routes">
  179. <End Role="Routes" EntitySet="Routes" />
  180. <End Role="Tickets" EntitySet="Tickets" />
  181. </AssociationSet>
  182. <AssociationSet Name="FK_Tickets_Users" Association="Self.FK_Tickets_Users">
  183. <End Role="Users" EntitySet="Users" />
  184. <End Role="Tickets" EntitySet="Tickets" />
  185. </AssociationSet>
  186. </EntityContainer>
  187. </Schema></edmx:StorageModels>
  188. <!-- CSDL content -->
  189. <edmx:ConceptualModels>
  190. <Schema Namespace="RouteScheduleDataBaseModel" 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">
  191. <EntityContainer Name="RouteScheduleDataBaseEntities" annotation:LazyLoadingEnabled="true">
  192. <EntitySet Name="Carriages" EntityType="RouteScheduleDataBaseModel.Carriages" />
  193. <EntitySet Name="Routes" EntityType="RouteScheduleDataBaseModel.Routes" />
  194. <EntitySet Name="RoutesStations" EntityType="RouteScheduleDataBaseModel.RoutesStations" />
  195. <EntitySet Name="Station" EntityType="RouteScheduleDataBaseModel.Station" />
  196. <EntitySet Name="sysdiagrams" EntityType="RouteScheduleDataBaseModel.sysdiagrams" />
  197. <EntitySet Name="Tickets" EntityType="RouteScheduleDataBaseModel.Tickets" />
  198. <EntitySet Name="Trains" EntityType="RouteScheduleDataBaseModel.Trains" />
  199. <EntitySet Name="Users" EntityType="RouteScheduleDataBaseModel.Users" />
  200. <AssociationSet Name="FK_Tickets_Carriages" Association="RouteScheduleDataBaseModel.FK_Tickets_Carriages">
  201. <End Role="Carriages" EntitySet="Carriages" />
  202. <End Role="Tickets" EntitySet="Tickets" />
  203. </AssociationSet>
  204. <AssociationSet Name="FK_Routes_Trains" Association="RouteScheduleDataBaseModel.FK_Routes_Trains">
  205. <End Role="Trains" EntitySet="Trains" />
  206. <End Role="Routes" EntitySet="Routes" />
  207. </AssociationSet>
  208. <AssociationSet Name="FK_RoutesStations_Routes" Association="RouteScheduleDataBaseModel.FK_RoutesStations_Routes">
  209. <End Role="Routes" EntitySet="Routes" />
  210. <End Role="RoutesStations" EntitySet="RoutesStations" />
  211. </AssociationSet>
  212. <AssociationSet Name="FK_Tickets_Routes" Association="RouteScheduleDataBaseModel.FK_Tickets_Routes">
  213. <End Role="Routes" EntitySet="Routes" />
  214. <End Role="Tickets" EntitySet="Tickets" />
  215. </AssociationSet>
  216. <AssociationSet Name="FK_RoutesStations_Station" Association="RouteScheduleDataBaseModel.FK_RoutesStations_Station">
  217. <End Role="Station" EntitySet="Station" />
  218. <End Role="RoutesStations" EntitySet="RoutesStations" />
  219. </AssociationSet>
  220. <AssociationSet Name="FK_Tickets_Users" Association="RouteScheduleDataBaseModel.FK_Tickets_Users">
  221. <End Role="Users" EntitySet="Users" />
  222. <End Role="Tickets" EntitySet="Tickets" />
  223. </AssociationSet>
  224. </EntityContainer>
  225. <EntityType Name="Carriages">
  226. <Key>
  227. <PropertyRef Name="IdCarriage" />
  228. </Key>
  229. <Property Name="IdCarriage" Type="Int32" Nullable="false" />
  230. <Property Name="Count" Type="Int32" Nullable="false" />
  231. <NavigationProperty Name="Tickets" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Carriages" FromRole="Carriages" ToRole="Tickets" />
  232. </EntityType>
  233. <EntityType Name="Routes">
  234. <Key>
  235. <PropertyRef Name="IdRoute" />
  236. </Key>
  237. <Property Name="IdRoute" Type="Int32" Nullable="false" />
  238. <Property Name="IdTrain" Type="Int32" Nullable="false" />
  239. <Property Name="Departure_Date" Type="DateTime" Nullable="false" Precision="3" />
  240. <Property Name="Arrival_Date" Type="DateTime" Nullable="false" Precision="3" />
  241. <NavigationProperty Name="Trains" Relationship="RouteScheduleDataBaseModel.FK_Routes_Trains" FromRole="Routes" ToRole="Trains" />
  242. <NavigationProperty Name="RoutesStations" Relationship="RouteScheduleDataBaseModel.FK_RoutesStations_Routes" FromRole="Routes" ToRole="RoutesStations" />
  243. <NavigationProperty Name="Tickets" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Routes" FromRole="Routes" ToRole="Tickets" />
  244. </EntityType>
  245. <EntityType Name="RoutesStations">
  246. <Key>
  247. <PropertyRef Name="IdRouteStation" />
  248. </Key>
  249. <Property Name="IdRouteStation" Type="Int32" Nullable="false" />
  250. <Property Name="IdRoute" Type="Int32" Nullable="false" />
  251. <Property Name="IdStation" Type="Int32" Nullable="false" />
  252. <NavigationProperty Name="Routes" Relationship="RouteScheduleDataBaseModel.FK_RoutesStations_Routes" FromRole="RoutesStations" ToRole="Routes" />
  253. <NavigationProperty Name="Station" Relationship="RouteScheduleDataBaseModel.FK_RoutesStations_Station" FromRole="RoutesStations" ToRole="Station" />
  254. </EntityType>
  255. <EntityType Name="Station">
  256. <Key>
  257. <PropertyRef Name="IdStation" />
  258. </Key>
  259. <Property Name="IdStation" Type="Int32" Nullable="false" />
  260. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  261. <Property Name="Location" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  262. <NavigationProperty Name="RoutesStations" Relationship="RouteScheduleDataBaseModel.FK_RoutesStations_Station" FromRole="Station" ToRole="RoutesStations" />
  263. </EntityType>
  264. <EntityType Name="sysdiagrams">
  265. <Key>
  266. <PropertyRef Name="diagram_id" />
  267. </Key>
  268. <Property Name="name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
  269. <Property Name="principal_id" Type="Int32" Nullable="false" />
  270. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  271. <Property Name="version" Type="Int32" />
  272. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  273. </EntityType>
  274. <EntityType Name="Tickets">
  275. <Key>
  276. <PropertyRef Name="IdTicket" />
  277. </Key>
  278. <Property Name="IdTicket" Type="Int32" Nullable="false" />
  279. <Property Name="IdUser" Type="Int32" Nullable="false" />
  280. <Property Name="IdRoute" Type="Int32" Nullable="false" />
  281. <Property Name="IdCarriage" Type="Int32" Nullable="false" />
  282. <Property Name="PlaceNumber" Type="Int32" Nullable="false" />
  283. <Property Name="Category" Type="Int32" Nullable="false" />
  284. <Property Name="BuyDate" Type="DateTime" Nullable="false" Precision="3" />
  285. <NavigationProperty Name="Carriages" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Carriages" FromRole="Tickets" ToRole="Carriages" />
  286. <NavigationProperty Name="Routes" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Routes" FromRole="Tickets" ToRole="Routes" />
  287. <NavigationProperty Name="Users" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Users" FromRole="Tickets" ToRole="Users" />
  288. </EntityType>
  289. <EntityType Name="Trains">
  290. <Key>
  291. <PropertyRef Name="IdTrain" />
  292. </Key>
  293. <Property Name="IdTrain" Type="Int32" Nullable="false" />
  294. <Property Name="NameOfTrain" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  295. <NavigationProperty Name="Routes" Relationship="RouteScheduleDataBaseModel.FK_Routes_Trains" FromRole="Trains" ToRole="Routes" />
  296. </EntityType>
  297. <EntityType Name="Users">
  298. <Key>
  299. <PropertyRef Name="IdUser" />
  300. </Key>
  301. <Property Name="IdUser" Type="Int32" Nullable="false" />
  302. <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  303. <Property Name="Password" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  304. <Property Name="Passport" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  305. <Property Name="Surname" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  306. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  307. <Property Name="Patronymic" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  308. <NavigationProperty Name="Tickets" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Users" FromRole="Users" ToRole="Tickets" />
  309. </EntityType>
  310. <Association Name="FK_Tickets_Carriages">
  311. <End Type="RouteScheduleDataBaseModel.Carriages" Role="Carriages" Multiplicity="1" />
  312. <End Type="RouteScheduleDataBaseModel.Tickets" Role="Tickets" Multiplicity="*" />
  313. <ReferentialConstraint>
  314. <Principal Role="Carriages">
  315. <PropertyRef Name="IdCarriage" />
  316. </Principal>
  317. <Dependent Role="Tickets">
  318. <PropertyRef Name="IdCarriage" />
  319. </Dependent>
  320. </ReferentialConstraint>
  321. </Association>
  322. <Association Name="FK_Routes_Trains">
  323. <End Type="RouteScheduleDataBaseModel.Trains" Role="Trains" Multiplicity="1" />
  324. <End Type="RouteScheduleDataBaseModel.Routes" Role="Routes" Multiplicity="*" />
  325. <ReferentialConstraint>
  326. <Principal Role="Trains">
  327. <PropertyRef Name="IdTrain" />
  328. </Principal>
  329. <Dependent Role="Routes">
  330. <PropertyRef Name="IdTrain" />
  331. </Dependent>
  332. </ReferentialConstraint>
  333. </Association>
  334. <Association Name="FK_RoutesStations_Routes">
  335. <End Type="RouteScheduleDataBaseModel.Routes" Role="Routes" Multiplicity="1" />
  336. <End Type="RouteScheduleDataBaseModel.RoutesStations" Role="RoutesStations" Multiplicity="*" />
  337. <ReferentialConstraint>
  338. <Principal Role="Routes">
  339. <PropertyRef Name="IdRoute" />
  340. </Principal>
  341. <Dependent Role="RoutesStations">
  342. <PropertyRef Name="IdRoute" />
  343. </Dependent>
  344. </ReferentialConstraint>
  345. </Association>
  346. <Association Name="FK_Tickets_Routes">
  347. <End Type="RouteScheduleDataBaseModel.Routes" Role="Routes" Multiplicity="1" />
  348. <End Type="RouteScheduleDataBaseModel.Tickets" Role="Tickets" Multiplicity="*" />
  349. <ReferentialConstraint>
  350. <Principal Role="Routes">
  351. <PropertyRef Name="IdRoute" />
  352. </Principal>
  353. <Dependent Role="Tickets">
  354. <PropertyRef Name="IdRoute" />
  355. </Dependent>
  356. </ReferentialConstraint>
  357. </Association>
  358. <Association Name="FK_RoutesStations_Station">
  359. <End Type="RouteScheduleDataBaseModel.Station" Role="Station" Multiplicity="1" />
  360. <End Type="RouteScheduleDataBaseModel.RoutesStations" Role="RoutesStations" Multiplicity="*" />
  361. <ReferentialConstraint>
  362. <Principal Role="Station">
  363. <PropertyRef Name="IdStation" />
  364. </Principal>
  365. <Dependent Role="RoutesStations">
  366. <PropertyRef Name="IdStation" />
  367. </Dependent>
  368. </ReferentialConstraint>
  369. </Association>
  370. <Association Name="FK_Tickets_Users">
  371. <End Type="RouteScheduleDataBaseModel.Users" Role="Users" Multiplicity="1" />
  372. <End Type="RouteScheduleDataBaseModel.Tickets" Role="Tickets" Multiplicity="*" />
  373. <ReferentialConstraint>
  374. <Principal Role="Users">
  375. <PropertyRef Name="IdUser" />
  376. </Principal>
  377. <Dependent Role="Tickets">
  378. <PropertyRef Name="IdUser" />
  379. </Dependent>
  380. </ReferentialConstraint>
  381. </Association>
  382. </Schema>
  383. </edmx:ConceptualModels>
  384. <!-- C-S mapping content -->
  385. <edmx:Mappings>
  386. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  387. <EntityContainerMapping StorageEntityContainer="RouteScheduleDataBaseModelStoreContainer" CdmEntityContainer="RouteScheduleDataBaseEntities">
  388. <EntitySetMapping Name="Carriages">
  389. <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Carriages">
  390. <MappingFragment StoreEntitySet="Carriages">
  391. <ScalarProperty Name="Count" ColumnName="Count" />
  392. <ScalarProperty Name="IdCarriage" ColumnName="IdCarriage" />
  393. </MappingFragment>
  394. </EntityTypeMapping>
  395. </EntitySetMapping>
  396. <EntitySetMapping Name="Routes">
  397. <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Routes">
  398. <MappingFragment StoreEntitySet="Routes">
  399. <ScalarProperty Name="Arrival_Date" ColumnName="Arrival_Date" />
  400. <ScalarProperty Name="Departure_Date" ColumnName="Departure_Date" />
  401. <ScalarProperty Name="IdTrain" ColumnName="IdTrain" />
  402. <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
  403. </MappingFragment>
  404. </EntityTypeMapping>
  405. </EntitySetMapping>
  406. <EntitySetMapping Name="RoutesStations">
  407. <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.RoutesStations">
  408. <MappingFragment StoreEntitySet="RoutesStations">
  409. <ScalarProperty Name="IdStation" ColumnName="IdStation" />
  410. <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
  411. <ScalarProperty Name="IdRouteStation" ColumnName="IdRouteStation" />
  412. </MappingFragment>
  413. </EntityTypeMapping>
  414. </EntitySetMapping>
  415. <EntitySetMapping Name="Station">
  416. <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Station">
  417. <MappingFragment StoreEntitySet="Station">
  418. <ScalarProperty Name="Location" ColumnName="Location" />
  419. <ScalarProperty Name="Name" ColumnName="Name" />
  420. <ScalarProperty Name="IdStation" ColumnName="IdStation" />
  421. </MappingFragment>
  422. </EntityTypeMapping>
  423. </EntitySetMapping>
  424. <EntitySetMapping Name="sysdiagrams">
  425. <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.sysdiagrams">
  426. <MappingFragment StoreEntitySet="sysdiagrams">
  427. <ScalarProperty Name="definition" ColumnName="definition" />
  428. <ScalarProperty Name="version" ColumnName="version" />
  429. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  430. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  431. <ScalarProperty Name="name" ColumnName="name" />
  432. </MappingFragment>
  433. </EntityTypeMapping>
  434. </EntitySetMapping>
  435. <EntitySetMapping Name="Tickets">
  436. <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Tickets">
  437. <MappingFragment StoreEntitySet="Tickets">
  438. <ScalarProperty Name="BuyDate" ColumnName="BuyDate" />
  439. <ScalarProperty Name="Category" ColumnName="Category" />
  440. <ScalarProperty Name="PlaceNumber" ColumnName="PlaceNumber" />
  441. <ScalarProperty Name="IdCarriage" ColumnName="IdCarriage" />
  442. <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
  443. <ScalarProperty Name="IdUser" ColumnName="IdUser" />
  444. <ScalarProperty Name="IdTicket" ColumnName="IdTicket" />
  445. </MappingFragment>
  446. </EntityTypeMapping>
  447. </EntitySetMapping>
  448. <EntitySetMapping Name="Trains">
  449. <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Trains">
  450. <MappingFragment StoreEntitySet="Trains">
  451. <ScalarProperty Name="NameOfTrain" ColumnName="NameOfTrain" />
  452. <ScalarProperty Name="IdTrain" ColumnName="IdTrain" />
  453. </MappingFragment>
  454. </EntityTypeMapping>
  455. </EntitySetMapping>
  456. <EntitySetMapping Name="Users">
  457. <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Users">
  458. <MappingFragment StoreEntitySet="Users">
  459. <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
  460. <ScalarProperty Name="Name" ColumnName="Name" />
  461. <ScalarProperty Name="Surname" ColumnName="Surname" />
  462. <ScalarProperty Name="Passport" ColumnName="Passport" />
  463. <ScalarProperty Name="Password" ColumnName="Password" />
  464. <ScalarProperty Name="Login" ColumnName="Login" />
  465. <ScalarProperty Name="IdUser" ColumnName="IdUser" />
  466. </MappingFragment>
  467. </EntityTypeMapping>
  468. </EntitySetMapping>
  469. </EntityContainerMapping>
  470. </Mapping></edmx:Mappings>
  471. </edmx:Runtime>
  472. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  473. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  474. <Connection>
  475. <DesignerInfoPropertySet>
  476. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  477. </DesignerInfoPropertySet>
  478. </Connection>
  479. <Options>
  480. <DesignerInfoPropertySet>
  481. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  482. <DesignerProperty Name="EnablePluralization" Value="false" />
  483. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  484. <DesignerProperty Name="UseLegacyProvider" Value="False" />
  485. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  486. </DesignerInfoPropertySet>
  487. </Options>
  488. <!-- Diagram content (shape and connector positions) -->
  489. <Diagrams></Diagrams>
  490. </Designer>
  491. </edmx:Edmx>