123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598 |
- <?xml version="1.0" encoding="utf-8"?>
- <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
- <!-- EF Runtime content -->
- <edmx:Runtime>
- <!-- SSDL content -->
- <edmx:StorageModels>
- <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">
- <EntityType Name="Carriages">
- <Key>
- <PropertyRef Name="IdCarriage" />
- </Key>
- <Property Name="IdCarriage" Type="int" Nullable="false" />
- <Property Name="IdTrain" Type="int" Nullable="false" />
- <Property Name="Places" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="Routes">
- <Key>
- <PropertyRef Name="IdRoute" />
- </Key>
- <Property Name="IdRoute" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="RoutesStations">
- <Key>
- <PropertyRef Name="IdRouteStation" />
- </Key>
- <Property Name="IdRouteStation" Type="int" Nullable="false" />
- <Property Name="IdRoute" Type="int" Nullable="false" />
- <Property Name="IdStation" Type="int" Nullable="false" />
- <Property Name="StopTime" Type="time" Precision="7" Nullable="false" />
- <Property Name="TravelTime" Type="time" Precision="7" Nullable="false" />
- </EntityType>
- <EntityType Name="Stations">
- <Key>
- <PropertyRef Name="IdStation" />
- </Key>
- <Property Name="IdStation" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Location" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="principal_id" Type="int" Nullable="false" />
- <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="version" Type="int" />
- <Property Name="definition" Type="varbinary(max)" />
- </EntityType>
- <EntityType Name="Tickets">
- <Key>
- <PropertyRef Name="IdTicket" />
- </Key>
- <Property Name="IdTicket" Type="int" Nullable="false" />
- <Property Name="IdUser" Type="int" Nullable="false" />
- <Property Name="IdTrip" Type="int" Nullable="false" />
- <Property Name="IdCarriage" Type="int" Nullable="false" />
- <Property Name="PlaceNumber" Type="int" Nullable="false" />
- <Property Name="Category" Type="int" Nullable="false" />
- <Property Name="BuyDate" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="Trains">
- <Key>
- <PropertyRef Name="IdTrain" />
- </Key>
- <Property Name="IdTrain" Type="int" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Category" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="Trips">
- <Key>
- <PropertyRef Name="IdTrip" />
- </Key>
- <Property Name="IdTrip" Type="int" Nullable="false" />
- <Property Name="IdTrain" Type="int" Nullable="false" />
- <Property Name="IdRoute" Type="int" Nullable="false" />
- <Property Name="TripStartDate" Type="date" Nullable="false" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="IdUser" />
- </Key>
- <Property Name="IdUser" Type="int" Nullable="false" />
- <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Passport" Type="nvarchar" MaxLength="10" />
- <Property Name="Surname" Type="nvarchar" MaxLength="50" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- <Property Name="Patronymic" Type="nvarchar" MaxLength="50" />
- <Property Name="Permissions" Type="int" Nullable="false" />
- </EntityType>
- <Association Name="FK_Carriages_Trains">
- <End Role="Trains" Type="Self.Trains" Multiplicity="1" />
- <End Role="Carriages" Type="Self.Carriages" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Trains">
- <PropertyRef Name="IdTrain" />
- </Principal>
- <Dependent Role="Carriages">
- <PropertyRef Name="IdTrain" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_RoutesStations_Routes">
- <End Role="Routes" Type="Self.Routes" Multiplicity="1" />
- <End Role="RoutesStations" Type="Self.RoutesStations" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Routes">
- <PropertyRef Name="IdRoute" />
- </Principal>
- <Dependent Role="RoutesStations">
- <PropertyRef Name="IdRoute" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_RoutesStations_Stations">
- <End Role="Stations" Type="Self.Stations" Multiplicity="1" />
- <End Role="RoutesStations" Type="Self.RoutesStations" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Stations">
- <PropertyRef Name="IdStation" />
- </Principal>
- <Dependent Role="RoutesStations">
- <PropertyRef Name="IdStation" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tickets_Carriages">
- <End Role="Carriages" Type="Self.Carriages" Multiplicity="1" />
- <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Carriages">
- <PropertyRef Name="IdCarriage" />
- </Principal>
- <Dependent Role="Tickets">
- <PropertyRef Name="IdCarriage" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tickets_Trips">
- <End Role="Trips" Type="Self.Trips" Multiplicity="1" />
- <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Trips">
- <PropertyRef Name="IdTrip" />
- </Principal>
- <Dependent Role="Tickets">
- <PropertyRef Name="IdTrip" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tickets_Users">
- <End Role="Users" Type="Self.Users" Multiplicity="1" />
- <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="IdUser" />
- </Principal>
- <Dependent Role="Tickets">
- <PropertyRef Name="IdUser" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Trips_Routes">
- <End Role="Routes" Type="Self.Routes" Multiplicity="1" />
- <End Role="Trips" Type="Self.Trips" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Routes">
- <PropertyRef Name="IdRoute" />
- </Principal>
- <Dependent Role="Trips">
- <PropertyRef Name="IdRoute" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Trips_Trains">
- <End Role="Trains" Type="Self.Trains" Multiplicity="1" />
- <End Role="Trips" Type="Self.Trips" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Trains">
- <PropertyRef Name="IdTrain" />
- </Principal>
- <Dependent Role="Trips">
- <PropertyRef Name="IdTrain" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="RouteScheduleDataBaseModelStoreContainer">
- <EntitySet Name="Carriages" EntityType="Self.Carriages" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Routes" EntityType="Self.Routes" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="RoutesStations" EntityType="Self.RoutesStations" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Stations" EntityType="Self.Stations" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Tickets" EntityType="Self.Tickets" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Trains" EntityType="Self.Trains" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Trips" EntityType="Self.Trips" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Carriages_Trains" Association="Self.FK_Carriages_Trains">
- <End Role="Trains" EntitySet="Trains" />
- <End Role="Carriages" EntitySet="Carriages" />
- </AssociationSet>
- <AssociationSet Name="FK_RoutesStations_Routes" Association="Self.FK_RoutesStations_Routes">
- <End Role="Routes" EntitySet="Routes" />
- <End Role="RoutesStations" EntitySet="RoutesStations" />
- </AssociationSet>
- <AssociationSet Name="FK_RoutesStations_Stations" Association="Self.FK_RoutesStations_Stations">
- <End Role="Stations" EntitySet="Stations" />
- <End Role="RoutesStations" EntitySet="RoutesStations" />
- </AssociationSet>
- <AssociationSet Name="FK_Tickets_Carriages" Association="Self.FK_Tickets_Carriages">
- <End Role="Carriages" EntitySet="Carriages" />
- <End Role="Tickets" EntitySet="Tickets" />
- </AssociationSet>
- <AssociationSet Name="FK_Tickets_Trips" Association="Self.FK_Tickets_Trips">
- <End Role="Trips" EntitySet="Trips" />
- <End Role="Tickets" EntitySet="Tickets" />
- </AssociationSet>
- <AssociationSet Name="FK_Tickets_Users" Association="Self.FK_Tickets_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="Tickets" EntitySet="Tickets" />
- </AssociationSet>
- <AssociationSet Name="FK_Trips_Routes" Association="Self.FK_Trips_Routes">
- <End Role="Routes" EntitySet="Routes" />
- <End Role="Trips" EntitySet="Trips" />
- </AssociationSet>
- <AssociationSet Name="FK_Trips_Trains" Association="Self.FK_Trips_Trains">
- <End Role="Trains" EntitySet="Trains" />
- <End Role="Trips" EntitySet="Trips" />
- </AssociationSet>
- </EntityContainer>
- </Schema></edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <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">
- <EntityContainer Name="RouteScheduleDataBaseEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Carriages" EntityType="RouteScheduleDataBaseModel.Carriages" />
- <EntitySet Name="Routes" EntityType="RouteScheduleDataBaseModel.Routes" />
- <EntitySet Name="RoutesStations" EntityType="RouteScheduleDataBaseModel.RoutesStations" />
- <EntitySet Name="Stations" EntityType="RouteScheduleDataBaseModel.Stations" />
- <EntitySet Name="sysdiagrams" EntityType="RouteScheduleDataBaseModel.sysdiagrams" />
- <EntitySet Name="Tickets" EntityType="RouteScheduleDataBaseModel.Tickets" />
- <EntitySet Name="Trains" EntityType="RouteScheduleDataBaseModel.Trains" />
- <EntitySet Name="Trips" EntityType="RouteScheduleDataBaseModel.Trips" />
- <EntitySet Name="Users" EntityType="RouteScheduleDataBaseModel.Users" />
- <AssociationSet Name="FK_Carriages_Trains" Association="RouteScheduleDataBaseModel.FK_Carriages_Trains">
- <End Role="Trains" EntitySet="Trains" />
- <End Role="Carriages" EntitySet="Carriages" />
- </AssociationSet>
- <AssociationSet Name="FK_Tickets_Carriages" Association="RouteScheduleDataBaseModel.FK_Tickets_Carriages">
- <End Role="Carriages" EntitySet="Carriages" />
- <End Role="Tickets" EntitySet="Tickets" />
- </AssociationSet>
- <AssociationSet Name="FK_RoutesStations_Routes" Association="RouteScheduleDataBaseModel.FK_RoutesStations_Routes">
- <End Role="Routes" EntitySet="Routes" />
- <End Role="RoutesStations" EntitySet="RoutesStations" />
- </AssociationSet>
- <AssociationSet Name="FK_Trips_Routes" Association="RouteScheduleDataBaseModel.FK_Trips_Routes">
- <End Role="Routes" EntitySet="Routes" />
- <End Role="Trips" EntitySet="Trips" />
- </AssociationSet>
- <AssociationSet Name="FK_RoutesStations_Stations" Association="RouteScheduleDataBaseModel.FK_RoutesStations_Stations">
- <End Role="Stations" EntitySet="Stations" />
- <End Role="RoutesStations" EntitySet="RoutesStations" />
- </AssociationSet>
- <AssociationSet Name="FK_Tickets_Trips" Association="RouteScheduleDataBaseModel.FK_Tickets_Trips">
- <End Role="Trips" EntitySet="Trips" />
- <End Role="Tickets" EntitySet="Tickets" />
- </AssociationSet>
- <AssociationSet Name="FK_Tickets_Users" Association="RouteScheduleDataBaseModel.FK_Tickets_Users">
- <End Role="Users" EntitySet="Users" />
- <End Role="Tickets" EntitySet="Tickets" />
- </AssociationSet>
- <AssociationSet Name="FK_Trips_Trains" Association="RouteScheduleDataBaseModel.FK_Trips_Trains">
- <End Role="Trains" EntitySet="Trains" />
- <End Role="Trips" EntitySet="Trips" />
- </AssociationSet>
- </EntityContainer>
- <EntityType Name="Carriages">
- <Key>
- <PropertyRef Name="IdCarriage" />
- </Key>
- <Property Name="IdCarriage" Type="Int32" Nullable="false" />
- <Property Name="IdTrain" Type="Int32" Nullable="false" />
- <Property Name="Places" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Trains" Relationship="RouteScheduleDataBaseModel.FK_Carriages_Trains" FromRole="Carriages" ToRole="Trains" />
- <NavigationProperty Name="Tickets" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Carriages" FromRole="Carriages" ToRole="Tickets" />
- </EntityType>
- <EntityType Name="Routes">
- <Key>
- <PropertyRef Name="IdRoute" />
- </Key>
- <Property Name="IdRoute" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="RoutesStations" Relationship="RouteScheduleDataBaseModel.FK_RoutesStations_Routes" FromRole="Routes" ToRole="RoutesStations" />
- <NavigationProperty Name="Trips" Relationship="RouteScheduleDataBaseModel.FK_Trips_Routes" FromRole="Routes" ToRole="Trips" />
- </EntityType>
- <EntityType Name="RoutesStations">
- <Key>
- <PropertyRef Name="IdRouteStation" />
- </Key>
- <Property Name="IdRouteStation" Type="Int32" Nullable="false" />
- <Property Name="IdRoute" Type="Int32" Nullable="false" />
- <Property Name="IdStation" Type="Int32" Nullable="false" />
- <Property Name="StopTime" Type="Time" Nullable="false" Precision="7" />
- <Property Name="TravelTime" Type="Time" Nullable="false" Precision="7" />
- <NavigationProperty Name="Routes" Relationship="RouteScheduleDataBaseModel.FK_RoutesStations_Routes" FromRole="RoutesStations" ToRole="Routes" />
- <NavigationProperty Name="Stations" Relationship="RouteScheduleDataBaseModel.FK_RoutesStations_Stations" FromRole="RoutesStations" ToRole="Stations" />
- </EntityType>
- <EntityType Name="Stations">
- <Key>
- <PropertyRef Name="IdStation" />
- </Key>
- <Property Name="IdStation" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Location" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="RoutesStations" Relationship="RouteScheduleDataBaseModel.FK_RoutesStations_Stations" FromRole="Stations" ToRole="RoutesStations" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
- <Property Name="principal_id" Type="Int32" Nullable="false" />
- <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="version" Type="Int32" />
- <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
- </EntityType>
- <EntityType Name="Tickets">
- <Key>
- <PropertyRef Name="IdTicket" />
- </Key>
- <Property Name="IdTicket" Type="Int32" Nullable="false" />
- <Property Name="IdUser" Type="Int32" Nullable="false" />
- <Property Name="IdTrip" Type="Int32" Nullable="false" />
- <Property Name="IdCarriage" Type="Int32" Nullable="false" />
- <Property Name="PlaceNumber" Type="Int32" Nullable="false" />
- <Property Name="Category" Type="Int32" Nullable="false" />
- <Property Name="BuyDate" Type="DateTime" Nullable="false" Precision="3" />
- <NavigationProperty Name="Carriages" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Carriages" FromRole="Tickets" ToRole="Carriages" />
- <NavigationProperty Name="Trips" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Trips" FromRole="Tickets" ToRole="Trips" />
- <NavigationProperty Name="Users" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Users" FromRole="Tickets" ToRole="Users" />
- </EntityType>
- <EntityType Name="Trains">
- <Key>
- <PropertyRef Name="IdTrain" />
- </Key>
- <Property Name="IdTrain" Type="Int32" Nullable="false" />
- <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Category" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Carriages" Relationship="RouteScheduleDataBaseModel.FK_Carriages_Trains" FromRole="Trains" ToRole="Carriages" />
- <NavigationProperty Name="Trips" Relationship="RouteScheduleDataBaseModel.FK_Trips_Trains" FromRole="Trains" ToRole="Trips" />
- </EntityType>
- <EntityType Name="Trips">
- <Key>
- <PropertyRef Name="IdTrip" />
- </Key>
- <Property Name="IdTrip" Type="Int32" Nullable="false" />
- <Property Name="IdTrain" Type="Int32" Nullable="false" />
- <Property Name="IdRoute" Type="Int32" Nullable="false" />
- <Property Name="TripStartDate" Type="DateTime" Nullable="false" Precision="0" />
- <NavigationProperty Name="Routes" Relationship="RouteScheduleDataBaseModel.FK_Trips_Routes" FromRole="Trips" ToRole="Routes" />
- <NavigationProperty Name="Tickets" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Trips" FromRole="Trips" ToRole="Tickets" />
- <NavigationProperty Name="Trains" Relationship="RouteScheduleDataBaseModel.FK_Trips_Trains" FromRole="Trips" ToRole="Trains" />
- </EntityType>
- <EntityType Name="Users">
- <Key>
- <PropertyRef Name="IdUser" />
- </Key>
- <Property Name="IdUser" Type="Int32" Nullable="false" />
- <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Password" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Passport" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
- <Property Name="Surname" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Patronymic" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Permissions" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Tickets" Relationship="RouteScheduleDataBaseModel.FK_Tickets_Users" FromRole="Users" ToRole="Tickets" />
- </EntityType>
- <Association Name="FK_Carriages_Trains">
- <End Type="RouteScheduleDataBaseModel.Trains" Role="Trains" Multiplicity="1" />
- <End Type="RouteScheduleDataBaseModel.Carriages" Role="Carriages" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Trains">
- <PropertyRef Name="IdTrain" />
- </Principal>
- <Dependent Role="Carriages">
- <PropertyRef Name="IdTrain" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tickets_Carriages">
- <End Type="RouteScheduleDataBaseModel.Carriages" Role="Carriages" Multiplicity="1" />
- <End Type="RouteScheduleDataBaseModel.Tickets" Role="Tickets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Carriages">
- <PropertyRef Name="IdCarriage" />
- </Principal>
- <Dependent Role="Tickets">
- <PropertyRef Name="IdCarriage" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_RoutesStations_Routes">
- <End Type="RouteScheduleDataBaseModel.Routes" Role="Routes" Multiplicity="1" />
- <End Type="RouteScheduleDataBaseModel.RoutesStations" Role="RoutesStations" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Routes">
- <PropertyRef Name="IdRoute" />
- </Principal>
- <Dependent Role="RoutesStations">
- <PropertyRef Name="IdRoute" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Trips_Routes">
- <End Type="RouteScheduleDataBaseModel.Routes" Role="Routes" Multiplicity="1" />
- <End Type="RouteScheduleDataBaseModel.Trips" Role="Trips" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Routes">
- <PropertyRef Name="IdRoute" />
- </Principal>
- <Dependent Role="Trips">
- <PropertyRef Name="IdRoute" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_RoutesStations_Stations">
- <End Type="RouteScheduleDataBaseModel.Stations" Role="Stations" Multiplicity="1" />
- <End Type="RouteScheduleDataBaseModel.RoutesStations" Role="RoutesStations" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Stations">
- <PropertyRef Name="IdStation" />
- </Principal>
- <Dependent Role="RoutesStations">
- <PropertyRef Name="IdStation" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tickets_Trips">
- <End Type="RouteScheduleDataBaseModel.Trips" Role="Trips" Multiplicity="1" />
- <End Type="RouteScheduleDataBaseModel.Tickets" Role="Tickets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Trips">
- <PropertyRef Name="IdTrip" />
- </Principal>
- <Dependent Role="Tickets">
- <PropertyRef Name="IdTrip" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tickets_Users">
- <End Type="RouteScheduleDataBaseModel.Users" Role="Users" Multiplicity="1" />
- <End Type="RouteScheduleDataBaseModel.Tickets" Role="Tickets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Users">
- <PropertyRef Name="IdUser" />
- </Principal>
- <Dependent Role="Tickets">
- <PropertyRef Name="IdUser" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Trips_Trains">
- <End Type="RouteScheduleDataBaseModel.Trains" Role="Trains" Multiplicity="1" />
- <End Type="RouteScheduleDataBaseModel.Trips" Role="Trips" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Trains">
- <PropertyRef Name="IdTrain" />
- </Principal>
- <Dependent Role="Trips">
- <PropertyRef Name="IdTrain" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- </Schema>
- </edmx:ConceptualModels>
- <!-- C-S mapping content -->
- <edmx:Mappings>
- <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
- <EntityContainerMapping StorageEntityContainer="RouteScheduleDataBaseModelStoreContainer" CdmEntityContainer="RouteScheduleDataBaseEntities">
- <EntitySetMapping Name="Carriages">
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Carriages">
- <MappingFragment StoreEntitySet="Carriages">
- <ScalarProperty Name="Places" ColumnName="Places" />
- <ScalarProperty Name="IdTrain" ColumnName="IdTrain" />
- <ScalarProperty Name="IdCarriage" ColumnName="IdCarriage" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Routes">
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Routes">
- <MappingFragment StoreEntitySet="Routes">
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="RoutesStations">
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.RoutesStations">
- <MappingFragment StoreEntitySet="RoutesStations">
- <ScalarProperty Name="TravelTime" ColumnName="TravelTime" />
- <ScalarProperty Name="StopTime" ColumnName="StopTime" />
- <ScalarProperty Name="IdStation" ColumnName="IdStation" />
- <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
- <ScalarProperty Name="IdRouteStation" ColumnName="IdRouteStation" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Stations">
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Stations">
- <MappingFragment StoreEntitySet="Stations">
- <ScalarProperty Name="Location" ColumnName="Location" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IdStation" ColumnName="IdStation" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="sysdiagrams">
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.sysdiagrams">
- <MappingFragment StoreEntitySet="sysdiagrams">
- <ScalarProperty Name="definition" ColumnName="definition" />
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
- <ScalarProperty Name="principal_id" ColumnName="principal_id" />
- <ScalarProperty Name="name" ColumnName="name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Tickets">
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Tickets">
- <MappingFragment StoreEntitySet="Tickets">
- <ScalarProperty Name="BuyDate" ColumnName="BuyDate" />
- <ScalarProperty Name="Category" ColumnName="Category" />
- <ScalarProperty Name="PlaceNumber" ColumnName="PlaceNumber" />
- <ScalarProperty Name="IdCarriage" ColumnName="IdCarriage" />
- <ScalarProperty Name="IdTrip" ColumnName="IdTrip" />
- <ScalarProperty Name="IdUser" ColumnName="IdUser" />
- <ScalarProperty Name="IdTicket" ColumnName="IdTicket" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Trains">
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Trains">
- <MappingFragment StoreEntitySet="Trains">
- <ScalarProperty Name="Category" ColumnName="Category" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="IdTrain" ColumnName="IdTrain" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Trips">
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Trips">
- <MappingFragment StoreEntitySet="Trips">
- <ScalarProperty Name="TripStartDate" ColumnName="TripStartDate" />
- <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
- <ScalarProperty Name="IdTrain" ColumnName="IdTrain" />
- <ScalarProperty Name="IdTrip" ColumnName="IdTrip" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Users">
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Users">
- <MappingFragment StoreEntitySet="Users">
- <ScalarProperty Name="Permissions" ColumnName="Permissions" />
- <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Surname" ColumnName="Surname" />
- <ScalarProperty Name="Passport" ColumnName="Passport" />
- <ScalarProperty Name="Password" ColumnName="Password" />
- <ScalarProperty Name="Login" ColumnName="Login" />
- <ScalarProperty Name="IdUser" ColumnName="IdUser" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- </EntityContainerMapping>
- </Mapping></edmx:Mappings>
- </edmx:Runtime>
- <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
- <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
- <Connection>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
- </DesignerInfoPropertySet>
- </Connection>
- <Options>
- <DesignerInfoPropertySet>
- <DesignerProperty Name="ValidateOnBuild" Value="true" />
- <DesignerProperty Name="EnablePluralization" Value="false" />
- <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
- <DesignerProperty Name="UseLegacyProvider" Value="False" />
- <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
- </DesignerInfoPropertySet>
- </Options>
- <!-- Diagram content (shape and connector positions) -->
- <Diagrams></Diagrams>
- </Designer>
- </edmx:Edmx>
|