Model1.edmx 10 KB

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