Model1.edmx 13 KB

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