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="Хранилище PBOLDIN_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="BookShop">
  9. <Key>
  10. <PropertyRef Name="id" />
  11. </Key>
  12. <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="Name" Type="nvarchar(max)" Nullable="false" />
  14. <Property Name="Genre" Type="nvarchar(max)" Nullable="false" />
  15. <Property Name="Author" Type="nvarchar(max)" Nullable="false" />
  16. <Property Name="Cost" Type="decimal" Precision="18" Scale="2" Nullable="false" />
  17. <Property Name="CountStore" Type="int" Nullable="false" />
  18. <Property Name="CountStock" Type="int" Nullable="false" />
  19. <Property Name="Description" Type="nvarchar(max)" Nullable="false" />
  20. <Property Name="Cover" Type="nvarchar(max)" Nullable="false" />
  21. </EntityType>
  22. <EntityType Name="Orders">
  23. <Key>
  24. <PropertyRef Name="Id" />
  25. </Key>
  26. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  27. <Property Name="NOrder" Type="int" Nullable="false" />
  28. <Property Name="IdBook" Type="int" Nullable="false" />
  29. <Property Name="Count" Type="int" Nullable="false" />
  30. <Property Name="DateOrder" Type="date" Nullable="false" />
  31. </EntityType>
  32. <Association Name="FK_Order_Book">
  33. <End Role="BookShop" Type="Self.BookShop" Multiplicity="1" />
  34. <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
  35. <ReferentialConstraint>
  36. <Principal Role="BookShop">
  37. <PropertyRef Name="id" />
  38. </Principal>
  39. <Dependent Role="Orders">
  40. <PropertyRef Name="IdBook" />
  41. </Dependent>
  42. </ReferentialConstraint>
  43. </Association>
  44. <EntityContainer Name="Хранилище PBOLDIN_EXAMModelContainer">
  45. <EntitySet Name="BookShop" EntityType="Self.BookShop" Schema="dbo" store:Type="Tables" />
  46. <EntitySet Name="Orders" EntityType="Self.Orders" Schema="dbo" store:Type="Tables" />
  47. <AssociationSet Name="FK_Order_Book" Association="Self.FK_Order_Book">
  48. <End Role="BookShop" EntitySet="BookShop" />
  49. <End Role="Orders" EntitySet="Orders" />
  50. </AssociationSet>
  51. </EntityContainer>
  52. </Schema>
  53. </edmx:StorageModels>
  54. <!-- CSDL content -->
  55. <edmx:ConceptualModels>
  56. <Schema Namespace="PBOLDIN_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="BookShop">
  58. <Key>
  59. <PropertyRef Name="id" />
  60. </Key>
  61. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  62. <Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  63. <Property Name="Genre" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  64. <Property Name="Author" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  65. <Property Name="Cost" Type="Decimal" Precision="18" Scale="2" Nullable="false" />
  66. <Property Name="CountStore" Type="Int32" Nullable="false" />
  67. <Property Name="CountStock" Type="Int32" Nullable="false" />
  68. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  69. <Property Name="Cover" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  70. <NavigationProperty Name="Orders" Relationship="Self.FK_Order_Book" FromRole="BookShop" ToRole="Orders" />
  71. </EntityType>
  72. <EntityType Name="Orders">
  73. <Key>
  74. <PropertyRef Name="Id" />
  75. </Key>
  76. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  77. <Property Name="NOrder" Type="Int32" Nullable="false" />
  78. <Property Name="IdBook" Type="Int32" Nullable="false" />
  79. <Property Name="Count" Type="Int32" Nullable="false" />
  80. <Property Name="DateOrder" Type="DateTime" Nullable="false" Precision="0" />
  81. <NavigationProperty Name="BookShop" Relationship="Self.FK_Order_Book" FromRole="Orders" ToRole="BookShop" />
  82. </EntityType>
  83. <Association Name="FK_Order_Book">
  84. <End Role="BookShop" Type="Self.BookShop" Multiplicity="1" />
  85. <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
  86. <ReferentialConstraint>
  87. <Principal Role="BookShop">
  88. <PropertyRef Name="id" />
  89. </Principal>
  90. <Dependent Role="Orders">
  91. <PropertyRef Name="IdBook" />
  92. </Dependent>
  93. </ReferentialConstraint>
  94. </Association>
  95. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  96. <EntitySet Name="BookShop" EntityType="Self.BookShop" />
  97. <EntitySet Name="Orders" EntityType="Self.Orders" />
  98. <AssociationSet Name="FK_Order_Book" Association="Self.FK_Order_Book">
  99. <End Role="BookShop" EntitySet="BookShop" />
  100. <End Role="Orders" EntitySet="Orders" />
  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="Хранилище PBOLDIN_EXAMModelContainer" CdmEntityContainer="Entities">
  109. <EntitySetMapping Name="BookShop">
  110. <EntityTypeMapping TypeName="PBOLDIN_EXAMModel.BookShop">
  111. <MappingFragment StoreEntitySet="BookShop">
  112. <ScalarProperty Name="id" ColumnName="id" />
  113. <ScalarProperty Name="Name" ColumnName="Name" />
  114. <ScalarProperty Name="Genre" ColumnName="Genre" />
  115. <ScalarProperty Name="Author" ColumnName="Author" />
  116. <ScalarProperty Name="Cost" ColumnName="Cost" />
  117. <ScalarProperty Name="CountStore" ColumnName="CountStore" />
  118. <ScalarProperty Name="CountStock" ColumnName="CountStock" />
  119. <ScalarProperty Name="Description" ColumnName="Description" />
  120. <ScalarProperty Name="Cover" ColumnName="Cover" />
  121. </MappingFragment>
  122. </EntityTypeMapping>
  123. </EntitySetMapping>
  124. <EntitySetMapping Name="Orders">
  125. <EntityTypeMapping TypeName="PBOLDIN_EXAMModel.Orders">
  126. <MappingFragment StoreEntitySet="Orders">
  127. <ScalarProperty Name="Id" ColumnName="Id" />
  128. <ScalarProperty Name="NOrder" ColumnName="NOrder" />
  129. <ScalarProperty Name="IdBook" ColumnName="IdBook" />
  130. <ScalarProperty Name="Count" ColumnName="Count" />
  131. <ScalarProperty Name="DateOrder" ColumnName="DateOrder" />
  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>