GasStationModel.ssdl 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <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">
  3. <EntityType Name="FuelType">
  4. <Key>
  5. <PropertyRef Name="FuelTypeID" />
  6. </Key>
  7. <Property Name="FuelTypeID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  8. <Property Name="NameFuelType" Type="nvarchar" MaxLength="2" Nullable="false" />
  9. </EntityType>
  10. <EntityType Name="FuelTypeOnGasStation">
  11. <Key>
  12. <PropertyRef Name="IDGasStation" />
  13. <PropertyRef Name="IDFuelType" />
  14. </Key>
  15. <Property Name="IDGasStation" Type="int" Nullable="false" />
  16. <Property Name="IDFuelType" Type="int" Nullable="false" />
  17. <Property Name="Price" Type="float" Nullable="false" />
  18. <Property Name="AmountOfFuel" Type="int" Nullable="false" />
  19. </EntityType>
  20. <EntityType Name="GasStation">
  21. <Key>
  22. <PropertyRef Name="GasStationID" />
  23. </Key>
  24. <Property Name="GasStationID" Type="int" Nullable="false" />
  25. <Property Name="Address" Type="nvarchar(max)" Nullable="false" />
  26. </EntityType>
  27. <Association Name="FK_FuelInGasStation_GasStation">
  28. <End Role="GasStation" Type="Self.GasStation" Multiplicity="1" />
  29. <End Role="FuelTypeOnGasStation" Type="Self.FuelTypeOnGasStation" Multiplicity="*" />
  30. <ReferentialConstraint>
  31. <Principal Role="GasStation">
  32. <PropertyRef Name="GasStationID" />
  33. </Principal>
  34. <Dependent Role="FuelTypeOnGasStation">
  35. <PropertyRef Name="IDGasStation" />
  36. </Dependent>
  37. </ReferentialConstraint>
  38. </Association>
  39. <Association Name="FK_FuelInGasStation_TypeOfFuel">
  40. <End Role="FuelType" Type="Self.FuelType" Multiplicity="1" />
  41. <End Role="FuelTypeOnGasStation" Type="Self.FuelTypeOnGasStation" Multiplicity="*" />
  42. <ReferentialConstraint>
  43. <Principal Role="FuelType">
  44. <PropertyRef Name="FuelTypeID" />
  45. </Principal>
  46. <Dependent Role="FuelTypeOnGasStation">
  47. <PropertyRef Name="IDFuelType" />
  48. </Dependent>
  49. </ReferentialConstraint>
  50. </Association>
  51. <EntityContainer Name="Хранилище gr672_pgvModelContainer">
  52. <EntitySet Name="FuelType" EntityType="Self.FuelType" Schema="dbo" store:Type="Tables" />
  53. <EntitySet Name="FuelTypeOnGasStation" EntityType="Self.FuelTypeOnGasStation" Schema="dbo" store:Type="Tables" />
  54. <EntitySet Name="GasStation" EntityType="Self.GasStation" Schema="dbo" store:Type="Tables" />
  55. <AssociationSet Name="FK_FuelInGasStation_GasStation" Association="Self.FK_FuelInGasStation_GasStation">
  56. <End Role="GasStation" EntitySet="GasStation" />
  57. <End Role="FuelTypeOnGasStation" EntitySet="FuelTypeOnGasStation" />
  58. </AssociationSet>
  59. <AssociationSet Name="FK_FuelInGasStation_TypeOfFuel" Association="Self.FK_FuelInGasStation_TypeOfFuel">
  60. <End Role="FuelType" EntitySet="FuelType" />
  61. <End Role="FuelTypeOnGasStation" EntitySet="FuelTypeOnGasStation" />
  62. </AssociationSet>
  63. </EntityContainer>
  64. </Schema>