MyDatabase.edmx 9.3 KB

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