|
@@ -4,187 +4,187 @@
|
|
|
<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="Count" Type="int" Nullable="false" />
|
|
|
- </EntityType>
|
|
|
- <EntityType Name="Routes">
|
|
|
- <Key>
|
|
|
- <PropertyRef Name="IdRoute" />
|
|
|
- </Key>
|
|
|
- <Property Name="IdRoute" Type="int" Nullable="false" />
|
|
|
- <Property Name="IdTrain" Type="int" Nullable="false" />
|
|
|
- <Property Name="Departure_Date" Type="datetime" Nullable="false" />
|
|
|
- <Property Name="Arrival_Date" Type="datetime" Nullable="false" />
|
|
|
- </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" />
|
|
|
- </EntityType>
|
|
|
- <EntityType Name="Station">
|
|
|
- <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="IdRoute" 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="NameOfTrain" Type="nvarchar" MaxLength="50" 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" />
|
|
|
- </EntityType>
|
|
|
- <Association Name="FK_Routes_Trains">
|
|
|
- <End Role="Trains" Type="Self.Trains" Multiplicity="1" />
|
|
|
- <End Role="Routes" Type="Self.Routes" Multiplicity="*" />
|
|
|
- <ReferentialConstraint>
|
|
|
- <Principal Role="Trains">
|
|
|
- <PropertyRef Name="IdTrain" />
|
|
|
- </Principal>
|
|
|
- <Dependent Role="Routes">
|
|
|
- <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_Station">
|
|
|
- <End Role="Station" Type="Self.Station" Multiplicity="1" />
|
|
|
- <End Role="RoutesStations" Type="Self.RoutesStations" Multiplicity="*" />
|
|
|
- <ReferentialConstraint>
|
|
|
- <Principal Role="Station">
|
|
|
- <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_Routes">
|
|
|
- <End Role="Routes" Type="Self.Routes" Multiplicity="1" />
|
|
|
- <End Role="Tickets" Type="Self.Tickets" Multiplicity="*" />
|
|
|
- <ReferentialConstraint>
|
|
|
- <Principal Role="Routes">
|
|
|
- <PropertyRef Name="IdRoute" />
|
|
|
- </Principal>
|
|
|
- <Dependent Role="Tickets">
|
|
|
- <PropertyRef Name="IdRoute" />
|
|
|
- </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>
|
|
|
- <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="Station" EntityType="Self.Station" 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="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
|
|
|
- <AssociationSet Name="FK_Routes_Trains" Association="Self.FK_Routes_Trains">
|
|
|
- <End Role="Trains" EntitySet="Trains" />
|
|
|
- <End Role="Routes" EntitySet="Routes" />
|
|
|
- </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_Station" Association="Self.FK_RoutesStations_Station">
|
|
|
- <End Role="Station" EntitySet="Station" />
|
|
|
- <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_Routes" Association="Self.FK_Tickets_Routes">
|
|
|
- <End Role="Routes" EntitySet="Routes" />
|
|
|
- <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>
|
|
|
- </EntityContainer>
|
|
|
- </Schema></edmx:StorageModels>
|
|
|
+ <Schema Namespace="RouteScheduleDataBaseModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2012" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
|
|
+ <EntityContainer Name="RouteScheduleDataBaseModelStoreContainer">
|
|
|
+ <EntitySet Name="Carriages" EntityType="RouteScheduleDataBaseModel.Store.Carriages" store:Type="Tables" Schema="dbo" />
|
|
|
+ <EntitySet Name="Routes" EntityType="RouteScheduleDataBaseModel.Store.Routes" store:Type="Tables" Schema="dbo" />
|
|
|
+ <EntitySet Name="RoutesStations" EntityType="RouteScheduleDataBaseModel.Store.RoutesStations" store:Type="Tables" Schema="dbo" />
|
|
|
+ <EntitySet Name="Station" EntityType="RouteScheduleDataBaseModel.Store.Station" store:Type="Tables" Schema="dbo" />
|
|
|
+ <EntitySet Name="sysdiagrams" EntityType="RouteScheduleDataBaseModel.Store.sysdiagrams" store:Type="Tables" Schema="dbo" />
|
|
|
+ <EntitySet Name="Tickets" EntityType="RouteScheduleDataBaseModel.Store.Tickets" store:Type="Tables" Schema="dbo" />
|
|
|
+ <EntitySet Name="Trains" EntityType="RouteScheduleDataBaseModel.Store.Trains" store:Type="Tables" Schema="dbo" />
|
|
|
+ <EntitySet Name="Users" EntityType="RouteScheduleDataBaseModel.Store.Users" store:Type="Tables" Schema="dbo" />
|
|
|
+ <AssociationSet Name="FK_Tickets_Carriages" Association="RouteScheduleDataBaseModel.Store.FK_Tickets_Carriages">
|
|
|
+ <End Role="Carriages" EntitySet="Carriages" />
|
|
|
+ <End Role="Tickets" EntitySet="Tickets" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Routes_Trains" Association="RouteScheduleDataBaseModel.Store.FK_Routes_Trains">
|
|
|
+ <End Role="Trains" EntitySet="Trains" />
|
|
|
+ <End Role="Routes" EntitySet="Routes" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_RoutesStations_Routes" Association="RouteScheduleDataBaseModel.Store.FK_RoutesStations_Routes">
|
|
|
+ <End Role="Routes" EntitySet="Routes" />
|
|
|
+ <End Role="RoutesStations" EntitySet="RoutesStations" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Tickets_Routes" Association="RouteScheduleDataBaseModel.Store.FK_Tickets_Routes">
|
|
|
+ <End Role="Routes" EntitySet="Routes" />
|
|
|
+ <End Role="Tickets" EntitySet="Tickets" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_RoutesStations_Station" Association="RouteScheduleDataBaseModel.Store.FK_RoutesStations_Station">
|
|
|
+ <End Role="Station" EntitySet="Station" />
|
|
|
+ <End Role="RoutesStations" EntitySet="RoutesStations" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Tickets_Users" Association="RouteScheduleDataBaseModel.Store.FK_Tickets_Users">
|
|
|
+ <End Role="Users" EntitySet="Users" />
|
|
|
+ <End Role="Tickets" EntitySet="Tickets" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
+ <EntityType Name="Carriages">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IdCarriage" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IdCarriage" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Count" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Routes">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IdRoute" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IdRoute" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IdTrain" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Departure_Date" Type="datetime" Nullable="false" />
|
|
|
+ <Property Name="Arrival_Date" Type="datetime" Nullable="false" />
|
|
|
+ </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" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Station">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IdStation" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IdStation" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
|
+ <Property Name="Location" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="sysdiagrams">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="diagram_id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="name" Type="nvarchar" Nullable="false" MaxLength="128" />
|
|
|
+ <Property Name="principal_id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="version" Type="int" Nullable="true" />
|
|
|
+ <Property Name="definition" Type="varbinary(max)" Nullable="true" />
|
|
|
+ </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="IdRoute" 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="NameOfTrain" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Users">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IdUser" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IdUser" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Login" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
|
+ <Property Name="Password" Type="nvarchar" Nullable="false" MaxLength="50" />
|
|
|
+ <Property Name="Passport" Type="nvarchar" Nullable="true" MaxLength="10" />
|
|
|
+ <Property Name="Surname" Type="nvarchar" Nullable="true" MaxLength="50" />
|
|
|
+ <Property Name="Name" Type="nvarchar" Nullable="true" MaxLength="50" />
|
|
|
+ <Property Name="Patronymic" Type="nvarchar" Nullable="true" MaxLength="50" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_Tickets_Carriages">
|
|
|
+ <End Role="Carriages" Type="RouteScheduleDataBaseModel.Store.Carriages" Multiplicity="1" />
|
|
|
+ <End Role="Tickets" Type="RouteScheduleDataBaseModel.Store.Tickets" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Carriages">
|
|
|
+ <PropertyRef Name="IdCarriage" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Tickets">
|
|
|
+ <PropertyRef Name="IdCarriage" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Routes_Trains">
|
|
|
+ <End Role="Trains" Type="RouteScheduleDataBaseModel.Store.Trains" Multiplicity="1" />
|
|
|
+ <End Role="Routes" Type="RouteScheduleDataBaseModel.Store.Routes" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Trains">
|
|
|
+ <PropertyRef Name="IdTrain" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Routes">
|
|
|
+ <PropertyRef Name="IdTrain" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_RoutesStations_Routes">
|
|
|
+ <End Role="Routes" Type="RouteScheduleDataBaseModel.Store.Routes" Multiplicity="1" />
|
|
|
+ <End Role="RoutesStations" Type="RouteScheduleDataBaseModel.Store.RoutesStations" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Routes">
|
|
|
+ <PropertyRef Name="IdRoute" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="RoutesStations">
|
|
|
+ <PropertyRef Name="IdRoute" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Tickets_Routes">
|
|
|
+ <End Role="Routes" Type="RouteScheduleDataBaseModel.Store.Routes" Multiplicity="1" />
|
|
|
+ <End Role="Tickets" Type="RouteScheduleDataBaseModel.Store.Tickets" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Routes">
|
|
|
+ <PropertyRef Name="IdRoute" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Tickets">
|
|
|
+ <PropertyRef Name="IdRoute" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_RoutesStations_Station">
|
|
|
+ <End Role="Station" Type="RouteScheduleDataBaseModel.Store.Station" Multiplicity="1" />
|
|
|
+ <End Role="RoutesStations" Type="RouteScheduleDataBaseModel.Store.RoutesStations" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Station">
|
|
|
+ <PropertyRef Name="IdStation" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="RoutesStations">
|
|
|
+ <PropertyRef Name="IdStation" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Tickets_Users">
|
|
|
+ <End Role="Users" Type="RouteScheduleDataBaseModel.Store.Users" Multiplicity="1" />
|
|
|
+ <End Role="Tickets" Type="RouteScheduleDataBaseModel.Store.Tickets" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Users">
|
|
|
+ <PropertyRef Name="IdUser" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Tickets">
|
|
|
+ <PropertyRef Name="IdUser" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+</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">
|
|
@@ -385,88 +385,88 @@
|
|
|
<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="Count" ColumnName="Count" />
|
|
|
- <ScalarProperty Name="IdCarriage" ColumnName="IdCarriage" />
|
|
|
- </MappingFragment>
|
|
|
- </EntityTypeMapping>
|
|
|
- </EntitySetMapping>
|
|
|
- <EntitySetMapping Name="Routes">
|
|
|
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Routes">
|
|
|
- <MappingFragment StoreEntitySet="Routes">
|
|
|
- <ScalarProperty Name="Arrival_Date" ColumnName="Arrival_Date" />
|
|
|
- <ScalarProperty Name="Departure_Date" ColumnName="Departure_Date" />
|
|
|
- <ScalarProperty Name="IdTrain" ColumnName="IdTrain" />
|
|
|
- <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
|
|
|
- </MappingFragment>
|
|
|
- </EntityTypeMapping>
|
|
|
- </EntitySetMapping>
|
|
|
- <EntitySetMapping Name="RoutesStations">
|
|
|
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.RoutesStations">
|
|
|
- <MappingFragment StoreEntitySet="RoutesStations">
|
|
|
- <ScalarProperty Name="IdStation" ColumnName="IdStation" />
|
|
|
- <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
|
|
|
- <ScalarProperty Name="IdRouteStation" ColumnName="IdRouteStation" />
|
|
|
- </MappingFragment>
|
|
|
- </EntityTypeMapping>
|
|
|
- </EntitySetMapping>
|
|
|
- <EntitySetMapping Name="Station">
|
|
|
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Station">
|
|
|
- <MappingFragment StoreEntitySet="Station">
|
|
|
- <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="IdRoute" ColumnName="IdRoute" />
|
|
|
- <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="NameOfTrain" ColumnName="NameOfTrain" />
|
|
|
- <ScalarProperty Name="IdTrain" ColumnName="IdTrain" />
|
|
|
- </MappingFragment>
|
|
|
- </EntityTypeMapping>
|
|
|
- </EntitySetMapping>
|
|
|
- <EntitySetMapping Name="Users">
|
|
|
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Users">
|
|
|
- <MappingFragment StoreEntitySet="Users">
|
|
|
- <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>
|
|
|
+ <EntitySetMapping Name="Carriages">
|
|
|
+ <EntityTypeMapping TypeName="IsTypeOf(RouteScheduleDataBaseModel.Carriages)">
|
|
|
+ <MappingFragment StoreEntitySet="Carriages">
|
|
|
+ <ScalarProperty Name="IdCarriage" ColumnName="IdCarriage" />
|
|
|
+ <ScalarProperty Name="Count" ColumnName="Count" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Routes">
|
|
|
+ <EntityTypeMapping TypeName="IsTypeOf(RouteScheduleDataBaseModel.Routes)">
|
|
|
+ <MappingFragment StoreEntitySet="Routes">
|
|
|
+ <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
|
|
|
+ <ScalarProperty Name="IdTrain" ColumnName="IdTrain" />
|
|
|
+ <ScalarProperty Name="Departure_Date" ColumnName="Departure_Date" />
|
|
|
+ <ScalarProperty Name="Arrival_Date" ColumnName="Arrival_Date" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="RoutesStations">
|
|
|
+ <EntityTypeMapping TypeName="IsTypeOf(RouteScheduleDataBaseModel.RoutesStations)">
|
|
|
+ <MappingFragment StoreEntitySet="RoutesStations">
|
|
|
+ <ScalarProperty Name="IdRouteStation" ColumnName="IdRouteStation" />
|
|
|
+ <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
|
|
|
+ <ScalarProperty Name="IdStation" ColumnName="IdStation" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Station">
|
|
|
+ <EntityTypeMapping TypeName="IsTypeOf(RouteScheduleDataBaseModel.Station)">
|
|
|
+ <MappingFragment StoreEntitySet="Station">
|
|
|
+ <ScalarProperty Name="IdStation" ColumnName="IdStation" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Location" ColumnName="Location" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="sysdiagrams">
|
|
|
+ <EntityTypeMapping TypeName="IsTypeOf(RouteScheduleDataBaseModel.sysdiagrams)">
|
|
|
+ <MappingFragment StoreEntitySet="sysdiagrams">
|
|
|
+ <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
|
|
|
+ <ScalarProperty Name="name" ColumnName="name" />
|
|
|
+ <ScalarProperty Name="principal_id" ColumnName="principal_id" />
|
|
|
+ <ScalarProperty Name="version" ColumnName="version" />
|
|
|
+ <ScalarProperty Name="definition" ColumnName="definition" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Tickets">
|
|
|
+ <EntityTypeMapping TypeName="IsTypeOf(RouteScheduleDataBaseModel.Tickets)">
|
|
|
+ <MappingFragment StoreEntitySet="Tickets">
|
|
|
+ <ScalarProperty Name="IdTicket" ColumnName="IdTicket" />
|
|
|
+ <ScalarProperty Name="IdUser" ColumnName="IdUser" />
|
|
|
+ <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
|
|
|
+ <ScalarProperty Name="IdCarriage" ColumnName="IdCarriage" />
|
|
|
+ <ScalarProperty Name="PlaceNumber" ColumnName="PlaceNumber" />
|
|
|
+ <ScalarProperty Name="Category" ColumnName="Category" />
|
|
|
+ <ScalarProperty Name="BuyDate" ColumnName="BuyDate" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Trains">
|
|
|
+ <EntityTypeMapping TypeName="IsTypeOf(RouteScheduleDataBaseModel.Trains)">
|
|
|
+ <MappingFragment StoreEntitySet="Trains">
|
|
|
+ <ScalarProperty Name="IdTrain" ColumnName="IdTrain" />
|
|
|
+ <ScalarProperty Name="NameOfTrain" ColumnName="NameOfTrain" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Users">
|
|
|
+ <EntityTypeMapping TypeName="IsTypeOf(RouteScheduleDataBaseModel.Users)">
|
|
|
+ <MappingFragment StoreEntitySet="Users">
|
|
|
+ <ScalarProperty Name="IdUser" ColumnName="IdUser" />
|
|
|
+ <ScalarProperty Name="Login" ColumnName="Login" />
|
|
|
+ <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
+ <ScalarProperty Name="Passport" ColumnName="Passport" />
|
|
|
+ <ScalarProperty Name="Surname" ColumnName="Surname" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ </EntityContainerMapping>
|
|
|
</Mapping></edmx:Mappings>
|
|
|
</edmx:Runtime>
|
|
|
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|