Model1.edmx 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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="Хранилище TestBaseQWERTModel" 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="TableRoles">
  9. <Key>
  10. <PropertyRef Name="RoleId" />
  11. </Key>
  12. <Property Name="RoleId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="RoleName" Type="nvarchar" MaxLength="50" Nullable="false" />
  14. </EntityType>
  15. <EntityType Name="TableUsers">
  16. <Key>
  17. <PropertyRef Name="UserId" />
  18. </Key>
  19. <Property Name="UserId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  20. <Property Name="UserSurname" Type="nvarchar" MaxLength="50" Nullable="false" />
  21. <Property Name="UserName" Type="nvarchar" MaxLength="50" Nullable="false" />
  22. <Property Name="UserPatronymic" Type="nvarchar" MaxLength="50" Nullable="false" />
  23. <Property Name="UserBirthday" Type="date" Nullable="false" />
  24. <Property Name="UserRole" Type="int" Nullable="false" />
  25. <Property Name="UserPhone" Type="nvarchar" MaxLength="50" Nullable="false" />
  26. <Property Name="UserLogin" Type="nvarchar" MaxLength="50" Nullable="false" />
  27. <Property Name="UserPassword" Type="int" Nullable="false" />
  28. <Property Name="UserPhoto" Type="nvarchar(max)" />
  29. </EntityType>
  30. <Association Name="FK_TableUsers_TableRoles">
  31. <End Role="TableRoles" Type="Self.TableRoles" Multiplicity="1" />
  32. <End Role="TableUsers" Type="Self.TableUsers" Multiplicity="*" />
  33. <ReferentialConstraint>
  34. <Principal Role="TableRoles">
  35. <PropertyRef Name="RoleId" />
  36. </Principal>
  37. <Dependent Role="TableUsers">
  38. <PropertyRef Name="UserRole" />
  39. </Dependent>
  40. </ReferentialConstraint>
  41. </Association>
  42. <EntityContainer Name="Хранилище TestBaseQWERTModelContainer">
  43. <EntitySet Name="TableRoles" EntityType="Self.TableRoles" Schema="dbo" store:Type="Tables" />
  44. <EntitySet Name="TableUsers" EntityType="Self.TableUsers" Schema="dbo" store:Type="Tables" />
  45. <AssociationSet Name="FK_TableUsers_TableRoles" Association="Self.FK_TableUsers_TableRoles">
  46. <End Role="TableRoles" EntitySet="TableRoles" />
  47. <End Role="TableUsers" EntitySet="TableUsers" />
  48. </AssociationSet>
  49. </EntityContainer>
  50. </Schema></edmx:StorageModels>
  51. <!-- CSDL content -->
  52. <edmx:ConceptualModels>
  53. <Schema Namespace="TestBaseQWERTModel" 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">
  54. <EntityContainer Name="TestBaseQWERTEntities" annotation:LazyLoadingEnabled="true">
  55. <EntitySet Name="TableRoles" EntityType="TestBaseQWERTModel.TableRoles" />
  56. <EntitySet Name="TableUsers" EntityType="TestBaseQWERTModel.TableUsers" />
  57. <AssociationSet Name="FK_TableUsers_TableRoles" Association="TestBaseQWERTModel.FK_TableUsers_TableRoles">
  58. <End Role="TableRoles" EntitySet="TableRoles" />
  59. <End Role="TableUsers" EntitySet="TableUsers" />
  60. </AssociationSet>
  61. </EntityContainer>
  62. <EntityType Name="TableRoles">
  63. <Key>
  64. <PropertyRef Name="RoleId" />
  65. </Key>
  66. <Property Name="RoleId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  67. <Property Name="RoleName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  68. <NavigationProperty Name="TableUsers" Relationship="TestBaseQWERTModel.FK_TableUsers_TableRoles" FromRole="TableRoles" ToRole="TableUsers" />
  69. </EntityType>
  70. <EntityType Name="TableUsers">
  71. <Key>
  72. <PropertyRef Name="UserId" />
  73. </Key>
  74. <Property Name="UserId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  75. <Property Name="UserSurname" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  76. <Property Name="UserName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  77. <Property Name="UserPatronymic" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  78. <Property Name="UserBirthday" Type="DateTime" Nullable="false" Precision="0" />
  79. <Property Name="UserRole" Type="Int32" Nullable="false" />
  80. <Property Name="UserPhone" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  81. <Property Name="UserLogin" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  82. <Property Name="UserPassword" Type="Int32" Nullable="false" />
  83. <Property Name="UserPhoto" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  84. <NavigationProperty Name="TableRoles" Relationship="TestBaseQWERTModel.FK_TableUsers_TableRoles" FromRole="TableUsers" ToRole="TableRoles" />
  85. </EntityType>
  86. <Association Name="FK_TableUsers_TableRoles">
  87. <End Type="TestBaseQWERTModel.TableRoles" Role="TableRoles" Multiplicity="1" />
  88. <End Type="TestBaseQWERTModel.TableUsers" Role="TableUsers" Multiplicity="*" />
  89. <ReferentialConstraint>
  90. <Principal Role="TableRoles">
  91. <PropertyRef Name="RoleId" />
  92. </Principal>
  93. <Dependent Role="TableUsers">
  94. <PropertyRef Name="UserRole" />
  95. </Dependent>
  96. </ReferentialConstraint>
  97. </Association>
  98. </Schema>
  99. </edmx:ConceptualModels>
  100. <!-- C-S mapping content -->
  101. <edmx:Mappings>
  102. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  103. <EntityContainerMapping StorageEntityContainer="Хранилище TestBaseQWERTModelContainer" CdmEntityContainer="TestBaseQWERTEntities">
  104. <EntitySetMapping Name="TableRoles">
  105. <EntityTypeMapping TypeName="TestBaseQWERTModel.TableRoles">
  106. <MappingFragment StoreEntitySet="TableRoles">
  107. <ScalarProperty Name="RoleName" ColumnName="RoleName" />
  108. <ScalarProperty Name="RoleId" ColumnName="RoleId" />
  109. </MappingFragment>
  110. </EntityTypeMapping>
  111. </EntitySetMapping>
  112. <EntitySetMapping Name="TableUsers">
  113. <EntityTypeMapping TypeName="TestBaseQWERTModel.TableUsers">
  114. <MappingFragment StoreEntitySet="TableUsers">
  115. <ScalarProperty Name="UserPhoto" ColumnName="UserPhoto" />
  116. <ScalarProperty Name="UserPassword" ColumnName="UserPassword" />
  117. <ScalarProperty Name="UserLogin" ColumnName="UserLogin" />
  118. <ScalarProperty Name="UserPhone" ColumnName="UserPhone" />
  119. <ScalarProperty Name="UserRole" ColumnName="UserRole" />
  120. <ScalarProperty Name="UserBirthday" ColumnName="UserBirthday" />
  121. <ScalarProperty Name="UserPatronymic" ColumnName="UserPatronymic" />
  122. <ScalarProperty Name="UserName" ColumnName="UserName" />
  123. <ScalarProperty Name="UserSurname" ColumnName="UserSurname" />
  124. <ScalarProperty Name="UserId" ColumnName="UserId" />
  125. </MappingFragment>
  126. </EntityTypeMapping>
  127. </EntitySetMapping>
  128. </EntityContainerMapping>
  129. </Mapping>
  130. </edmx:Mappings>
  131. </edmx:Runtime>
  132. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  133. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  134. <Connection>
  135. <DesignerInfoPropertySet>
  136. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  137. </DesignerInfoPropertySet>
  138. </Connection>
  139. <Options>
  140. <DesignerInfoPropertySet>
  141. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  142. <DesignerProperty Name="EnablePluralization" Value="false" />
  143. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  144. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  145. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  146. </DesignerInfoPropertySet>
  147. </Options>
  148. <!-- Diagram content (shape and connector positions) -->
  149. <Diagrams></Diagrams>
  150. </Designer>
  151. </edmx:Edmx>