Model1.edmx 36 KB

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