Model1.edmx 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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="Хранилище PEzhov_examModel" 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="Books">
  9. <Key>
  10. <PropertyRef Name="id" />
  11. </Key>
  12. <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="Heading" Type="nvarchar(max)" Nullable="false" />
  14. <Property Name="Style" Type="nvarchar(max)" Nullable="false" />
  15. <Property Name="Writer" Type="nvarchar(max)" Nullable="false" />
  16. <Property Name="Price" Type="decimal" Precision="18" Scale="2" Nullable="false" />
  17. <Property Name="StoreCount" Type="int" Nullable="false" />
  18. <Property Name="StockCount" Type="int" Nullable="false" />
  19. <Property Name="Specification" Type="nvarchar(max)" Nullable="false" />
  20. <Property Name="Image" Type="nvarchar(max)" Nullable="false" />
  21. </EntityType>
  22. <EntityType Name="Ordering">
  23. <Key>
  24. <PropertyRef Name="Id" />
  25. </Key>
  26. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  27. <Property Name="SerialNumber" Type="int" Nullable="false" />
  28. <Property Name="IdBooks" Type="int" Nullable="false" />
  29. <Property Name="Count" Type="int" Nullable="false" />
  30. <Property Name="DateOrdering" Type="date" Nullable="false" />
  31. </EntityType>
  32. <Association Name="FK_Order_Book">
  33. <End Role="Books" Type="Self.Books" Multiplicity="1" />
  34. <End Role="Ordering" Type="Self.Ordering" Multiplicity="*" />
  35. <ReferentialConstraint>
  36. <Principal Role="Books">
  37. <PropertyRef Name="id" />
  38. </Principal>
  39. <Dependent Role="Ordering">
  40. <PropertyRef Name="IdBooks" />
  41. </Dependent>
  42. </ReferentialConstraint>
  43. </Association>
  44. <EntityContainer Name="Хранилище PEzhov_examModelContainer">
  45. <EntitySet Name="Books" EntityType="Self.Books" Schema="dbo" store:Type="Tables" />
  46. <EntitySet Name="Ordering" EntityType="Self.Ordering" Schema="dbo" store:Type="Tables" />
  47. <AssociationSet Name="FK_Order_Book" Association="Self.FK_Order_Book">
  48. <End Role="Books" EntitySet="Books" />
  49. <End Role="Ordering" EntitySet="Ordering" />
  50. </AssociationSet>
  51. </EntityContainer>
  52. </Schema>
  53. </edmx:StorageModels>
  54. <!-- CSDL content -->
  55. <edmx:ConceptualModels>
  56. <Schema Namespace="PEzhov_examModel" 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">
  57. <EntityType Name="Books">
  58. <Key>
  59. <PropertyRef Name="id" />
  60. </Key>
  61. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  62. <Property Name="Heading" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  63. <Property Name="Style" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  64. <Property Name="Writer" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  65. <Property Name="Price" Type="Decimal" Precision="18" Scale="2" Nullable="false" />
  66. <Property Name="StoreCount" Type="Int32" Nullable="false" />
  67. <Property Name="StockCount" Type="Int32" Nullable="false" />
  68. <Property Name="Specification" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  69. <Property Name="Image" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  70. <NavigationProperty Name="Ordering" Relationship="Self.FK_Order_Book" FromRole="Books" ToRole="Ordering" />
  71. </EntityType>
  72. <EntityType Name="Ordering">
  73. <Key>
  74. <PropertyRef Name="Id" />
  75. </Key>
  76. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  77. <Property Name="SerialNumber" Type="Int32" Nullable="false" />
  78. <Property Name="IdBooks" Type="Int32" Nullable="false" />
  79. <Property Name="Count" Type="Int32" Nullable="false" />
  80. <Property Name="DateOrdering" Type="DateTime" Nullable="false" Precision="0" />
  81. <NavigationProperty Name="Books" Relationship="Self.FK_Order_Book" FromRole="Ordering" ToRole="Books" />
  82. </EntityType>
  83. <Association Name="FK_Order_Book">
  84. <End Role="Books" Type="Self.Books" Multiplicity="1" />
  85. <End Role="Ordering" Type="Self.Ordering" Multiplicity="*" />
  86. <ReferentialConstraint>
  87. <Principal Role="Books">
  88. <PropertyRef Name="id" />
  89. </Principal>
  90. <Dependent Role="Ordering">
  91. <PropertyRef Name="IdBooks" />
  92. </Dependent>
  93. </ReferentialConstraint>
  94. </Association>
  95. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  96. <EntitySet Name="Books" EntityType="Self.Books" />
  97. <EntitySet Name="Ordering" EntityType="Self.Ordering" />
  98. <AssociationSet Name="FK_Order_Book" Association="Self.FK_Order_Book">
  99. <End Role="Books" EntitySet="Books" />
  100. <End Role="Ordering" EntitySet="Ordering" />
  101. </AssociationSet>
  102. </EntityContainer>
  103. </Schema>
  104. </edmx:ConceptualModels>
  105. <!-- C-S mapping content -->
  106. <edmx:Mappings>
  107. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  108. <EntityContainerMapping StorageEntityContainer="Хранилище PEzhov_examModelContainer" CdmEntityContainer="Entities">
  109. <EntitySetMapping Name="Books">
  110. <EntityTypeMapping TypeName="PEzhov_examModel.Books">
  111. <MappingFragment StoreEntitySet="Books">
  112. <ScalarProperty Name="id" ColumnName="id" />
  113. <ScalarProperty Name="Heading" ColumnName="Heading" />
  114. <ScalarProperty Name="Style" ColumnName="Style" />
  115. <ScalarProperty Name="Writer" ColumnName="Writer" />
  116. <ScalarProperty Name="Price" ColumnName="Price" />
  117. <ScalarProperty Name="StoreCount" ColumnName="StoreCount" />
  118. <ScalarProperty Name="StockCount" ColumnName="StockCount" />
  119. <ScalarProperty Name="Specification" ColumnName="Specification" />
  120. <ScalarProperty Name="Image" ColumnName="Image" />
  121. </MappingFragment>
  122. </EntityTypeMapping>
  123. </EntitySetMapping>
  124. <EntitySetMapping Name="Ordering">
  125. <EntityTypeMapping TypeName="PEzhov_examModel.Ordering">
  126. <MappingFragment StoreEntitySet="Ordering">
  127. <ScalarProperty Name="Id" ColumnName="Id" />
  128. <ScalarProperty Name="SerialNumber" ColumnName="SerialNumber" />
  129. <ScalarProperty Name="IdBooks" ColumnName="IdBooks" />
  130. <ScalarProperty Name="Count" ColumnName="Count" />
  131. <ScalarProperty Name="DateOrdering" ColumnName="DateOrdering" />
  132. </MappingFragment>
  133. </EntityTypeMapping>
  134. </EntitySetMapping>
  135. </EntityContainerMapping>
  136. </Mapping>
  137. </edmx:Mappings>
  138. </edmx:Runtime>
  139. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  140. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  141. <Connection>
  142. <DesignerInfoPropertySet>
  143. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  144. </DesignerInfoPropertySet>
  145. </Connection>
  146. <Options>
  147. <DesignerInfoPropertySet>
  148. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  149. <DesignerProperty Name="EnablePluralization" Value="false" />
  150. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  151. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  152. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  153. </DesignerInfoPropertySet>
  154. </Options>
  155. <!-- Diagram content (shape and connector positions) -->
  156. <Diagrams></Diagrams>
  157. </Designer>
  158. </edmx:Edmx>