Model1.edmx 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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="Хранилище TestProductModel" 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="Basket">
  9. <Key>
  10. <PropertyRef Name="Id" />
  11. </Key>
  12. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="Price" Type="float" Nullable="false" />
  14. <Property Name="CountProduct" Type="int" Nullable="false" />
  15. <Property Name="IdPickPoint" Type="int" Nullable="false" />
  16. <Property Name="Date" Type="date" />
  17. </EntityType>
  18. <EntityType Name="PickPoint">
  19. <Key>
  20. <PropertyRef Name="Id" />
  21. </Key>
  22. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  23. <Property Name="Kind" Type="nvarchar(max)" Nullable="false" />
  24. </EntityType>
  25. <EntityType Name="Product">
  26. <Key>
  27. <PropertyRef Name="Id" />
  28. </Key>
  29. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  30. <Property Name="ProductName" Type="nvarchar" MaxLength="50" Nullable="false" />
  31. <Property Name="ProductDescription" Type="nvarchar(max)" />
  32. <Property Name="ProductPhoto" Type="nvarchar(max)" />
  33. <Property Name="ProductCost" Type="float" Nullable="false" />
  34. <Property Name="ProductDiscount" Type="int" />
  35. </EntityType>
  36. <EntityType Name="ProductBaskets">
  37. <Key>
  38. <PropertyRef Name="Id" />
  39. </Key>
  40. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  41. <Property Name="IdProduct" Type="int" Nullable="false" />
  42. <Property Name="IdBasket" Type="int" Nullable="false" />
  43. </EntityType>
  44. <Association Name="FK_Basket_PickPoint">
  45. <End Role="PickPoint" Type="Self.PickPoint" Multiplicity="1" />
  46. <End Role="Basket" Type="Self.Basket" Multiplicity="*" />
  47. <ReferentialConstraint>
  48. <Principal Role="PickPoint">
  49. <PropertyRef Name="Id" />
  50. </Principal>
  51. <Dependent Role="Basket">
  52. <PropertyRef Name="IdPickPoint" />
  53. </Dependent>
  54. </ReferentialConstraint>
  55. </Association>
  56. <Association Name="FK_ProductBaskets_Basket">
  57. <End Role="Basket" Type="Self.Basket" Multiplicity="1" />
  58. <End Role="ProductBaskets" Type="Self.ProductBaskets" Multiplicity="*" />
  59. <ReferentialConstraint>
  60. <Principal Role="Basket">
  61. <PropertyRef Name="Id" />
  62. </Principal>
  63. <Dependent Role="ProductBaskets">
  64. <PropertyRef Name="IdBasket" />
  65. </Dependent>
  66. </ReferentialConstraint>
  67. </Association>
  68. <Association Name="FK_ProductBaskets_Product">
  69. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  70. <End Role="ProductBaskets" Type="Self.ProductBaskets" Multiplicity="*" />
  71. <ReferentialConstraint>
  72. <Principal Role="Product">
  73. <PropertyRef Name="Id" />
  74. </Principal>
  75. <Dependent Role="ProductBaskets">
  76. <PropertyRef Name="IdProduct" />
  77. </Dependent>
  78. </ReferentialConstraint>
  79. </Association>
  80. <EntityContainer Name="Хранилище TestProductModelContainer">
  81. <EntitySet Name="Basket" EntityType="Self.Basket" Schema="dbo" store:Type="Tables" />
  82. <EntitySet Name="PickPoint" EntityType="Self.PickPoint" Schema="dbo" store:Type="Tables" />
  83. <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
  84. <EntitySet Name="ProductBaskets" EntityType="Self.ProductBaskets" Schema="dbo" store:Type="Tables" />
  85. <AssociationSet Name="FK_Basket_PickPoint" Association="Self.FK_Basket_PickPoint">
  86. <End Role="PickPoint" EntitySet="PickPoint" />
  87. <End Role="Basket" EntitySet="Basket" />
  88. </AssociationSet>
  89. <AssociationSet Name="FK_ProductBaskets_Basket" Association="Self.FK_ProductBaskets_Basket">
  90. <End Role="Basket" EntitySet="Basket" />
  91. <End Role="ProductBaskets" EntitySet="ProductBaskets" />
  92. </AssociationSet>
  93. <AssociationSet Name="FK_ProductBaskets_Product" Association="Self.FK_ProductBaskets_Product">
  94. <End Role="Product" EntitySet="Product" />
  95. <End Role="ProductBaskets" EntitySet="ProductBaskets" />
  96. </AssociationSet>
  97. </EntityContainer>
  98. </Schema></edmx:StorageModels>
  99. <!-- CSDL content -->
  100. <edmx:ConceptualModels>
  101. <Schema Namespace="TestProductModel" 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">
  102. <EntityContainer Name="TestProductEntities" annotation:LazyLoadingEnabled="true">
  103. <EntitySet Name="Basket" EntityType="TestProductModel.Basket" />
  104. <EntitySet Name="PickPoint" EntityType="TestProductModel.PickPoint" />
  105. <EntitySet Name="Product" EntityType="TestProductModel.Product" />
  106. <EntitySet Name="ProductBaskets" EntityType="TestProductModel.ProductBaskets" />
  107. <AssociationSet Name="FK_Basket_PickPoint" Association="TestProductModel.FK_Basket_PickPoint">
  108. <End Role="PickPoint" EntitySet="PickPoint" />
  109. <End Role="Basket" EntitySet="Basket" />
  110. </AssociationSet>
  111. <AssociationSet Name="FK_ProductBaskets_Basket" Association="TestProductModel.FK_ProductBaskets_Basket">
  112. <End Role="Basket" EntitySet="Basket" />
  113. <End Role="ProductBaskets" EntitySet="ProductBaskets" />
  114. </AssociationSet>
  115. <AssociationSet Name="FK_ProductBaskets_Product" Association="TestProductModel.FK_ProductBaskets_Product">
  116. <End Role="Product" EntitySet="Product" />
  117. <End Role="ProductBaskets" EntitySet="ProductBaskets" />
  118. </AssociationSet>
  119. </EntityContainer>
  120. <EntityType Name="Basket">
  121. <Key>
  122. <PropertyRef Name="Id" />
  123. </Key>
  124. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  125. <Property Name="Price" Type="Double" Nullable="false" />
  126. <Property Name="CountProduct" Type="Int32" Nullable="false" />
  127. <Property Name="IdPickPoint" Type="Int32" Nullable="false" />
  128. <Property Name="Date" Type="DateTime" Precision="0" />
  129. <NavigationProperty Name="PickPoint" Relationship="TestProductModel.FK_Basket_PickPoint" FromRole="Basket" ToRole="PickPoint" />
  130. <NavigationProperty Name="ProductBaskets" Relationship="TestProductModel.FK_ProductBaskets_Basket" FromRole="Basket" ToRole="ProductBaskets" />
  131. </EntityType>
  132. <EntityType Name="PickPoint">
  133. <Key>
  134. <PropertyRef Name="Id" />
  135. </Key>
  136. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  137. <Property Name="Kind" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
  138. <NavigationProperty Name="Basket" Relationship="TestProductModel.FK_Basket_PickPoint" FromRole="PickPoint" ToRole="Basket" />
  139. </EntityType>
  140. <EntityType Name="Product">
  141. <Key>
  142. <PropertyRef Name="Id" />
  143. </Key>
  144. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  145. <Property Name="ProductName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  146. <Property Name="ProductDescription" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  147. <Property Name="ProductPhoto" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  148. <Property Name="ProductCost" Type="Double" Nullable="false" />
  149. <Property Name="ProductDiscount" Type="Int32" />
  150. <NavigationProperty Name="ProductBaskets" Relationship="TestProductModel.FK_ProductBaskets_Product" FromRole="Product" ToRole="ProductBaskets" />
  151. </EntityType>
  152. <EntityType Name="ProductBaskets">
  153. <Key>
  154. <PropertyRef Name="Id" />
  155. </Key>
  156. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  157. <Property Name="IdProduct" Type="Int32" Nullable="false" />
  158. <Property Name="IdBasket" Type="Int32" Nullable="false" />
  159. <NavigationProperty Name="Basket" Relationship="TestProductModel.FK_ProductBaskets_Basket" FromRole="ProductBaskets" ToRole="Basket" />
  160. <NavigationProperty Name="Product" Relationship="TestProductModel.FK_ProductBaskets_Product" FromRole="ProductBaskets" ToRole="Product" />
  161. </EntityType>
  162. <Association Name="FK_Basket_PickPoint">
  163. <End Type="TestProductModel.PickPoint" Role="PickPoint" Multiplicity="1" />
  164. <End Type="TestProductModel.Basket" Role="Basket" Multiplicity="*" />
  165. <ReferentialConstraint>
  166. <Principal Role="PickPoint">
  167. <PropertyRef Name="Id" />
  168. </Principal>
  169. <Dependent Role="Basket">
  170. <PropertyRef Name="IdPickPoint" />
  171. </Dependent>
  172. </ReferentialConstraint>
  173. </Association>
  174. <Association Name="FK_ProductBaskets_Basket">
  175. <End Type="TestProductModel.Basket" Role="Basket" Multiplicity="1" />
  176. <End Type="TestProductModel.ProductBaskets" Role="ProductBaskets" Multiplicity="*" />
  177. <ReferentialConstraint>
  178. <Principal Role="Basket">
  179. <PropertyRef Name="Id" />
  180. </Principal>
  181. <Dependent Role="ProductBaskets">
  182. <PropertyRef Name="IdBasket" />
  183. </Dependent>
  184. </ReferentialConstraint>
  185. </Association>
  186. <Association Name="FK_ProductBaskets_Product">
  187. <End Type="TestProductModel.Product" Role="Product" Multiplicity="1" />
  188. <End Type="TestProductModel.ProductBaskets" Role="ProductBaskets" Multiplicity="*" />
  189. <ReferentialConstraint>
  190. <Principal Role="Product">
  191. <PropertyRef Name="Id" />
  192. </Principal>
  193. <Dependent Role="ProductBaskets">
  194. <PropertyRef Name="IdProduct" />
  195. </Dependent>
  196. </ReferentialConstraint>
  197. </Association>
  198. </Schema>
  199. </edmx:ConceptualModels>
  200. <!-- C-S mapping content -->
  201. <edmx:Mappings>
  202. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  203. <EntityContainerMapping StorageEntityContainer="Хранилище TestProductModelContainer" CdmEntityContainer="TestProductEntities">
  204. <EntitySetMapping Name="Basket">
  205. <EntityTypeMapping TypeName="TestProductModel.Basket">
  206. <MappingFragment StoreEntitySet="Basket">
  207. <ScalarProperty Name="Date" ColumnName="Date" />
  208. <ScalarProperty Name="IdPickPoint" ColumnName="IdPickPoint" />
  209. <ScalarProperty Name="CountProduct" ColumnName="CountProduct" />
  210. <ScalarProperty Name="Price" ColumnName="Price" />
  211. <ScalarProperty Name="Id" ColumnName="Id" />
  212. </MappingFragment>
  213. </EntityTypeMapping>
  214. </EntitySetMapping>
  215. <EntitySetMapping Name="PickPoint">
  216. <EntityTypeMapping TypeName="TestProductModel.PickPoint">
  217. <MappingFragment StoreEntitySet="PickPoint">
  218. <ScalarProperty Name="Kind" ColumnName="Kind" />
  219. <ScalarProperty Name="Id" ColumnName="Id" />
  220. </MappingFragment>
  221. </EntityTypeMapping>
  222. </EntitySetMapping>
  223. <EntitySetMapping Name="Product">
  224. <EntityTypeMapping TypeName="TestProductModel.Product">
  225. <MappingFragment StoreEntitySet="Product">
  226. <ScalarProperty Name="ProductDiscount" ColumnName="ProductDiscount" />
  227. <ScalarProperty Name="ProductCost" ColumnName="ProductCost" />
  228. <ScalarProperty Name="ProductPhoto" ColumnName="ProductPhoto" />
  229. <ScalarProperty Name="ProductDescription" ColumnName="ProductDescription" />
  230. <ScalarProperty Name="ProductName" ColumnName="ProductName" />
  231. <ScalarProperty Name="Id" ColumnName="Id" />
  232. </MappingFragment>
  233. </EntityTypeMapping>
  234. </EntitySetMapping>
  235. <EntitySetMapping Name="ProductBaskets">
  236. <EntityTypeMapping TypeName="TestProductModel.ProductBaskets">
  237. <MappingFragment StoreEntitySet="ProductBaskets">
  238. <ScalarProperty Name="IdBasket" ColumnName="IdBasket" />
  239. <ScalarProperty Name="IdProduct" ColumnName="IdProduct" />
  240. <ScalarProperty Name="Id" ColumnName="Id" />
  241. </MappingFragment>
  242. </EntityTypeMapping>
  243. </EntitySetMapping>
  244. </EntityContainerMapping>
  245. </Mapping>
  246. </edmx:Mappings>
  247. </edmx:Runtime>
  248. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  249. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  250. <Connection>
  251. <DesignerInfoPropertySet>
  252. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  253. </DesignerInfoPropertySet>
  254. </Connection>
  255. <Options>
  256. <DesignerInfoPropertySet>
  257. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  258. <DesignerProperty Name="EnablePluralization" Value="false" />
  259. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  260. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  261. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  262. </DesignerInfoPropertySet>
  263. </Options>
  264. <!-- Diagram content (shape and connector positions) -->
  265. <Diagrams></Diagrams>
  266. </Designer>
  267. </edmx:Edmx>