Model1.edmx 11 KB

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