Model1.edmx 13 KB

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