Model1.edmx 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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="Хранилище dbBookStoreModel" 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="Name" Type="nvarchar(max)" Nullable="false" />
  14. <Property Name="Price" Type="money" Nullable="false" />
  15. <Property Name="Category" Type="nvarchar(max)" Nullable="false" />
  16. <Property Name="Author" Type="nvarchar(max)" />
  17. </EntityType>
  18. <EntityContainer Name="Хранилище dbBookStoreModelContainer">
  19. <EntitySet Name="Books" EntityType="Self.Books" Schema="dbo" store:Type="Tables" />
  20. </EntityContainer>
  21. </Schema>
  22. </edmx:StorageModels>
  23. <!-- CSDL content -->
  24. <edmx:ConceptualModels>
  25. <Schema Namespace="dbBookStoreModel" 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">
  26. <EntityType Name="Book">
  27. <Key>
  28. <PropertyRef Name="Id" />
  29. </Key>
  30. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  31. <Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  32. <Property Name="Price" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  33. <Property Name="Category" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  34. <Property Name="Author" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  35. </EntityType>
  36. <EntityContainer Name="dbBookStoreEntities" annotation:LazyLoadingEnabled="true">
  37. <EntitySet Name="Books" EntityType="Self.Book" />
  38. </EntityContainer>
  39. </Schema>
  40. </edmx:ConceptualModels>
  41. <!-- C-S mapping content -->
  42. <edmx:Mappings>
  43. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  44. <EntityContainerMapping StorageEntityContainer="Хранилище dbBookStoreModelContainer" CdmEntityContainer="dbBookStoreEntities">
  45. <EntitySetMapping Name="Books">
  46. <EntityTypeMapping TypeName="dbBookStoreModel.Book">
  47. <MappingFragment StoreEntitySet="Books">
  48. <ScalarProperty Name="Id" ColumnName="Id" />
  49. <ScalarProperty Name="Name" ColumnName="Name" />
  50. <ScalarProperty Name="Price" ColumnName="Price" />
  51. <ScalarProperty Name="Category" ColumnName="Category" />
  52. <ScalarProperty Name="Author" ColumnName="Author" />
  53. </MappingFragment>
  54. </EntityTypeMapping>
  55. </EntitySetMapping>
  56. </EntityContainerMapping>
  57. </Mapping>
  58. </edmx:Mappings>
  59. </edmx:Runtime>
  60. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  61. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  62. <Connection>
  63. <DesignerInfoPropertySet>
  64. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  65. </DesignerInfoPropertySet>
  66. </Connection>
  67. <Options>
  68. <DesignerInfoPropertySet>
  69. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  70. <DesignerProperty Name="EnablePluralization" Value="true" />
  71. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  72. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  73. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  74. </DesignerInfoPropertySet>
  75. </Options>
  76. <!-- Diagram content (shape and connector positions) -->
  77. <Diagrams></Diagrams>
  78. </Designer>
  79. </edmx:Edmx>