Model1.edmx 16 KB

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