Model1.edmx 13 KB

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