Model1.edmx 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  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="Хранилище courseModel" 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="Branches">
  9. <Key>
  10. <PropertyRef Name="BranchID" />
  11. </Key>
  12. <Property Name="BranchID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="Title" Type="varchar" MaxLength="100" Nullable="false" />
  14. <Property Name="Chief" Type="varchar" MaxLength="100" Nullable="false" />
  15. </EntityType>
  16. <EntityType Name="Companies">
  17. <Key>
  18. <PropertyRef Name="CompanyID" />
  19. </Key>
  20. <Property Name="CompanyID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  21. <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
  22. <Property Name="Address" Type="varchar" MaxLength="50" Nullable="false" />
  23. <Property Name="TelNumber" Type="varchar" MaxLength="15" Nullable="false" />
  24. <Property Name="Requisites" Type="varchar" MaxLength="150" Nullable="false" />
  25. <Property Name="ResponsiblePerson" Type="varchar" MaxLength="50" Nullable="false" />
  26. </EntityType>
  27. <EntityType Name="Groups">
  28. <Key>
  29. <PropertyRef Name="GroupID" />
  30. </Key>
  31. <Property Name="GroupID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  32. <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
  33. <Property Name="Curator" Type="varchar" MaxLength="30" Nullable="false" />
  34. <Property Name="SpecialtyID" Type="int" Nullable="false" />
  35. </EntityType>
  36. <EntityType Name="Practices">
  37. <Key>
  38. <PropertyRef Name="PracticeID" />
  39. </Key>
  40. <Property Name="PracticeID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  41. <Property Name="CompanyID" Type="int" Nullable="false" />
  42. <Property Name="SudentID" Type="int" Nullable="false" />
  43. <Property Name="TicketID" Type="int" />
  44. <Property Name="ProModuleID" Type="int" Nullable="false" />
  45. <Property Name="StartDate" Type="date" Nullable="false" />
  46. <Property Name="EndDate" Type="date" Nullable="false" />
  47. </EntityType>
  48. <EntityType Name="PracticleTickets">
  49. <Key>
  50. <PropertyRef Name="TicketID" />
  51. </Key>
  52. <Property Name="TicketID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  53. <Property Name="StudentID" Type="int" Nullable="false" />
  54. <Property Name="DateOfIssue" Type="date" Nullable="false" />
  55. <Property Name="Returned" Type="bit" Nullable="false" />
  56. </EntityType>
  57. <EntityType Name="ProModules">
  58. <Key>
  59. <PropertyRef Name="ProModuleID" />
  60. </Key>
  61. <Property Name="ProModuleID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  62. <Property Name="Title" Type="varchar" MaxLength="50" Nullable="false" />
  63. <Property Name="SpecialityID" Type="int" />
  64. </EntityType>
  65. <EntityType Name="Specialities">
  66. <Key>
  67. <PropertyRef Name="SpecialityID" />
  68. </Key>
  69. <Property Name="SpecialityID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  70. <Property Name="BranchID" Type="int" Nullable="false" />
  71. <Property Name="SpecialtyGovID" Type="varchar" MaxLength="10" />
  72. <Property Name="Title" Type="varchar" MaxLength="100" Nullable="false" />
  73. <Property Name="StudyingPeriod" Type="varchar" MaxLength="50" Nullable="false" />
  74. </EntityType>
  75. <EntityType Name="Students">
  76. <Key>
  77. <PropertyRef Name="StidentID" />
  78. </Key>
  79. <Property Name="StidentID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  80. <Property Name="Surname" Type="varchar" MaxLength="15" Nullable="false" />
  81. <Property Name="FirstName" Type="varchar" MaxLength="15" Nullable="false" />
  82. <Property Name="LastName" Type="varchar" MaxLength="15" Nullable="false" />
  83. <Property Name="BrithDate" Type="date" Nullable="false" />
  84. <Property Name="Address" Type="varchar" MaxLength="100" Nullable="false" />
  85. <Property Name="TelNumber" Type="varchar" MaxLength="15" Nullable="false" />
  86. <Property Name="StudentCardID" Type="int" Nullable="false" />
  87. <Property Name="GradeBookID" Type="int" Nullable="false" />
  88. <Property Name="GroupID" Type="int" Nullable="false" />
  89. </EntityType>
  90. <EntityType Name="sysdiagrams">
  91. <Key>
  92. <PropertyRef Name="diagram_id" />
  93. </Key>
  94. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  95. <Property Name="principal_id" Type="int" Nullable="false" />
  96. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  97. <Property Name="version" Type="int" />
  98. <Property Name="definition" Type="varbinary(max)" />
  99. </EntityType>
  100. <EntityType Name="Users">
  101. <Key>
  102. <PropertyRef Name="UserID" />
  103. </Key>
  104. <Property Name="UserID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  105. <Property Name="Login" Type="varchar" MaxLength="50" Nullable="false" />
  106. <Property Name="Password" Type="varchar" MaxLength="50" Nullable="false" />
  107. <Property Name="UserGroup" Type="varchar" MaxLength="50" Nullable="false" />
  108. </EntityType>
  109. <Association Name="FK_Groups_Specialities">
  110. <End Role="Specialities" Type="Self.Specialities" Multiplicity="1" />
  111. <End Role="Groups" Type="Self.Groups" Multiplicity="*" />
  112. <ReferentialConstraint>
  113. <Principal Role="Specialities">
  114. <PropertyRef Name="SpecialityID" />
  115. </Principal>
  116. <Dependent Role="Groups">
  117. <PropertyRef Name="SpecialtyID" />
  118. </Dependent>
  119. </ReferentialConstraint>
  120. </Association>
  121. <Association Name="FK_Practices_Companies">
  122. <End Role="Companies" Type="Self.Companies" Multiplicity="1" />
  123. <End Role="Practices" Type="Self.Practices" Multiplicity="*" />
  124. <ReferentialConstraint>
  125. <Principal Role="Companies">
  126. <PropertyRef Name="CompanyID" />
  127. </Principal>
  128. <Dependent Role="Practices">
  129. <PropertyRef Name="CompanyID" />
  130. </Dependent>
  131. </ReferentialConstraint>
  132. </Association>
  133. <Association Name="FK_Practices_PracticleTickets">
  134. <End Role="PracticleTickets" Type="Self.PracticleTickets" Multiplicity="0..1" />
  135. <End Role="Practices" Type="Self.Practices" Multiplicity="*" />
  136. <ReferentialConstraint>
  137. <Principal Role="PracticleTickets">
  138. <PropertyRef Name="TicketID" />
  139. </Principal>
  140. <Dependent Role="Practices">
  141. <PropertyRef Name="TicketID" />
  142. </Dependent>
  143. </ReferentialConstraint>
  144. </Association>
  145. <Association Name="FK_Practices_ProModules">
  146. <End Role="ProModules" Type="Self.ProModules" Multiplicity="1" />
  147. <End Role="Practices" Type="Self.Practices" Multiplicity="*" />
  148. <ReferentialConstraint>
  149. <Principal Role="ProModules">
  150. <PropertyRef Name="ProModuleID" />
  151. </Principal>
  152. <Dependent Role="Practices">
  153. <PropertyRef Name="ProModuleID" />
  154. </Dependent>
  155. </ReferentialConstraint>
  156. </Association>
  157. <Association Name="FK_Practices_Students">
  158. <End Role="Students" Type="Self.Students" Multiplicity="1" />
  159. <End Role="Practices" Type="Self.Practices" Multiplicity="*" />
  160. <ReferentialConstraint>
  161. <Principal Role="Students">
  162. <PropertyRef Name="StidentID" />
  163. </Principal>
  164. <Dependent Role="Practices">
  165. <PropertyRef Name="SudentID" />
  166. </Dependent>
  167. </ReferentialConstraint>
  168. </Association>
  169. <Association Name="FK_Specialities_Branches">
  170. <End Role="Branches" Type="Self.Branches" Multiplicity="1" />
  171. <End Role="Specialities" Type="Self.Specialities" Multiplicity="*" />
  172. <ReferentialConstraint>
  173. <Principal Role="Branches">
  174. <PropertyRef Name="BranchID" />
  175. </Principal>
  176. <Dependent Role="Specialities">
  177. <PropertyRef Name="BranchID" />
  178. </Dependent>
  179. </ReferentialConstraint>
  180. </Association>
  181. <Association Name="FK_Students_Groups">
  182. <End Role="Groups" Type="Self.Groups" Multiplicity="1" />
  183. <End Role="Students" Type="Self.Students" Multiplicity="*" />
  184. <ReferentialConstraint>
  185. <Principal Role="Groups">
  186. <PropertyRef Name="GroupID" />
  187. </Principal>
  188. <Dependent Role="Students">
  189. <PropertyRef Name="GroupID" />
  190. </Dependent>
  191. </ReferentialConstraint>
  192. </Association>
  193. <EntityContainer Name="Хранилище courseModelContainer">
  194. <EntitySet Name="Branches" EntityType="Self.Branches" Schema="dbo" store:Type="Tables" />
  195. <EntitySet Name="Companies" EntityType="Self.Companies" Schema="dbo" store:Type="Tables" />
  196. <EntitySet Name="Groups" EntityType="Self.Groups" Schema="dbo" store:Type="Tables" />
  197. <EntitySet Name="Practices" EntityType="Self.Practices" Schema="dbo" store:Type="Tables" />
  198. <EntitySet Name="PracticleTickets" EntityType="Self.PracticleTickets" Schema="dbo" store:Type="Tables" />
  199. <EntitySet Name="ProModules" EntityType="Self.ProModules" Schema="dbo" store:Type="Tables" />
  200. <EntitySet Name="Specialities" EntityType="Self.Specialities" Schema="dbo" store:Type="Tables" />
  201. <EntitySet Name="Students" EntityType="Self.Students" Schema="dbo" store:Type="Tables" />
  202. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  203. <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
  204. <AssociationSet Name="FK_Groups_Specialities" Association="Self.FK_Groups_Specialities">
  205. <End Role="Specialities" EntitySet="Specialities" />
  206. <End Role="Groups" EntitySet="Groups" />
  207. </AssociationSet>
  208. <AssociationSet Name="FK_Practices_Companies" Association="Self.FK_Practices_Companies">
  209. <End Role="Companies" EntitySet="Companies" />
  210. <End Role="Practices" EntitySet="Practices" />
  211. </AssociationSet>
  212. <AssociationSet Name="FK_Practices_PracticleTickets" Association="Self.FK_Practices_PracticleTickets">
  213. <End Role="PracticleTickets" EntitySet="PracticleTickets" />
  214. <End Role="Practices" EntitySet="Practices" />
  215. </AssociationSet>
  216. <AssociationSet Name="FK_Practices_ProModules" Association="Self.FK_Practices_ProModules">
  217. <End Role="ProModules" EntitySet="ProModules" />
  218. <End Role="Practices" EntitySet="Practices" />
  219. </AssociationSet>
  220. <AssociationSet Name="FK_Practices_Students" Association="Self.FK_Practices_Students">
  221. <End Role="Students" EntitySet="Students" />
  222. <End Role="Practices" EntitySet="Practices" />
  223. </AssociationSet>
  224. <AssociationSet Name="FK_Specialities_Branches" Association="Self.FK_Specialities_Branches">
  225. <End Role="Branches" EntitySet="Branches" />
  226. <End Role="Specialities" EntitySet="Specialities" />
  227. </AssociationSet>
  228. <AssociationSet Name="FK_Students_Groups" Association="Self.FK_Students_Groups">
  229. <End Role="Groups" EntitySet="Groups" />
  230. <End Role="Students" EntitySet="Students" />
  231. </AssociationSet>
  232. </EntityContainer>
  233. </Schema></edmx:StorageModels>
  234. <!-- CSDL content -->
  235. <edmx:ConceptualModels>
  236. <Schema Namespace="courseModel" 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">
  237. <EntityType Name="Branches">
  238. <Key>
  239. <PropertyRef Name="BranchID" />
  240. </Key>
  241. <Property Name="BranchID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  242. <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
  243. <Property Name="Chief" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
  244. <NavigationProperty Name="Specialities" Relationship="Self.FK_Specialities_Branches" FromRole="Branches" ToRole="Specialities" />
  245. </EntityType>
  246. <EntityType Name="Companies">
  247. <Key>
  248. <PropertyRef Name="CompanyID" />
  249. </Key>
  250. <Property Name="CompanyID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  251. <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  252. <Property Name="Address" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  253. <Property Name="TelNumber" Type="String" MaxLength="15" FixedLength="false" Unicode="false" Nullable="false" />
  254. <Property Name="Requisites" Type="String" MaxLength="150" FixedLength="false" Unicode="false" Nullable="false" />
  255. <Property Name="ResponsiblePerson" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  256. <NavigationProperty Name="Practices" Relationship="Self.FK_Practices_Companies" FromRole="Companies" ToRole="Practices" />
  257. </EntityType>
  258. <EntityType Name="Groups">
  259. <Key>
  260. <PropertyRef Name="GroupID" />
  261. </Key>
  262. <Property Name="GroupID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  263. <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  264. <Property Name="Curator" Type="String" MaxLength="30" FixedLength="false" Unicode="false" Nullable="false" />
  265. <Property Name="SpecialtyID" Type="Int32" Nullable="false" />
  266. <NavigationProperty Name="Specialities" Relationship="Self.FK_Groups_Specialities" FromRole="Groups" ToRole="Specialities" />
  267. <NavigationProperty Name="Students" Relationship="Self.FK_Students_Groups" FromRole="Groups" ToRole="Students" />
  268. </EntityType>
  269. <EntityType Name="Practices">
  270. <Key>
  271. <PropertyRef Name="PracticeID" />
  272. </Key>
  273. <Property Name="PracticeID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  274. <Property Name="CompanyID" Type="Int32" Nullable="false" />
  275. <Property Name="SudentID" Type="Int32" Nullable="false" />
  276. <Property Name="TicketID" Type="Int32" />
  277. <Property Name="ProModuleID" Type="Int32" Nullable="false" />
  278. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="0" />
  279. <Property Name="EndDate" Type="DateTime" Nullable="false" Precision="0" />
  280. <NavigationProperty Name="Companies" Relationship="Self.FK_Practices_Companies" FromRole="Practices" ToRole="Companies" />
  281. <NavigationProperty Name="PracticleTickets" Relationship="Self.FK_Practices_PracticleTickets" FromRole="Practices" ToRole="PracticleTickets" />
  282. <NavigationProperty Name="ProModules" Relationship="Self.FK_Practices_ProModules" FromRole="Practices" ToRole="ProModules" />
  283. <NavigationProperty Name="Students" Relationship="Self.FK_Practices_Students" FromRole="Practices" ToRole="Students" />
  284. </EntityType>
  285. <EntityType Name="PracticleTickets">
  286. <Key>
  287. <PropertyRef Name="TicketID" />
  288. </Key>
  289. <Property Name="TicketID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  290. <Property Name="StudentID" Type="Int32" Nullable="false" />
  291. <Property Name="DateOfIssue" Type="DateTime" Nullable="false" Precision="0" />
  292. <Property Name="Returned" Type="Boolean" Nullable="false" />
  293. <NavigationProperty Name="Practices" Relationship="Self.FK_Practices_PracticleTickets" FromRole="PracticleTickets" ToRole="Practices" />
  294. </EntityType>
  295. <EntityType Name="ProModules">
  296. <Key>
  297. <PropertyRef Name="ProModuleID" />
  298. </Key>
  299. <Property Name="ProModuleID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  300. <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  301. <Property Name="SpecialityID" Type="Int32" />
  302. <NavigationProperty Name="Practices" Relationship="Self.FK_Practices_ProModules" FromRole="ProModules" ToRole="Practices" />
  303. </EntityType>
  304. <EntityType Name="Specialities">
  305. <Key>
  306. <PropertyRef Name="SpecialityID" />
  307. </Key>
  308. <Property Name="SpecialityID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  309. <Property Name="BranchID" Type="Int32" Nullable="false" />
  310. <Property Name="SpecialtyGovID" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
  311. <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
  312. <Property Name="StudyingPeriod" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  313. <NavigationProperty Name="Branches" Relationship="Self.FK_Specialities_Branches" FromRole="Specialities" ToRole="Branches" />
  314. <NavigationProperty Name="Groups" Relationship="Self.FK_Groups_Specialities" FromRole="Specialities" ToRole="Groups" />
  315. </EntityType>
  316. <EntityType Name="Students">
  317. <Key>
  318. <PropertyRef Name="StidentID" />
  319. </Key>
  320. <Property Name="StidentID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  321. <Property Name="Surname" Type="String" MaxLength="15" FixedLength="false" Unicode="false" Nullable="false" />
  322. <Property Name="FirstName" Type="String" MaxLength="15" FixedLength="false" Unicode="false" Nullable="false" />
  323. <Property Name="LastName" Type="String" MaxLength="15" FixedLength="false" Unicode="false" Nullable="false" />
  324. <Property Name="BrithDate" Type="DateTime" Nullable="false" Precision="0" />
  325. <Property Name="Address" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
  326. <Property Name="TelNumber" Type="String" MaxLength="15" FixedLength="false" Unicode="false" Nullable="false" />
  327. <Property Name="StudentCardID" Type="Int32" Nullable="false" />
  328. <Property Name="GradeBookID" Type="Int32" Nullable="false" />
  329. <Property Name="GroupID" Type="Int32" Nullable="false" />
  330. <NavigationProperty Name="Groups" Relationship="Self.FK_Students_Groups" FromRole="Students" ToRole="Groups" />
  331. <NavigationProperty Name="Practices" Relationship="Self.FK_Practices_Students" FromRole="Students" ToRole="Practices" />
  332. </EntityType>
  333. <EntityType Name="sysdiagrams">
  334. <Key>
  335. <PropertyRef Name="diagram_id" />
  336. </Key>
  337. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  338. <Property Name="principal_id" Type="Int32" Nullable="false" />
  339. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  340. <Property Name="version" Type="Int32" />
  341. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  342. </EntityType>
  343. <EntityType Name="Users">
  344. <Key>
  345. <PropertyRef Name="UserID" />
  346. </Key>
  347. <Property Name="UserID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  348. <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  349. <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  350. <Property Name="UserGroup" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  351. </EntityType>
  352. <Association Name="FK_Specialities_Branches">
  353. <End Role="Branches" Type="Self.Branches" Multiplicity="1" />
  354. <End Role="Specialities" Type="Self.Specialities" Multiplicity="*" />
  355. <ReferentialConstraint>
  356. <Principal Role="Branches">
  357. <PropertyRef Name="BranchID" />
  358. </Principal>
  359. <Dependent Role="Specialities">
  360. <PropertyRef Name="BranchID" />
  361. </Dependent>
  362. </ReferentialConstraint>
  363. </Association>
  364. <Association Name="FK_Practices_Companies">
  365. <End Role="Companies" Type="Self.Companies" Multiplicity="1" />
  366. <End Role="Practices" Type="Self.Practices" Multiplicity="*" />
  367. <ReferentialConstraint>
  368. <Principal Role="Companies">
  369. <PropertyRef Name="CompanyID" />
  370. </Principal>
  371. <Dependent Role="Practices">
  372. <PropertyRef Name="CompanyID" />
  373. </Dependent>
  374. </ReferentialConstraint>
  375. </Association>
  376. <Association Name="FK_Groups_Specialities">
  377. <End Role="Specialities" Type="Self.Specialities" Multiplicity="1" />
  378. <End Role="Groups" Type="Self.Groups" Multiplicity="*" />
  379. <ReferentialConstraint>
  380. <Principal Role="Specialities">
  381. <PropertyRef Name="SpecialityID" />
  382. </Principal>
  383. <Dependent Role="Groups">
  384. <PropertyRef Name="SpecialtyID" />
  385. </Dependent>
  386. </ReferentialConstraint>
  387. </Association>
  388. <Association Name="FK_Students_Groups">
  389. <End Role="Groups" Type="Self.Groups" Multiplicity="1" />
  390. <End Role="Students" Type="Self.Students" Multiplicity="*" />
  391. <ReferentialConstraint>
  392. <Principal Role="Groups">
  393. <PropertyRef Name="GroupID" />
  394. </Principal>
  395. <Dependent Role="Students">
  396. <PropertyRef Name="GroupID" />
  397. </Dependent>
  398. </ReferentialConstraint>
  399. </Association>
  400. <Association Name="FK_Practices_PracticleTickets">
  401. <End Role="PracticleTickets" Type="Self.PracticleTickets" Multiplicity="0..1" />
  402. <End Role="Practices" Type="Self.Practices" Multiplicity="*" />
  403. <ReferentialConstraint>
  404. <Principal Role="PracticleTickets">
  405. <PropertyRef Name="TicketID" />
  406. </Principal>
  407. <Dependent Role="Practices">
  408. <PropertyRef Name="TicketID" />
  409. </Dependent>
  410. </ReferentialConstraint>
  411. </Association>
  412. <Association Name="FK_Practices_ProModules">
  413. <End Role="ProModules" Type="Self.ProModules" Multiplicity="1" />
  414. <End Role="Practices" Type="Self.Practices" Multiplicity="*" />
  415. <ReferentialConstraint>
  416. <Principal Role="ProModules">
  417. <PropertyRef Name="ProModuleID" />
  418. </Principal>
  419. <Dependent Role="Practices">
  420. <PropertyRef Name="ProModuleID" />
  421. </Dependent>
  422. </ReferentialConstraint>
  423. </Association>
  424. <Association Name="FK_Practices_Students">
  425. <End Role="Students" Type="Self.Students" Multiplicity="1" />
  426. <End Role="Practices" Type="Self.Practices" Multiplicity="*" />
  427. <ReferentialConstraint>
  428. <Principal Role="Students">
  429. <PropertyRef Name="StidentID" />
  430. </Principal>
  431. <Dependent Role="Practices">
  432. <PropertyRef Name="SudentID" />
  433. </Dependent>
  434. </ReferentialConstraint>
  435. </Association>
  436. <EntityContainer Name="Database" annotation:LazyLoadingEnabled="true">
  437. <EntitySet Name="Branches" EntityType="Self.Branches" />
  438. <EntitySet Name="Companies" EntityType="Self.Companies" />
  439. <EntitySet Name="Groups" EntityType="Self.Groups" />
  440. <EntitySet Name="Practices" EntityType="Self.Practices" />
  441. <EntitySet Name="PracticleTickets" EntityType="Self.PracticleTickets" />
  442. <EntitySet Name="ProModules" EntityType="Self.ProModules" />
  443. <EntitySet Name="Specialities" EntityType="Self.Specialities" />
  444. <EntitySet Name="Students" EntityType="Self.Students" />
  445. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  446. <EntitySet Name="Users" EntityType="Self.Users" />
  447. <AssociationSet Name="FK_Specialities_Branches" Association="Self.FK_Specialities_Branches">
  448. <End Role="Branches" EntitySet="Branches" />
  449. <End Role="Specialities" EntitySet="Specialities" />
  450. </AssociationSet>
  451. <AssociationSet Name="FK_Practices_Companies" Association="Self.FK_Practices_Companies">
  452. <End Role="Companies" EntitySet="Companies" />
  453. <End Role="Practices" EntitySet="Practices" />
  454. </AssociationSet>
  455. <AssociationSet Name="FK_Groups_Specialities" Association="Self.FK_Groups_Specialities">
  456. <End Role="Specialities" EntitySet="Specialities" />
  457. <End Role="Groups" EntitySet="Groups" />
  458. </AssociationSet>
  459. <AssociationSet Name="FK_Students_Groups" Association="Self.FK_Students_Groups">
  460. <End Role="Groups" EntitySet="Groups" />
  461. <End Role="Students" EntitySet="Students" />
  462. </AssociationSet>
  463. <AssociationSet Name="FK_Practices_PracticleTickets" Association="Self.FK_Practices_PracticleTickets">
  464. <End Role="PracticleTickets" EntitySet="PracticleTickets" />
  465. <End Role="Practices" EntitySet="Practices" />
  466. </AssociationSet>
  467. <AssociationSet Name="FK_Practices_ProModules" Association="Self.FK_Practices_ProModules">
  468. <End Role="ProModules" EntitySet="ProModules" />
  469. <End Role="Practices" EntitySet="Practices" />
  470. </AssociationSet>
  471. <AssociationSet Name="FK_Practices_Students" Association="Self.FK_Practices_Students">
  472. <End Role="Students" EntitySet="Students" />
  473. <End Role="Practices" EntitySet="Practices" />
  474. </AssociationSet>
  475. </EntityContainer>
  476. </Schema>
  477. </edmx:ConceptualModels>
  478. <!-- C-S mapping content -->
  479. <edmx:Mappings>
  480. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  481. <EntityContainerMapping StorageEntityContainer="Хранилище courseModelContainer" CdmEntityContainer="Database">
  482. <EntitySetMapping Name="Branches">
  483. <EntityTypeMapping TypeName="courseModel.Branches">
  484. <MappingFragment StoreEntitySet="Branches">
  485. <ScalarProperty Name="BranchID" ColumnName="BranchID" />
  486. <ScalarProperty Name="Title" ColumnName="Title" />
  487. <ScalarProperty Name="Chief" ColumnName="Chief" />
  488. </MappingFragment>
  489. </EntityTypeMapping>
  490. </EntitySetMapping>
  491. <EntitySetMapping Name="Companies">
  492. <EntityTypeMapping TypeName="courseModel.Companies">
  493. <MappingFragment StoreEntitySet="Companies">
  494. <ScalarProperty Name="CompanyID" ColumnName="CompanyID" />
  495. <ScalarProperty Name="Title" ColumnName="Title" />
  496. <ScalarProperty Name="Address" ColumnName="Address" />
  497. <ScalarProperty Name="TelNumber" ColumnName="TelNumber" />
  498. <ScalarProperty Name="Requisites" ColumnName="Requisites" />
  499. <ScalarProperty Name="ResponsiblePerson" ColumnName="ResponsiblePerson" />
  500. </MappingFragment>
  501. </EntityTypeMapping>
  502. </EntitySetMapping>
  503. <EntitySetMapping Name="Groups">
  504. <EntityTypeMapping TypeName="courseModel.Groups">
  505. <MappingFragment StoreEntitySet="Groups">
  506. <ScalarProperty Name="GroupID" ColumnName="GroupID" />
  507. <ScalarProperty Name="Title" ColumnName="Title" />
  508. <ScalarProperty Name="Curator" ColumnName="Curator" />
  509. <ScalarProperty Name="SpecialtyID" ColumnName="SpecialtyID" />
  510. </MappingFragment>
  511. </EntityTypeMapping>
  512. </EntitySetMapping>
  513. <EntitySetMapping Name="Practices">
  514. <EntityTypeMapping TypeName="courseModel.Practices">
  515. <MappingFragment StoreEntitySet="Practices">
  516. <ScalarProperty Name="PracticeID" ColumnName="PracticeID" />
  517. <ScalarProperty Name="CompanyID" ColumnName="CompanyID" />
  518. <ScalarProperty Name="SudentID" ColumnName="SudentID" />
  519. <ScalarProperty Name="TicketID" ColumnName="TicketID" />
  520. <ScalarProperty Name="ProModuleID" ColumnName="ProModuleID" />
  521. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  522. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  523. </MappingFragment>
  524. </EntityTypeMapping>
  525. </EntitySetMapping>
  526. <EntitySetMapping Name="PracticleTickets">
  527. <EntityTypeMapping TypeName="courseModel.PracticleTickets">
  528. <MappingFragment StoreEntitySet="PracticleTickets">
  529. <ScalarProperty Name="TicketID" ColumnName="TicketID" />
  530. <ScalarProperty Name="StudentID" ColumnName="StudentID" />
  531. <ScalarProperty Name="DateOfIssue" ColumnName="DateOfIssue" />
  532. <ScalarProperty Name="Returned" ColumnName="Returned" />
  533. </MappingFragment>
  534. </EntityTypeMapping>
  535. </EntitySetMapping>
  536. <EntitySetMapping Name="ProModules">
  537. <EntityTypeMapping TypeName="courseModel.ProModules">
  538. <MappingFragment StoreEntitySet="ProModules">
  539. <ScalarProperty Name="ProModuleID" ColumnName="ProModuleID" />
  540. <ScalarProperty Name="Title" ColumnName="Title" />
  541. <ScalarProperty Name="SpecialityID" ColumnName="SpecialityID" />
  542. </MappingFragment>
  543. </EntityTypeMapping>
  544. </EntitySetMapping>
  545. <EntitySetMapping Name="Specialities">
  546. <EntityTypeMapping TypeName="courseModel.Specialities">
  547. <MappingFragment StoreEntitySet="Specialities">
  548. <ScalarProperty Name="SpecialityID" ColumnName="SpecialityID" />
  549. <ScalarProperty Name="BranchID" ColumnName="BranchID" />
  550. <ScalarProperty Name="SpecialtyGovID" ColumnName="SpecialtyGovID" />
  551. <ScalarProperty Name="Title" ColumnName="Title" />
  552. <ScalarProperty Name="StudyingPeriod" ColumnName="StudyingPeriod" />
  553. </MappingFragment>
  554. </EntityTypeMapping>
  555. </EntitySetMapping>
  556. <EntitySetMapping Name="Students">
  557. <EntityTypeMapping TypeName="courseModel.Students">
  558. <MappingFragment StoreEntitySet="Students">
  559. <ScalarProperty Name="StidentID" ColumnName="StidentID" />
  560. <ScalarProperty Name="Surname" ColumnName="Surname" />
  561. <ScalarProperty Name="FirstName" ColumnName="FirstName" />
  562. <ScalarProperty Name="LastName" ColumnName="LastName" />
  563. <ScalarProperty Name="BrithDate" ColumnName="BrithDate" />
  564. <ScalarProperty Name="Address" ColumnName="Address" />
  565. <ScalarProperty Name="TelNumber" ColumnName="TelNumber" />
  566. <ScalarProperty Name="StudentCardID" ColumnName="StudentCardID" />
  567. <ScalarProperty Name="GradeBookID" ColumnName="GradeBookID" />
  568. <ScalarProperty Name="GroupID" ColumnName="GroupID" />
  569. </MappingFragment>
  570. </EntityTypeMapping>
  571. </EntitySetMapping>
  572. <EntitySetMapping Name="sysdiagrams">
  573. <EntityTypeMapping TypeName="courseModel.sysdiagrams">
  574. <MappingFragment StoreEntitySet="sysdiagrams">
  575. <ScalarProperty Name="name" ColumnName="name" />
  576. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  577. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  578. <ScalarProperty Name="version" ColumnName="version" />
  579. <ScalarProperty Name="definition" ColumnName="definition" />
  580. </MappingFragment>
  581. </EntityTypeMapping>
  582. </EntitySetMapping>
  583. <EntitySetMapping Name="Users">
  584. <EntityTypeMapping TypeName="courseModel.Users">
  585. <MappingFragment StoreEntitySet="Users">
  586. <ScalarProperty Name="UserID" ColumnName="UserID" />
  587. <ScalarProperty Name="Login" ColumnName="Login" />
  588. <ScalarProperty Name="Password" ColumnName="Password" />
  589. <ScalarProperty Name="UserGroup" ColumnName="UserGroup" />
  590. </MappingFragment>
  591. </EntityTypeMapping>
  592. </EntitySetMapping>
  593. </EntityContainerMapping>
  594. </Mapping>
  595. </edmx:Mappings>
  596. </edmx:Runtime>
  597. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  598. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  599. <Connection>
  600. <DesignerInfoPropertySet>
  601. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  602. </DesignerInfoPropertySet>
  603. </Connection>
  604. <Options>
  605. <DesignerInfoPropertySet>
  606. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  607. <DesignerProperty Name="EnablePluralization" Value="false" />
  608. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  609. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  610. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  611. </DesignerInfoPropertySet>
  612. </Options>
  613. <!-- Diagram content (shape and connector positions) -->
  614. <Diagrams></Diagrams>
  615. </Designer>
  616. </edmx:Edmx>