Model1.edmx 13 KB

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