Model1.edmx 10 KB

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