HAVLAD.edmx 21 KB

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