|
@@ -4,8 +4,19 @@
|
|
|
<edmx:Runtime>
|
|
|
<!-- SSDL content -->
|
|
|
<edmx:StorageModels>
|
|
|
- <Schema Namespace="Хранилище RouteScheduleDataBaseModel" 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="Table">
|
|
|
+ <Schema Namespace="Хранилище RouteScheduleDataBaseModel" 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="Routes">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IdRoute" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IdRoute" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IdTrain" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Departure_Station" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Arrival_Station" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Departure_Date" Type="date" Nullable="false" />
|
|
|
+ <Property Name="Arrival_Date" Type="date" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="TestTable">
|
|
|
<Key>
|
|
|
<PropertyRef Name="IdRoute" />
|
|
|
</Key>
|
|
@@ -16,43 +27,151 @@
|
|
|
<Property Name="DepartureDate" Type="date" Nullable="false" />
|
|
|
<Property Name="ArrivalDate" Type="date" Nullable="false" />
|
|
|
</EntityType>
|
|
|
+ <EntityType Name="Tickets">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IdTicket" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IdTicket" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IdRoute" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IdTrainCarriage" Type="int" Nullable="false" />
|
|
|
+ <Property Name="PlaceNumber" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Category" Type="int" Nullable="false" />
|
|
|
+ <Property Name="BuyDate" Type="date" 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="TrainsCarriages">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IdCarriage" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IdCarriage" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Count" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
<EntityContainer Name="Хранилище RouteScheduleDataBaseModelContainer">
|
|
|
- <EntitySet Name="Table" EntityType="Self.Table" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Routes" EntityType="Self.Routes" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="TestTable" EntityType="Self.TestTable" 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="TrainsCarriages" EntityType="Self.TrainsCarriages" Schema="dbo" store:Type="Tables" />
|
|
|
</EntityContainer>
|
|
|
- </Schema>
|
|
|
- </edmx:StorageModels>
|
|
|
+ </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">
|
|
|
- <EntityType Name="Table">
|
|
|
+ <EntityContainer Name="RouteScheduleDataBaseEntities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Routes" EntityType="RouteScheduleDataBaseModel.Routes" />
|
|
|
+ <EntitySet Name="TestTable" EntityType="RouteScheduleDataBaseModel.TestTable" />
|
|
|
+ <EntitySet Name="Tickets" EntityType="RouteScheduleDataBaseModel.Tickets" />
|
|
|
+ <EntitySet Name="Trains" EntityType="RouteScheduleDataBaseModel.Trains" />
|
|
|
+ <EntitySet Name="TrainsCarriages" EntityType="RouteScheduleDataBaseModel.TrainsCarriages" />
|
|
|
+ </EntityContainer>
|
|
|
+ <EntityType Name="Routes">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IdRoute" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IdRoute" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IdTrain" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Departure_Station" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Arrival_Station" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Departure_Date" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
+ <Property Name="Arrival_Date" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="TestTable">
|
|
|
<Key>
|
|
|
<PropertyRef Name="IdRoute" />
|
|
|
</Key>
|
|
|
<Property Name="IdRoute" Type="Int32" Nullable="false" />
|
|
|
<Property Name="IdTrain" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="Departure" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
- <Property Name="Arrival" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Departure" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Arrival" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="DepartureDate" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
<Property Name="ArrivalDate" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
</EntityType>
|
|
|
- <EntityContainer Name="RouteScheduleDataBaseEntities" annotation:LazyLoadingEnabled="true">
|
|
|
- <EntitySet Name="Table" EntityType="Self.Table" />
|
|
|
- </EntityContainer>
|
|
|
+ <EntityType Name="Tickets">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IdTicket" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IdTicket" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IdRoute" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IdTrainCarriage" 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="0" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Trains">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IdTrain" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IdTrain" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="NameOfTrain" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="TrainsCarriages">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IdCarriage" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IdCarriage" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Count" Type="Int32" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
</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="Хранилище RouteScheduleDataBaseModelContainer" CdmEntityContainer="RouteScheduleDataBaseEntities">
|
|
|
- <EntitySetMapping Name="Table">
|
|
|
- <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.Table">
|
|
|
- <MappingFragment StoreEntitySet="Table">
|
|
|
- <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
|
|
|
+ <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="Arrival_Station" ColumnName="Arrival_Station" />
|
|
|
+ <ScalarProperty Name="Departure_Station" ColumnName="Departure_Station" />
|
|
|
<ScalarProperty Name="IdTrain" ColumnName="IdTrain" />
|
|
|
- <ScalarProperty Name="Departure" ColumnName="Departure" />
|
|
|
- <ScalarProperty Name="Arrival" ColumnName="Arrival" />
|
|
|
- <ScalarProperty Name="DepartureDate" ColumnName="DepartureDate" />
|
|
|
+ <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="TestTable">
|
|
|
+ <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.TestTable">
|
|
|
+ <MappingFragment StoreEntitySet="TestTable">
|
|
|
<ScalarProperty Name="ArrivalDate" ColumnName="ArrivalDate" />
|
|
|
+ <ScalarProperty Name="DepartureDate" ColumnName="DepartureDate" />
|
|
|
+ <ScalarProperty Name="Arrival" ColumnName="Arrival" />
|
|
|
+ <ScalarProperty Name="Departure" ColumnName="Departure" />
|
|
|
+ <ScalarProperty Name="IdTrain" ColumnName="IdTrain" />
|
|
|
+ <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
|
|
|
+ </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="IdTrainCarriage" ColumnName="IdTrainCarriage" />
|
|
|
+ <ScalarProperty Name="IdRoute" ColumnName="IdRoute" />
|
|
|
+ <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="TrainsCarriages">
|
|
|
+ <EntityTypeMapping TypeName="RouteScheduleDataBaseModel.TrainsCarriages">
|
|
|
+ <MappingFragment StoreEntitySet="TrainsCarriages">
|
|
|
+ <ScalarProperty Name="Count" ColumnName="Count" />
|
|
|
+ <ScalarProperty Name="IdCarriage" ColumnName="IdCarriage" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|