GasStationModel.edmx 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  3. <!-- EF Runtime content -->
  4. <edmx:Runtime>
  5. <!-- SSDL content -->
  6. <edmx:StorageModels>
  7. <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">
  8. <EntityType Name="FuelType">
  9. <Key>
  10. <PropertyRef Name="FuelTypeID" />
  11. </Key>
  12. <Property Name="FuelTypeID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="NameFuelType" Type="nvarchar" MaxLength="2" Nullable="false" />
  14. </EntityType>
  15. <EntityType Name="FuelTypeOnGasStation">
  16. <Key>
  17. <PropertyRef Name="IDGasStation" />
  18. <PropertyRef Name="IDFuelType" />
  19. </Key>
  20. <Property Name="IDGasStation" Type="int" Nullable="false" />
  21. <Property Name="IDFuelType" Type="int" Nullable="false" />
  22. <Property Name="Price" Type="float" Nullable="false" />
  23. <Property Name="AmountOfFuel" Type="int" Nullable="false" />
  24. </EntityType>
  25. <EntityType Name="GasStation">
  26. <Key>
  27. <PropertyRef Name="GasStationID" />
  28. </Key>
  29. <Property Name="GasStationID" Type="int" Nullable="false" />
  30. <Property Name="Address" Type="nvarchar(max)" Nullable="false" />
  31. </EntityType>
  32. <Association Name="FK_FuelInGasStation_GasStation">
  33. <End Role="GasStation" Type="Self.GasStation" Multiplicity="1" />
  34. <End Role="FuelTypeOnGasStation" Type="Self.FuelTypeOnGasStation" Multiplicity="*" />
  35. <ReferentialConstraint>
  36. <Principal Role="GasStation">
  37. <PropertyRef Name="GasStationID" />
  38. </Principal>
  39. <Dependent Role="FuelTypeOnGasStation">
  40. <PropertyRef Name="IDGasStation" />
  41. </Dependent>
  42. </ReferentialConstraint>
  43. </Association>
  44. <Association Name="FK_FuelInGasStation_TypeOfFuel">
  45. <End Role="FuelType" Type="Self.FuelType" Multiplicity="1" />
  46. <End Role="FuelTypeOnGasStation" Type="Self.FuelTypeOnGasStation" Multiplicity="*" />
  47. <ReferentialConstraint>
  48. <Principal Role="FuelType">
  49. <PropertyRef Name="FuelTypeID" />
  50. </Principal>
  51. <Dependent Role="FuelTypeOnGasStation">
  52. <PropertyRef Name="IDFuelType" />
  53. </Dependent>
  54. </ReferentialConstraint>
  55. </Association>
  56. <EntityContainer Name="Хранилище gr672_pgvModelContainer">
  57. <EntitySet Name="FuelType" EntityType="Self.FuelType" Schema="dbo" store:Type="Tables" />
  58. <EntitySet Name="FuelTypeOnGasStation" EntityType="Self.FuelTypeOnGasStation" Schema="dbo" store:Type="Tables" />
  59. <EntitySet Name="GasStation" EntityType="Self.GasStation" Schema="dbo" store:Type="Tables" />
  60. <AssociationSet Name="FK_FuelInGasStation_GasStation" Association="Self.FK_FuelInGasStation_GasStation">
  61. <End Role="GasStation" EntitySet="GasStation" />
  62. <End Role="FuelTypeOnGasStation" EntitySet="FuelTypeOnGasStation" />
  63. </AssociationSet>
  64. <AssociationSet Name="FK_FuelInGasStation_TypeOfFuel" Association="Self.FK_FuelInGasStation_TypeOfFuel">
  65. <End Role="FuelType" EntitySet="FuelType" />
  66. <End Role="FuelTypeOnGasStation" EntitySet="FuelTypeOnGasStation" />
  67. </AssociationSet>
  68. </EntityContainer>
  69. </Schema></edmx:StorageModels>
  70. <!-- CSDL content -->
  71. <edmx:ConceptualModels>
  72. <Schema Namespace="gr672_pgvModel" 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">
  73. <EntityContainer Name="gr672_pgvEntities" annotation:LazyLoadingEnabled="true">
  74. <EntitySet Name="FuelType" EntityType="gr672_pgvModel.FuelType" />
  75. <EntitySet Name="FuelTypeOnGasStation" EntityType="gr672_pgvModel.FuelTypeOnGasStation" />
  76. <EntitySet Name="GasStation" EntityType="gr672_pgvModel.GasStation" />
  77. <AssociationSet Name="FK_FuelInGasStation_TypeOfFuel" Association="gr672_pgvModel.FK_FuelInGasStation_TypeOfFuel">
  78. <End Role="FuelType" EntitySet="FuelType" />
  79. <End Role="FuelTypeOnGasStation" EntitySet="FuelTypeOnGasStation" />
  80. </AssociationSet>
  81. <AssociationSet Name="FK_FuelInGasStation_GasStation" Association="gr672_pgvModel.FK_FuelInGasStation_GasStation">
  82. <End Role="GasStation" EntitySet="GasStation" />
  83. <End Role="FuelTypeOnGasStation" EntitySet="FuelTypeOnGasStation" />
  84. </AssociationSet>
  85. </EntityContainer>
  86. <EntityType Name="FuelType">
  87. <Key>
  88. <PropertyRef Name="FuelTypeID" />
  89. </Key>
  90. <Property Name="FuelTypeID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  91. <Property Name="NameFuelType" Type="String" Nullable="false" MaxLength="2" FixedLength="false" Unicode="true" />
  92. <NavigationProperty Name="FuelTypeOnGasStation" Relationship="gr672_pgvModel.FK_FuelInGasStation_TypeOfFuel" FromRole="FuelType" ToRole="FuelTypeOnGasStation" />
  93. </EntityType>
  94. <EntityType Name="FuelTypeOnGasStation">
  95. <Key>
  96. <PropertyRef Name="IDGasStation" />
  97. <PropertyRef Name="IDFuelType" />
  98. </Key>
  99. <Property Name="IDGasStation" Type="Int32" Nullable="false" />
  100. <Property Name="IDFuelType" Type="Int32" Nullable="false" />
  101. <Property Name="Price" Type="Double" Nullable="false" />
  102. <Property Name="AmountOfFuel" Type="Int32" Nullable="false" />
  103. <NavigationProperty Name="FuelType" Relationship="gr672_pgvModel.FK_FuelInGasStation_TypeOfFuel" FromRole="FuelTypeOnGasStation" ToRole="FuelType" />
  104. <NavigationProperty Name="GasStation" Relationship="gr672_pgvModel.FK_FuelInGasStation_GasStation" FromRole="FuelTypeOnGasStation" ToRole="GasStation" />
  105. </EntityType>
  106. <EntityType Name="GasStation">
  107. <Key>
  108. <PropertyRef Name="GasStationID" />
  109. </Key>
  110. <Property Name="GasStationID" Type="Int32" Nullable="false" />
  111. <Property Name="Address" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
  112. <NavigationProperty Name="FuelTypeOnGasStation" Relationship="gr672_pgvModel.FK_FuelInGasStation_GasStation" FromRole="GasStation" ToRole="FuelTypeOnGasStation" />
  113. </EntityType>
  114. <Association Name="FK_FuelInGasStation_TypeOfFuel">
  115. <End Type="gr672_pgvModel.FuelType" Role="FuelType" Multiplicity="1" />
  116. <End Type="gr672_pgvModel.FuelTypeOnGasStation" Role="FuelTypeOnGasStation" Multiplicity="*" />
  117. <ReferentialConstraint>
  118. <Principal Role="FuelType">
  119. <PropertyRef Name="FuelTypeID" />
  120. </Principal>
  121. <Dependent Role="FuelTypeOnGasStation">
  122. <PropertyRef Name="IDFuelType" />
  123. </Dependent>
  124. </ReferentialConstraint>
  125. </Association>
  126. <Association Name="FK_FuelInGasStation_GasStation">
  127. <End Type="gr672_pgvModel.GasStation" Role="GasStation" Multiplicity="1" />
  128. <End Type="gr672_pgvModel.FuelTypeOnGasStation" Role="FuelTypeOnGasStation" Multiplicity="*" />
  129. <ReferentialConstraint>
  130. <Principal Role="GasStation">
  131. <PropertyRef Name="GasStationID" />
  132. </Principal>
  133. <Dependent Role="FuelTypeOnGasStation">
  134. <PropertyRef Name="IDGasStation" />
  135. </Dependent>
  136. </ReferentialConstraint>
  137. </Association>
  138. </Schema>
  139. </edmx:ConceptualModels>
  140. <!-- C-S mapping content -->
  141. <edmx:Mappings>
  142. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  143. <EntityContainerMapping StorageEntityContainer="Хранилище gr672_pgvModelContainer" CdmEntityContainer="gr672_pgvEntities">
  144. <EntitySetMapping Name="FuelType">
  145. <EntityTypeMapping TypeName="gr672_pgvModel.FuelType">
  146. <MappingFragment StoreEntitySet="FuelType">
  147. <ScalarProperty Name="NameFuelType" ColumnName="NameFuelType" />
  148. <ScalarProperty Name="FuelTypeID" ColumnName="FuelTypeID" />
  149. </MappingFragment>
  150. </EntityTypeMapping>
  151. </EntitySetMapping>
  152. <EntitySetMapping Name="FuelTypeOnGasStation">
  153. <EntityTypeMapping TypeName="gr672_pgvModel.FuelTypeOnGasStation">
  154. <MappingFragment StoreEntitySet="FuelTypeOnGasStation">
  155. <ScalarProperty Name="AmountOfFuel" ColumnName="AmountOfFuel" />
  156. <ScalarProperty Name="Price" ColumnName="Price" />
  157. <ScalarProperty Name="IDFuelType" ColumnName="IDFuelType" />
  158. <ScalarProperty Name="IDGasStation" ColumnName="IDGasStation" />
  159. </MappingFragment>
  160. </EntityTypeMapping>
  161. </EntitySetMapping>
  162. <EntitySetMapping Name="GasStation">
  163. <EntityTypeMapping TypeName="gr672_pgvModel.GasStation">
  164. <MappingFragment StoreEntitySet="GasStation">
  165. <ScalarProperty Name="Address" ColumnName="Address" />
  166. <ScalarProperty Name="GasStationID" ColumnName="GasStationID" />
  167. </MappingFragment>
  168. </EntityTypeMapping>
  169. </EntitySetMapping>
  170. </EntityContainerMapping>
  171. </Mapping>
  172. </edmx:Mappings>
  173. </edmx:Runtime>
  174. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  175. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  176. <Connection>
  177. <DesignerInfoPropertySet>
  178. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  179. </DesignerInfoPropertySet>
  180. </Connection>
  181. <Options>
  182. <DesignerInfoPropertySet>
  183. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  184. <DesignerProperty Name="EnablePluralization" Value="false" />
  185. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  186. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  187. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  188. </DesignerInfoPropertySet>
  189. </Options>
  190. <!-- Diagram content (shape and connector positions) -->
  191. <Diagrams></Diagrams>
  192. </Designer>
  193. </edmx:Edmx>