Model1.edmx 9.7 KB

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