123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- <?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="Хранилище Model" Provider="System.Data.SqlClient" ProviderManifestToken="2008" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
- <!--Ошибки, обнаруженные при создании:
- предупреждение 6002: В таблице или представлении "ECCD2F35-7493-4889-BCD0-C5E3CF08F0D3.dbo.AuthorizationTable" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
- <EntityType Name="AuthorizationTable">
- <Key>
- <PropertyRef Name="login" />
- <PropertyRef Name="password" />
- </Key>
- <Property Name="login" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="password" Type="nvarchar" MaxLength="8" Nullable="false" />
- </EntityType>
- <EntityType Name="Roads">
- <Key>
- <PropertyRef Name="roadID" />
- </Key>
- <Property Name="roadID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="nameRoad" Type="nvarchar" MaxLength="40" Nullable="false" />
- <Property Name="typeRoad" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="categoryQuality" Type="nvarchar" MaxLength="20" Nullable="false" />
- </EntityType>
- <EntityType Name="Stations">
- <Key>
- <PropertyRef Name="stationID" />
- </Key>
- <Property Name="stationID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="typeStationID" Type="int" Nullable="false" />
- <Property Name="nameStation" Type="nvarchar" MaxLength="40" Nullable="false" />
- <Property Name="image" Type="image" />
- <Property Name="overheadTransition" Type="bit" Nullable="false" />
- <Property Name="location" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="Stations_Roads">
- <Key>
- <PropertyRef Name="stationID" />
- <PropertyRef Name="roadID" />
- </Key>
- <Property Name="stationID" Type="int" Nullable="false" />
- <Property Name="roadID" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="TypeStation">
- <Key>
- <PropertyRef Name="typeStationID" />
- </Key>
- <Property Name="typeStationID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="nameTypeStation" Type="nvarchar" MaxLength="40" Nullable="false" />
- <Property Name="passagerService" Type="bit" Nullable="false" />
- </EntityType>
- <Association Name="FK_Stations">
- <End Role="TypeStation" Type="Self.TypeStation" Multiplicity="1" />
- <End Role="Stations" Type="Self.Stations" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="TypeStation">
- <PropertyRef Name="typeStationID" />
- </Principal>
- <Dependent Role="Stations">
- <PropertyRef Name="typeStationID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK1_Stations_Roads">
- <End Role="Stations" Type="Self.Stations" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="Stations_Roads" Type="Self.Stations_Roads" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Stations">
- <PropertyRef Name="stationID" />
- </Principal>
- <Dependent Role="Stations_Roads">
- <PropertyRef Name="stationID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK2_Stations_Roads">
- <End Role="Roads" Type="Self.Roads" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <End Role="Stations_Roads" Type="Self.Stations_Roads" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Roads">
- <PropertyRef Name="roadID" />
- </Principal>
- <Dependent Role="Stations_Roads">
- <PropertyRef Name="roadID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище ModelContainer">
- <EntitySet Name="Roads" EntityType="Self.Roads" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Stations" EntityType="Self.Stations" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Stations_Roads" EntityType="Self.Stations_Roads" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="TypeStation" EntityType="Self.TypeStation" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="AuthorizationTable" EntityType="Self.AuthorizationTable" store:Type="Tables" store:Schema="dbo">
- <DefiningQuery>SELECT
- [AuthorizationTable].[login] AS [login],
- [AuthorizationTable].[password] AS [password]
- FROM [dbo].[AuthorizationTable] AS [AuthorizationTable]</DefiningQuery>
- </EntitySet>
- <AssociationSet Name="FK_Stations" Association="Self.FK_Stations">
- <End Role="TypeStation" EntitySet="TypeStation" />
- <End Role="Stations" EntitySet="Stations" />
- </AssociationSet>
- <AssociationSet Name="FK1_Stations_Roads" Association="Self.FK1_Stations_Roads">
- <End Role="Stations" EntitySet="Stations" />
- <End Role="Stations_Roads" EntitySet="Stations_Roads" />
- </AssociationSet>
- <AssociationSet Name="FK2_Stations_Roads" Association="Self.FK2_Stations_Roads">
- <End Role="Roads" EntitySet="Roads" />
- <End Role="Stations_Roads" EntitySet="Stations_Roads" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="Model" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
- <EntityType Name="Roads">
- <Key>
- <PropertyRef Name="roadID" />
- </Key>
- <Property Name="roadID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="nameRoad" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="typeRoad" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="categoryQuality" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Stations" Relationship="Self.Stations_Roads" FromRole="Roads" ToRole="Stations" />
- </EntityType>
- <EntityType Name="Stations">
- <Key>
- <PropertyRef Name="stationID" />
- </Key>
- <Property Name="stationID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="typeStationID" Type="Int32" Nullable="false" />
- <Property Name="nameStation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="image" Type="Binary" MaxLength="Max" FixedLength="false" />
- <Property Name="overheadTransition" Type="Boolean" Nullable="false" />
- <Property Name="location" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="TypeStation" Relationship="Self.FK_Stations" FromRole="Stations" ToRole="TypeStation" />
- <NavigationProperty Name="Roads" Relationship="Self.Stations_Roads" FromRole="Stations" ToRole="Roads" />
- </EntityType>
- <EntityType Name="TypeStation">
- <Key>
- <PropertyRef Name="typeStationID" />
- </Key>
- <Property Name="typeStationID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="nameTypeStation" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="passagerService" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="Stations" Relationship="Self.FK_Stations" FromRole="TypeStation" ToRole="Stations" />
- </EntityType>
- <EntityType Name="AuthorizationTable">
- <Key>
- <PropertyRef Name="login" />
- <PropertyRef Name="password" />
- </Key>
- <Property Name="login" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="password" Type="String" MaxLength="8" FixedLength="false" Unicode="true" Nullable="false" />
- </EntityType>
- <Association Name="FK_Stations">
- <End Role="TypeStation" Type="Self.TypeStation" Multiplicity="1" />
- <End Role="Stations" Type="Self.Stations" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="TypeStation">
- <PropertyRef Name="typeStationID" />
- </Principal>
- <Dependent Role="Stations">
- <PropertyRef Name="typeStationID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="Stations_Roads">
- <End Role="Stations" Type="Self.Stations" Multiplicity="*" />
- <End Role="Roads" Type="Self.Roads" Multiplicity="*" />
- </Association>
- <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Roads" EntityType="Self.Roads" />
- <EntitySet Name="Stations" EntityType="Self.Stations" />
- <EntitySet Name="TypeStation" EntityType="Self.TypeStation" />
- <EntitySet Name="AuthorizationTable" EntityType="Self.AuthorizationTable" />
- <AssociationSet Name="FK_Stations" Association="Self.FK_Stations">
- <End Role="TypeStation" EntitySet="TypeStation" />
- <End Role="Stations" EntitySet="Stations" />
- </AssociationSet>
- <AssociationSet Name="Stations_Roads" Association="Self.Stations_Roads">
- <End Role="Stations" EntitySet="Stations" />
- <End Role="Roads" EntitySet="Roads" />
- </AssociationSet>
- </EntityContainer>
- </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="Хранилище ModelContainer" CdmEntityContainer="Entities">
- <EntitySetMapping Name="Roads">
- <EntityTypeMapping TypeName="Model.Roads">
- <MappingFragment StoreEntitySet="Roads">
- <ScalarProperty Name="roadID" ColumnName="roadID" />
- <ScalarProperty Name="nameRoad" ColumnName="nameRoad" />
- <ScalarProperty Name="typeRoad" ColumnName="typeRoad" />
- <ScalarProperty Name="categoryQuality" ColumnName="categoryQuality" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Stations">
- <EntityTypeMapping TypeName="Model.Stations">
- <MappingFragment StoreEntitySet="Stations">
- <ScalarProperty Name="stationID" ColumnName="stationID" />
- <ScalarProperty Name="typeStationID" ColumnName="typeStationID" />
- <ScalarProperty Name="nameStation" ColumnName="nameStation" />
- <ScalarProperty Name="image" ColumnName="image" />
- <ScalarProperty Name="overheadTransition" ColumnName="overheadTransition" />
- <ScalarProperty Name="location" ColumnName="location" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="TypeStation">
- <EntityTypeMapping TypeName="Model.TypeStation">
- <MappingFragment StoreEntitySet="TypeStation">
- <ScalarProperty Name="typeStationID" ColumnName="typeStationID" />
- <ScalarProperty Name="nameTypeStation" ColumnName="nameTypeStation" />
- <ScalarProperty Name="passagerService" ColumnName="passagerService" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="AuthorizationTable">
- <EntityTypeMapping TypeName="Model.AuthorizationTable">
- <MappingFragment StoreEntitySet="AuthorizationTable">
- <ScalarProperty Name="login" ColumnName="login" />
- <ScalarProperty Name="password" ColumnName="password" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <AssociationSetMapping Name="Stations_Roads" TypeName="Model.Stations_Roads" StoreEntitySet="Stations_Roads">
- <EndProperty Name="Stations">
- <ScalarProperty Name="stationID" ColumnName="stationID" />
- </EndProperty>
- <EndProperty Name="Roads">
- <ScalarProperty Name="roadID" ColumnName="roadID" />
- </EndProperty>
- </AssociationSetMapping>
- </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="true" />
- <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
- </DesignerInfoPropertySet>
- </Options>
- <!-- Diagram content (shape and connector positions) -->
- <Diagrams></Diagrams>
- </Designer>
- </edmx:Edmx>
|