Model1.edmx 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  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="Хранилище user6Model" 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="Executor">
  9. <Key>
  10. <PropertyRef Name="ID" />
  11. </Key>
  12. <Property Name="ID" Type="int" Nullable="false" />
  13. <Property Name="ManagerID" Type="int" Nullable="false" />
  14. <Property Name="Grade" Type="varchar" MaxLength="20" Nullable="false" />
  15. </EntityType>
  16. <EntityType Name="Manager">
  17. <Key>
  18. <PropertyRef Name="ID" />
  19. </Key>
  20. <Property Name="ID" Type="int" Nullable="false" />
  21. <Property Name="JuniorMinimum" Type="int" Nullable="false" />
  22. <Property Name="MiddleMinimum" Type="int" Nullable="false" />
  23. <Property Name="SeniorMinimum" Type="int" Nullable="false" />
  24. <Property Name="AnalysisCoefficient" Type="float" Nullable="false" />
  25. <Property Name="InstallationCoefficient" Type="float" Nullable="false" />
  26. <Property Name="SupportCoefficient" Type="float" Nullable="false" />
  27. <Property Name="TimeCoefficient" Type="float" Nullable="false" />
  28. <Property Name="DifficultyCoefficient" Type="float" Nullable="false" />
  29. <Property Name="ToMoneyCoefficient" Type="float" Nullable="false" />
  30. </EntityType>
  31. <EntityType Name="Task">
  32. <Key>
  33. <PropertyRef Name="ID" />
  34. </Key>
  35. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  36. <Property Name="ExecutorID" Type="int" Nullable="false" />
  37. <Property Name="Title" Type="varchar" MaxLength="255" Nullable="false" />
  38. <Property Name="Description" Type="text" />
  39. <Property Name="CreateDateTime" Type="datetime" Nullable="false" />
  40. <Property Name="Deadline" Type="date" Nullable="false" />
  41. <Property Name="Difficulty" Type="float" Nullable="false" />
  42. <Property Name="Time" Type="int" Nullable="false" />
  43. <Property Name="Status" Type="varchar" MaxLength="20" Nullable="false" />
  44. <Property Name="WorkType" Type="varchar" MaxLength="45" Nullable="false" />
  45. <Property Name="CompletedDateTime" Type="datetime" />
  46. <Property Name="IsDeleted" Type="bit" Nullable="false" />
  47. </EntityType>
  48. <EntityType Name="User">
  49. <Key>
  50. <PropertyRef Name="ID" />
  51. </Key>
  52. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  53. <Property Name="Password" Type="varchar(max)" Nullable="false" />
  54. <Property Name="FirstName" Type="varchar" MaxLength="255" Nullable="false" />
  55. <Property Name="MiddleName" Type="varchar" MaxLength="255" Nullable="false" />
  56. <Property Name="LastName" Type="varchar" MaxLength="255" Nullable="false" />
  57. <Property Name="Login" Type="varchar" MaxLength="255" Nullable="false" />
  58. <Property Name="IsDeleted" Type="bit" Nullable="false" />
  59. </EntityType>
  60. <Association Name="executors_fk0">
  61. <End Role="Manager" Type="Self.Manager" Multiplicity="1" />
  62. <End Role="Executor" Type="Self.Executor" Multiplicity="*" />
  63. <ReferentialConstraint>
  64. <Principal Role="Manager">
  65. <PropertyRef Name="ID" />
  66. </Principal>
  67. <Dependent Role="Executor">
  68. <PropertyRef Name="ManagerID" />
  69. </Dependent>
  70. </ReferentialConstraint>
  71. </Association>
  72. <Association Name="FK_Executor_User">
  73. <End Role="User" Type="Self.User" Multiplicity="1" />
  74. <End Role="Executor" Type="Self.Executor" Multiplicity="0..1" />
  75. <ReferentialConstraint>
  76. <Principal Role="User">
  77. <PropertyRef Name="ID" />
  78. </Principal>
  79. <Dependent Role="Executor">
  80. <PropertyRef Name="ID" />
  81. </Dependent>
  82. </ReferentialConstraint>
  83. </Association>
  84. <Association Name="FK_Manager_User">
  85. <End Role="User" Type="Self.User" Multiplicity="1" />
  86. <End Role="Manager" Type="Self.Manager" Multiplicity="0..1" />
  87. <ReferentialConstraint>
  88. <Principal Role="User">
  89. <PropertyRef Name="ID" />
  90. </Principal>
  91. <Dependent Role="Manager">
  92. <PropertyRef Name="ID" />
  93. </Dependent>
  94. </ReferentialConstraint>
  95. </Association>
  96. <Association Name="tasks_fk0">
  97. <End Role="Executor" Type="Self.Executor" Multiplicity="1" />
  98. <End Role="Task" Type="Self.Task" Multiplicity="*" />
  99. <ReferentialConstraint>
  100. <Principal Role="Executor">
  101. <PropertyRef Name="ID" />
  102. </Principal>
  103. <Dependent Role="Task">
  104. <PropertyRef Name="ExecutorID" />
  105. </Dependent>
  106. </ReferentialConstraint>
  107. </Association>
  108. <EntityContainer Name="Хранилище user6ModelContainer">
  109. <EntitySet Name="Executor" EntityType="Self.Executor" Schema="dbo" store:Type="Tables" />
  110. <EntitySet Name="Manager" EntityType="Self.Manager" Schema="dbo" store:Type="Tables" />
  111. <EntitySet Name="Task" EntityType="Self.Task" Schema="dbo" store:Type="Tables" />
  112. <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
  113. <AssociationSet Name="executors_fk0" Association="Self.executors_fk0">
  114. <End Role="Manager" EntitySet="Manager" />
  115. <End Role="Executor" EntitySet="Executor" />
  116. </AssociationSet>
  117. <AssociationSet Name="FK_Executor_User" Association="Self.FK_Executor_User">
  118. <End Role="User" EntitySet="User" />
  119. <End Role="Executor" EntitySet="Executor" />
  120. </AssociationSet>
  121. <AssociationSet Name="FK_Manager_User" Association="Self.FK_Manager_User">
  122. <End Role="User" EntitySet="User" />
  123. <End Role="Manager" EntitySet="Manager" />
  124. </AssociationSet>
  125. <AssociationSet Name="tasks_fk0" Association="Self.tasks_fk0">
  126. <End Role="Executor" EntitySet="Executor" />
  127. <End Role="Task" EntitySet="Task" />
  128. </AssociationSet>
  129. </EntityContainer>
  130. </Schema>
  131. </edmx:StorageModels>
  132. <!-- CSDL content -->
  133. <edmx:ConceptualModels>
  134. <Schema Namespace="user6Model" 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">
  135. <EntityType Name="Executor">
  136. <Key>
  137. <PropertyRef Name="ID" />
  138. </Key>
  139. <Property Name="ID" Type="Int32" Nullable="false" />
  140. <Property Name="ManagerID" Type="Int32" Nullable="false" />
  141. <Property Name="Grade" Type="String" MaxLength="20" FixedLength="false" Unicode="false" Nullable="false" />
  142. <NavigationProperty Name="Manager" Relationship="Self.executors_fk0" FromRole="Executor" ToRole="Manager" />
  143. <NavigationProperty Name="User" Relationship="Self.FK_Executor_User" FromRole="Executor" ToRole="User" />
  144. <NavigationProperty Name="Tasks" Relationship="Self.tasks_fk0" FromRole="Executor" ToRole="Task" />
  145. </EntityType>
  146. <EntityType Name="Manager">
  147. <Key>
  148. <PropertyRef Name="ID" />
  149. </Key>
  150. <Property Name="ID" Type="Int32" Nullable="false" />
  151. <Property Name="JuniorMinimum" Type="Int32" Nullable="false" />
  152. <Property Name="MiddleMinimum" Type="Int32" Nullable="false" />
  153. <Property Name="SeniorMinimum" Type="Int32" Nullable="false" />
  154. <Property Name="AnalysisCoefficient" Type="Double" Nullable="false" />
  155. <Property Name="InstallationCoefficient" Type="Double" Nullable="false" />
  156. <Property Name="SupportCoefficient" Type="Double" Nullable="false" />
  157. <Property Name="TimeCoefficient" Type="Double" Nullable="false" />
  158. <Property Name="DifficultyCoefficient" Type="Double" Nullable="false" />
  159. <Property Name="ToMoneyCoefficient" Type="Double" Nullable="false" />
  160. <NavigationProperty Name="Executors" Relationship="Self.executors_fk0" FromRole="Manager" ToRole="Executor" />
  161. <NavigationProperty Name="User" Relationship="Self.FK_Manager_User" FromRole="Manager" ToRole="User" />
  162. </EntityType>
  163. <EntityType Name="Task">
  164. <Key>
  165. <PropertyRef Name="ID" />
  166. </Key>
  167. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  168. <Property Name="ExecutorID" Type="Int32" Nullable="false" />
  169. <Property Name="Title" Type="String" MaxLength="255" FixedLength="false" Unicode="false" Nullable="false" />
  170. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  171. <Property Name="CreateDateTime" Type="DateTime" Nullable="false" Precision="3" />
  172. <Property Name="Deadline" Type="DateTime" Nullable="false" Precision="0" />
  173. <Property Name="Difficulty" Type="Double" Nullable="false" />
  174. <Property Name="Time" Type="Int32" Nullable="false" />
  175. <Property Name="Status" Type="String" MaxLength="20" FixedLength="false" Unicode="false" Nullable="false" />
  176. <Property Name="WorkType" Type="String" MaxLength="45" FixedLength="false" Unicode="false" Nullable="false" />
  177. <Property Name="CompletedDateTime" Type="DateTime" Precision="3" />
  178. <Property Name="IsDeleted" Type="Boolean" Nullable="false" />
  179. <NavigationProperty Name="Executor" Relationship="Self.tasks_fk0" FromRole="Task" ToRole="Executor" />
  180. </EntityType>
  181. <EntityType Name="User">
  182. <Key>
  183. <PropertyRef Name="ID" />
  184. </Key>
  185. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  186. <Property Name="Password" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
  187. <Property Name="FirstName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" Nullable="false" />
  188. <Property Name="MiddleName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" Nullable="false" />
  189. <Property Name="LastName" Type="String" MaxLength="255" FixedLength="false" Unicode="false" Nullable="false" />
  190. <Property Name="Login" Type="String" MaxLength="255" FixedLength="false" Unicode="false" Nullable="false" />
  191. <Property Name="IsDeleted" Type="Boolean" Nullable="false" />
  192. <NavigationProperty Name="Executor" Relationship="Self.FK_Executor_User" FromRole="User" ToRole="Executor" />
  193. <NavigationProperty Name="Manager" Relationship="Self.FK_Manager_User" FromRole="User" ToRole="Manager" />
  194. </EntityType>
  195. <Association Name="executors_fk0">
  196. <End Role="Manager" Type="Self.Manager" Multiplicity="1" />
  197. <End Role="Executor" Type="Self.Executor" Multiplicity="*" />
  198. <ReferentialConstraint>
  199. <Principal Role="Manager">
  200. <PropertyRef Name="ID" />
  201. </Principal>
  202. <Dependent Role="Executor">
  203. <PropertyRef Name="ManagerID" />
  204. </Dependent>
  205. </ReferentialConstraint>
  206. </Association>
  207. <Association Name="FK_Executor_User">
  208. <End Role="User" Type="Self.User" Multiplicity="1" />
  209. <End Role="Executor" Type="Self.Executor" Multiplicity="0..1" />
  210. <ReferentialConstraint>
  211. <Principal Role="User">
  212. <PropertyRef Name="ID" />
  213. </Principal>
  214. <Dependent Role="Executor">
  215. <PropertyRef Name="ID" />
  216. </Dependent>
  217. </ReferentialConstraint>
  218. </Association>
  219. <Association Name="tasks_fk0">
  220. <End Role="Executor" Type="Self.Executor" Multiplicity="1" />
  221. <End Role="Task" Type="Self.Task" Multiplicity="*" />
  222. <ReferentialConstraint>
  223. <Principal Role="Executor">
  224. <PropertyRef Name="ID" />
  225. </Principal>
  226. <Dependent Role="Task">
  227. <PropertyRef Name="ExecutorID" />
  228. </Dependent>
  229. </ReferentialConstraint>
  230. </Association>
  231. <Association Name="FK_Manager_User">
  232. <End Role="User" Type="Self.User" Multiplicity="1" />
  233. <End Role="Manager" Type="Self.Manager" Multiplicity="0..1" />
  234. <ReferentialConstraint>
  235. <Principal Role="User">
  236. <PropertyRef Name="ID" />
  237. </Principal>
  238. <Dependent Role="Manager">
  239. <PropertyRef Name="ID" />
  240. </Dependent>
  241. </ReferentialConstraint>
  242. </Association>
  243. <EntityContainer Name="user6Entities" annotation:LazyLoadingEnabled="true">
  244. <EntitySet Name="Executors" EntityType="Self.Executor" />
  245. <EntitySet Name="Managers" EntityType="Self.Manager" />
  246. <EntitySet Name="Tasks" EntityType="Self.Task" />
  247. <EntitySet Name="Users" EntityType="Self.User" />
  248. <AssociationSet Name="executors_fk0" Association="Self.executors_fk0">
  249. <End Role="Manager" EntitySet="Managers" />
  250. <End Role="Executor" EntitySet="Executors" />
  251. </AssociationSet>
  252. <AssociationSet Name="FK_Executor_User" Association="Self.FK_Executor_User">
  253. <End Role="User" EntitySet="Users" />
  254. <End Role="Executor" EntitySet="Executors" />
  255. </AssociationSet>
  256. <AssociationSet Name="tasks_fk0" Association="Self.tasks_fk0">
  257. <End Role="Executor" EntitySet="Executors" />
  258. <End Role="Task" EntitySet="Tasks" />
  259. </AssociationSet>
  260. <AssociationSet Name="FK_Manager_User" Association="Self.FK_Manager_User">
  261. <End Role="User" EntitySet="Users" />
  262. <End Role="Manager" EntitySet="Managers" />
  263. </AssociationSet>
  264. </EntityContainer>
  265. </Schema>
  266. </edmx:ConceptualModels>
  267. <!-- C-S mapping content -->
  268. <edmx:Mappings>
  269. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  270. <EntityContainerMapping StorageEntityContainer="Хранилище user6ModelContainer" CdmEntityContainer="user6Entities">
  271. <EntitySetMapping Name="Executors">
  272. <EntityTypeMapping TypeName="user6Model.Executor">
  273. <MappingFragment StoreEntitySet="Executor">
  274. <ScalarProperty Name="ID" ColumnName="ID" />
  275. <ScalarProperty Name="ManagerID" ColumnName="ManagerID" />
  276. <ScalarProperty Name="Grade" ColumnName="Grade" />
  277. </MappingFragment>
  278. </EntityTypeMapping>
  279. </EntitySetMapping>
  280. <EntitySetMapping Name="Managers">
  281. <EntityTypeMapping TypeName="user6Model.Manager">
  282. <MappingFragment StoreEntitySet="Manager">
  283. <ScalarProperty Name="ID" ColumnName="ID" />
  284. <ScalarProperty Name="JuniorMinimum" ColumnName="JuniorMinimum" />
  285. <ScalarProperty Name="MiddleMinimum" ColumnName="MiddleMinimum" />
  286. <ScalarProperty Name="SeniorMinimum" ColumnName="SeniorMinimum" />
  287. <ScalarProperty Name="AnalysisCoefficient" ColumnName="AnalysisCoefficient" />
  288. <ScalarProperty Name="InstallationCoefficient" ColumnName="InstallationCoefficient" />
  289. <ScalarProperty Name="SupportCoefficient" ColumnName="SupportCoefficient" />
  290. <ScalarProperty Name="TimeCoefficient" ColumnName="TimeCoefficient" />
  291. <ScalarProperty Name="DifficultyCoefficient" ColumnName="DifficultyCoefficient" />
  292. <ScalarProperty Name="ToMoneyCoefficient" ColumnName="ToMoneyCoefficient" />
  293. </MappingFragment>
  294. </EntityTypeMapping>
  295. </EntitySetMapping>
  296. <EntitySetMapping Name="Tasks">
  297. <EntityTypeMapping TypeName="user6Model.Task">
  298. <MappingFragment StoreEntitySet="Task">
  299. <ScalarProperty Name="ID" ColumnName="ID" />
  300. <ScalarProperty Name="ExecutorID" ColumnName="ExecutorID" />
  301. <ScalarProperty Name="Title" ColumnName="Title" />
  302. <ScalarProperty Name="Description" ColumnName="Description" />
  303. <ScalarProperty Name="CreateDateTime" ColumnName="CreateDateTime" />
  304. <ScalarProperty Name="Deadline" ColumnName="Deadline" />
  305. <ScalarProperty Name="Difficulty" ColumnName="Difficulty" />
  306. <ScalarProperty Name="Time" ColumnName="Time" />
  307. <ScalarProperty Name="Status" ColumnName="Status" />
  308. <ScalarProperty Name="WorkType" ColumnName="WorkType" />
  309. <ScalarProperty Name="CompletedDateTime" ColumnName="CompletedDateTime" />
  310. <ScalarProperty Name="IsDeleted" ColumnName="IsDeleted" />
  311. </MappingFragment>
  312. </EntityTypeMapping>
  313. </EntitySetMapping>
  314. <EntitySetMapping Name="Users">
  315. <EntityTypeMapping TypeName="user6Model.User">
  316. <MappingFragment StoreEntitySet="User">
  317. <ScalarProperty Name="ID" ColumnName="ID" />
  318. <ScalarProperty Name="Password" ColumnName="Password" />
  319. <ScalarProperty Name="FirstName" ColumnName="FirstName" />
  320. <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
  321. <ScalarProperty Name="LastName" ColumnName="LastName" />
  322. <ScalarProperty Name="Login" ColumnName="Login" />
  323. <ScalarProperty Name="IsDeleted" ColumnName="IsDeleted" />
  324. </MappingFragment>
  325. </EntityTypeMapping>
  326. </EntitySetMapping>
  327. </EntityContainerMapping>
  328. </Mapping>
  329. </edmx:Mappings>
  330. </edmx:Runtime>
  331. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  332. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  333. <Connection>
  334. <DesignerInfoPropertySet>
  335. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  336. </DesignerInfoPropertySet>
  337. </Connection>
  338. <Options>
  339. <DesignerInfoPropertySet>
  340. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  341. <DesignerProperty Name="EnablePluralization" Value="true" />
  342. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  343. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  344. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  345. </DesignerInfoPropertySet>
  346. </Options>
  347. <!-- Diagram content (shape and connector positions) -->
  348. <Diagrams></Diagrams>
  349. </Designer>
  350. </edmx:Edmx>