12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?xml version="1.0" encoding="utf-8"?>
- <Schema Namespace="Хранилище gr672_pgvModel" 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="FuelType">
- <Key>
- <PropertyRef Name="FuelTypeID" />
- </Key>
- <Property Name="FuelTypeID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="NameFuelType" Type="nvarchar" MaxLength="2" Nullable="false" />
- </EntityType>
- <EntityType Name="FuelTypeOnGasStation">
- <Key>
- <PropertyRef Name="IDGasStation" />
- <PropertyRef Name="IDFuelType" />
- </Key>
- <Property Name="IDGasStation" Type="int" Nullable="false" />
- <Property Name="IDFuelType" Type="int" Nullable="false" />
- <Property Name="Price" Type="float" Nullable="false" />
- <Property Name="AmountOfFuel" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="GasStation">
- <Key>
- <PropertyRef Name="GasStationID" />
- </Key>
- <Property Name="GasStationID" Type="int" Nullable="false" />
- <Property Name="Address" Type="nvarchar(max)" Nullable="false" />
- </EntityType>
- <Association Name="FK_FuelInGasStation_GasStation">
- <End Role="GasStation" Type="Self.GasStation" Multiplicity="1" />
- <End Role="FuelTypeOnGasStation" Type="Self.FuelTypeOnGasStation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="GasStation">
- <PropertyRef Name="GasStationID" />
- </Principal>
- <Dependent Role="FuelTypeOnGasStation">
- <PropertyRef Name="IDGasStation" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_FuelInGasStation_TypeOfFuel">
- <End Role="FuelType" Type="Self.FuelType" Multiplicity="1" />
- <End Role="FuelTypeOnGasStation" Type="Self.FuelTypeOnGasStation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="FuelType">
- <PropertyRef Name="FuelTypeID" />
- </Principal>
- <Dependent Role="FuelTypeOnGasStation">
- <PropertyRef Name="IDFuelType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище gr672_pgvModelContainer">
- <EntitySet Name="FuelType" EntityType="Self.FuelType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="FuelTypeOnGasStation" EntityType="Self.FuelTypeOnGasStation" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="GasStation" EntityType="Self.GasStation" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_FuelInGasStation_GasStation" Association="Self.FK_FuelInGasStation_GasStation">
- <End Role="GasStation" EntitySet="GasStation" />
- <End Role="FuelTypeOnGasStation" EntitySet="FuelTypeOnGasStation" />
- </AssociationSet>
- <AssociationSet Name="FK_FuelInGasStation_TypeOfFuel" Association="Self.FK_FuelInGasStation_TypeOfFuel">
- <End Role="FuelType" EntitySet="FuelType" />
- <End Role="FuelTypeOnGasStation" EntitySet="FuelTypeOnGasStation" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
|