Model1.edmx 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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="Хранилище user1Model" 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. <!--Ошибки, обнаруженные при создании:
  9. предупреждение 6002: В таблице или представлении "user1.dbo.Service" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
  10. <EntityType Name="Service">
  11. <Key>
  12. <PropertyRef Name="Code" />
  13. <PropertyRef Name="Service" />
  14. <PropertyRef Name="Price" />
  15. </Key>
  16. <Property Name="Code" Type="int" Nullable="false" />
  17. <Property Name="Service" Type="varchar" MaxLength="100" Nullable="false" />
  18. <Property Name="Price" Type="float" Nullable="false" />
  19. </EntityType>
  20. <EntityContainer Name="Хранилище user1ModelContainer">
  21. <EntitySet Name="Service" EntityType="Self.Service" store:Type="Tables" store:Schema="dbo">
  22. <DefiningQuery>SELECT
  23. [Service].[Code] AS [Code],
  24. [Service].[Service] AS [Service],
  25. [Service].[Price] AS [Price]
  26. FROM [dbo].[Service] AS [Service]</DefiningQuery>
  27. </EntitySet>
  28. </EntityContainer>
  29. </Schema>
  30. </edmx:StorageModels>
  31. <!-- CSDL content -->
  32. <edmx:ConceptualModels>
  33. <Schema Namespace="user1Model" 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">
  34. <EntityType Name="Service">
  35. <Key>
  36. <PropertyRef Name="Code" />
  37. <PropertyRef Name="Service1" />
  38. <PropertyRef Name="Price" />
  39. </Key>
  40. <Property Name="Code" Type="Int32" Nullable="false" />
  41. <Property Name="Service1" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
  42. <Property Name="Price" Type="Double" Nullable="false" />
  43. </EntityType>
  44. <EntityContainer Name="user1Entities" annotation:LazyLoadingEnabled="true">
  45. <EntitySet Name="Service" EntityType="Self.Service" />
  46. </EntityContainer>
  47. </Schema>
  48. </edmx:ConceptualModels>
  49. <!-- C-S mapping content -->
  50. <edmx:Mappings>
  51. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  52. <EntityContainerMapping StorageEntityContainer="Хранилище user1ModelContainer" CdmEntityContainer="user1Entities">
  53. <EntitySetMapping Name="Service">
  54. <EntityTypeMapping TypeName="user1Model.Service">
  55. <MappingFragment StoreEntitySet="Service">
  56. <ScalarProperty Name="Code" ColumnName="Code" />
  57. <ScalarProperty Name="Service1" ColumnName="Service" />
  58. <ScalarProperty Name="Price" ColumnName="Price" />
  59. </MappingFragment>
  60. </EntityTypeMapping>
  61. </EntitySetMapping>
  62. </EntityContainerMapping>
  63. </Mapping>
  64. </edmx:Mappings>
  65. </edmx:Runtime>
  66. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  67. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  68. <Connection>
  69. <DesignerInfoPropertySet>
  70. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  71. </DesignerInfoPropertySet>
  72. </Connection>
  73. <Options>
  74. <DesignerInfoPropertySet>
  75. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  76. <DesignerProperty Name="EnablePluralization" Value="false" />
  77. <DesignerProperty Name="IncludeForeignKeysInModel" Value="false" />
  78. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  79. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  80. </DesignerInfoPropertySet>
  81. </Options>
  82. <!-- Diagram content (shape and connector positions) -->
  83. <Diagrams></Diagrams>
  84. </Designer>
  85. </edmx:Edmx>