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="Хранилище P_Vorobiov_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="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
  14. <Property Name="Genre" Type="nvarchar" MaxLength="50" Nullable="false" />
  15. <Property Name="Author" Type="nvarchar" MaxLength="50" Nullable="false" />
  16. <Property Name="Cost" Type="decimal" Precision="18" Scale="2" Nullable="false" />
  17. <Property Name="CountInStore" Type="int" Nullable="false" />
  18. <Property Name="CountInStock" Type="int" Nullable="false" />
  19. <Property Name="Description" Type="nvarchar" MaxLength="2500" Nullable="false" />
  20. <Property Name="Cover" Type="nvarchar" MaxLength="500" Nullable="false" />
  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="NumberOrder" Type="int" Nullable="false" />
  28. <Property Name="BookID" 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_Books">
  33. <End Role="Books" Type="Self.Books" Multiplicity="1" />
  34. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  35. <ReferentialConstraint>
  36. <Principal Role="Books">
  37. <PropertyRef Name="ID" />
  38. </Principal>
  39. <Dependent Role="Order">
  40. <PropertyRef Name="BookID" />
  41. </Dependent>
  42. </ReferentialConstraint>
  43. </Association>
  44. <EntityContainer Name="Хранилище P_Vorobiov_ExamModelContainer">
  45. <EntitySet Name="Books" EntityType="Self.Books" Schema="dbo" store:Type="Tables" />
  46. <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
  47. <AssociationSet Name="FK_Order_Books" Association="Self.FK_Order_Books">
  48. <End Role="Books" EntitySet="Books" />
  49. <End Role="Order" EntitySet="Order" />
  50. </AssociationSet>
  51. </EntityContainer>
  52. </Schema>
  53. </edmx:StorageModels>
  54. <!-- CSDL content -->
  55. <edmx:ConceptualModels>
  56. <Schema Namespace="P_Vorobiov_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="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  63. <Property Name="Genre" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  64. <Property Name="Author" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  65. <Property Name="Cost" Type="Decimal" Precision="18" Scale="2" Nullable="false" />
  66. <Property Name="CountInStore" Type="Int32" Nullable="false" />
  67. <Property Name="CountInStock" Type="Int32" Nullable="false" />
  68. <Property Name="Description" Type="String" MaxLength="2500" FixedLength="false" Unicode="true" Nullable="false" />
  69. <Property Name="Cover" Type="String" MaxLength="500" FixedLength="false" Unicode="true" Nullable="false" />
  70. <NavigationProperty Name="Order" Relationship="Self.FK_Order_Books" FromRole="Books" ToRole="Order" />
  71. </EntityType>
  72. <EntityType Name="Order">
  73. <Key>
  74. <PropertyRef Name="ID" />
  75. </Key>
  76. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  77. <Property Name="NumberOrder" Type="Int32" Nullable="false" />
  78. <Property Name="BookID" 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="Books" Relationship="Self.FK_Order_Books" FromRole="Order" ToRole="Books" />
  82. </EntityType>
  83. <Association Name="FK_Order_Books">
  84. <End Role="Books" Type="Self.Books" Multiplicity="1" />
  85. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  86. <ReferentialConstraint>
  87. <Principal Role="Books">
  88. <PropertyRef Name="ID" />
  89. </Principal>
  90. <Dependent Role="Order">
  91. <PropertyRef Name="BookID" />
  92. </Dependent>
  93. </ReferentialConstraint>
  94. </Association>
  95. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  96. <EntitySet Name="Books" EntityType="Self.Books" />
  97. <EntitySet Name="Order" EntityType="Self.Order" />
  98. <AssociationSet Name="FK_Order_Books" Association="Self.FK_Order_Books">
  99. <End Role="Books" EntitySet="Books" />
  100. <End Role="Order" EntitySet="Order" />
  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="Хранилище P_Vorobiov_ExamModelContainer" CdmEntityContainer="Entities">
  109. <EntitySetMapping Name="Books">
  110. <EntityTypeMapping TypeName="P_Vorobiov_ExamModel.Books">
  111. <MappingFragment StoreEntitySet="Books">
  112. <ScalarProperty Name="ID" ColumnName="ID" />
  113. <ScalarProperty Name="Title" ColumnName="Title" />
  114. <ScalarProperty Name="Genre" ColumnName="Genre" />
  115. <ScalarProperty Name="Author" ColumnName="Author" />
  116. <ScalarProperty Name="Cost" ColumnName="Cost" />
  117. <ScalarProperty Name="CountInStore" ColumnName="CountInStore" />
  118. <ScalarProperty Name="CountInStock" ColumnName="CountInStock" />
  119. <ScalarProperty Name="Description" ColumnName="Description" />
  120. <ScalarProperty Name="Cover" ColumnName="Cover" />
  121. </MappingFragment>
  122. </EntityTypeMapping>
  123. </EntitySetMapping>
  124. <EntitySetMapping Name="Order">
  125. <EntityTypeMapping TypeName="P_Vorobiov_ExamModel.Order">
  126. <MappingFragment StoreEntitySet="Order">
  127. <ScalarProperty Name="ID" ColumnName="ID" />
  128. <ScalarProperty Name="NumberOrder" ColumnName="NumberOrder" />
  129. <ScalarProperty Name="BookID" ColumnName="BookID" />
  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>