Model1.edmx 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985
  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="Хранилище ModelKindergartenEntities" 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="Attendance">
  9. <Key>
  10. <PropertyRef Name="Id_visit" />
  11. </Key>
  12. <Property Name="Id_visit" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="Date_visit" Type="date" Nullable="false" />
  14. <Property Name="Id_child" Type="int" Nullable="false" />
  15. <Property Name="Status_visit" Type="int" Nullable="false" />
  16. </EntityType>
  17. <EntityType Name="Children">
  18. <Key>
  19. <PropertyRef Name="Id_child" />
  20. </Key>
  21. <Property Name="Id_child" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  22. <Property Name="Surname" Type="nvarchar" MaxLength="50" Nullable="false" />
  23. <Property Name="Names" Type="nvarchar" MaxLength="50" Nullable="false" />
  24. <Property Name="Patronymic" Type="nvarchar" MaxLength="50" Nullable="false" />
  25. <Property Name="Birthdate" Type="date" Nullable="false" />
  26. <Property Name="Id_gender" Type="int" Nullable="false" />
  27. <Property Name="Id_group" Type="int" Nullable="false" />
  28. <Property Name="Street" Type="nvarchar" MaxLength="50" Nullable="false" />
  29. <Property Name="Building" Type="nvarchar" MaxLength="10" Nullable="false" />
  30. <Property Name="Photo" Type="nvarchar" MaxLength="100" />
  31. </EntityType>
  32. <EntityType Name="Distributions">
  33. <Key>
  34. <PropertyRef Name="Id_distribution" />
  35. </Key>
  36. <Property Name="Id_distribution" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  37. <Property Name="Id_employee" Type="int" Nullable="false" />
  38. <Property Name="Id_group" Type="int" Nullable="false" />
  39. </EntityType>
  40. <EntityType Name="Employees">
  41. <Key>
  42. <PropertyRef Name="Id_employee" />
  43. </Key>
  44. <Property Name="Id_employee" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  45. <Property Name="Surname" Type="nvarchar" MaxLength="50" Nullable="false" />
  46. <Property Name="Names" Type="nvarchar" MaxLength="50" Nullable="false" />
  47. <Property Name="Patronymic" Type="nvarchar" MaxLength="50" Nullable="false" />
  48. <Property Name="Birthdate" Type="date" Nullable="false" />
  49. <Property Name="Id_gender" Type="int" Nullable="false" />
  50. <Property Name="Id_position" Type="int" Nullable="false" />
  51. <Property Name="Street" Type="nvarchar" MaxLength="50" Nullable="false" />
  52. <Property Name="Building" Type="nvarchar" MaxLength="10" Nullable="false" />
  53. <Property Name="Phone" Type="nvarchar" MaxLength="20" Nullable="false" />
  54. <Property Name="Login_user" Type="nvarchar" MaxLength="20" Nullable="false" />
  55. <Property Name="Password_user" Type="int" Nullable="false" />
  56. <Property Name="Id_role" Type="int" Nullable="false" />
  57. </EntityType>
  58. <EntityType Name="Genders">
  59. <Key>
  60. <PropertyRef Name="Id_gender" />
  61. </Key>
  62. <Property Name="Id_gender" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  63. <Property Name="Gender" Type="nvarchar" MaxLength="10" Nullable="false" />
  64. </EntityType>
  65. <EntityType Name="Groups">
  66. <Key>
  67. <PropertyRef Name="Id_group" />
  68. </Key>
  69. <Property Name="Id_group" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  70. <Property Name="Id_type" Type="int" Nullable="false" />
  71. <Property Name="Code" Type="int" Nullable="false" />
  72. </EntityType>
  73. <EntityType Name="Kinships">
  74. <Key>
  75. <PropertyRef Name="Id_kinship" />
  76. </Key>
  77. <Property Name="Id_kinship" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  78. <Property Name="Id_parent" Type="int" Nullable="false" />
  79. <Property Name="Id_child" Type="int" Nullable="false" />
  80. </EntityType>
  81. <EntityType Name="Parents">
  82. <Key>
  83. <PropertyRef Name="Id_parent" />
  84. </Key>
  85. <Property Name="Id_parent" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  86. <Property Name="Surname" Type="nvarchar" MaxLength="50" Nullable="false" />
  87. <Property Name="Names" Type="nvarchar" MaxLength="50" Nullable="false" />
  88. <Property Name="Patronymic" Type="nvarchar" MaxLength="50" Nullable="false" />
  89. <Property Name="Birthdate" Type="date" Nullable="false" />
  90. <Property Name="Id_gender" Type="int" Nullable="false" />
  91. <Property Name="Street" Type="nvarchar" MaxLength="50" Nullable="false" />
  92. <Property Name="Building" Type="nvarchar" MaxLength="10" Nullable="false" />
  93. <Property Name="Phone" Type="nvarchar" MaxLength="20" Nullable="false" />
  94. </EntityType>
  95. <EntityType Name="Photos">
  96. <Key>
  97. <PropertyRef Name="Id_photo" />
  98. </Key>
  99. <Property Name="Id_photo" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  100. <Property Name="Id_employee" Type="int" />
  101. <Property Name="Byte_photo" Type="varbinary(max)" />
  102. <Property Name="Path_photo" Type="nvarchar" MaxLength="200" />
  103. </EntityType>
  104. <EntityType Name="Positions">
  105. <Key>
  106. <PropertyRef Name="Id_position" />
  107. </Key>
  108. <Property Name="Id_position" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  109. <Property Name="Position" Type="nvarchar" MaxLength="50" Nullable="false" />
  110. </EntityType>
  111. <EntityType Name="Roles">
  112. <Key>
  113. <PropertyRef Name="Id_role" />
  114. </Key>
  115. <Property Name="Id_role" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  116. <Property Name="Role_name" Type="nvarchar" MaxLength="20" Nullable="false" />
  117. </EntityType>
  118. <EntityType Name="Sertificates">
  119. <Key>
  120. <PropertyRef Name="Id_sertificate" />
  121. </Key>
  122. <Property Name="Id_sertificate" Type="int" Nullable="false" />
  123. <Property Name="Series" Type="nvarchar" MaxLength="10" Nullable="false" />
  124. <Property Name="Number" Type="int" Nullable="false" />
  125. <Property Name="Date_issue" Type="date" Nullable="false" />
  126. <Property Name="Iddued" Type="nvarchar" MaxLength="100" Nullable="false" />
  127. </EntityType>
  128. <EntityType Name="Types_group">
  129. <Key>
  130. <PropertyRef Name="Id_type" />
  131. </Key>
  132. <Property Name="Id_type" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  133. <Property Name="Type_group" Type="nvarchar" MaxLength="50" Nullable="false" />
  134. </EntityType>
  135. <Association Name="FK__Attendanc__Id_ch__5F7E2DAC">
  136. <End Role="Children" Type="Self.Children" Multiplicity="1">
  137. <OnDelete Action="Cascade" />
  138. </End>
  139. <End Role="Attendance" Type="Self.Attendance" Multiplicity="*" />
  140. <ReferentialConstraint>
  141. <Principal Role="Children">
  142. <PropertyRef Name="Id_child" />
  143. </Principal>
  144. <Dependent Role="Attendance">
  145. <PropertyRef Name="Id_child" />
  146. </Dependent>
  147. </ReferentialConstraint>
  148. </Association>
  149. <Association Name="FK__Children__Id_gen__5BAD9CC8">
  150. <End Role="Genders" Type="Self.Genders" Multiplicity="1" />
  151. <End Role="Children" Type="Self.Children" Multiplicity="*" />
  152. <ReferentialConstraint>
  153. <Principal Role="Genders">
  154. <PropertyRef Name="Id_gender" />
  155. </Principal>
  156. <Dependent Role="Children">
  157. <PropertyRef Name="Id_gender" />
  158. </Dependent>
  159. </ReferentialConstraint>
  160. </Association>
  161. <Association Name="FK__Children__Id_gro__5CA1C101">
  162. <End Role="Groups" Type="Self.Groups" Multiplicity="1">
  163. <OnDelete Action="Cascade" />
  164. </End>
  165. <End Role="Children" Type="Self.Children" Multiplicity="*" />
  166. <ReferentialConstraint>
  167. <Principal Role="Groups">
  168. <PropertyRef Name="Id_group" />
  169. </Principal>
  170. <Dependent Role="Children">
  171. <PropertyRef Name="Id_group" />
  172. </Dependent>
  173. </ReferentialConstraint>
  174. </Association>
  175. <Association Name="FK__Distribut__Id_em__39237A9A">
  176. <End Role="Employees" Type="Self.Employees" Multiplicity="1">
  177. <OnDelete Action="Cascade" />
  178. </End>
  179. <End Role="Distributions" Type="Self.Distributions" Multiplicity="*" />
  180. <ReferentialConstraint>
  181. <Principal Role="Employees">
  182. <PropertyRef Name="Id_employee" />
  183. </Principal>
  184. <Dependent Role="Distributions">
  185. <PropertyRef Name="Id_employee" />
  186. </Dependent>
  187. </ReferentialConstraint>
  188. </Association>
  189. <Association Name="FK__Distribut__Id_gr__3A179ED3">
  190. <End Role="Groups" Type="Self.Groups" Multiplicity="1">
  191. <OnDelete Action="Cascade" />
  192. </End>
  193. <End Role="Distributions" Type="Self.Distributions" Multiplicity="*" />
  194. <ReferentialConstraint>
  195. <Principal Role="Groups">
  196. <PropertyRef Name="Id_group" />
  197. </Principal>
  198. <Dependent Role="Distributions">
  199. <PropertyRef Name="Id_group" />
  200. </Dependent>
  201. </ReferentialConstraint>
  202. </Association>
  203. <Association Name="FK__Employees__Id_ge__1E6F845E">
  204. <End Role="Genders" Type="Self.Genders" Multiplicity="1" />
  205. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  206. <ReferentialConstraint>
  207. <Principal Role="Genders">
  208. <PropertyRef Name="Id_gender" />
  209. </Principal>
  210. <Dependent Role="Employees">
  211. <PropertyRef Name="Id_gender" />
  212. </Dependent>
  213. </ReferentialConstraint>
  214. </Association>
  215. <Association Name="FK__Employees__Id_po__1F63A897">
  216. <End Role="Positions" Type="Self.Positions" Multiplicity="1">
  217. <OnDelete Action="Cascade" />
  218. </End>
  219. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  220. <ReferentialConstraint>
  221. <Principal Role="Positions">
  222. <PropertyRef Name="Id_position" />
  223. </Principal>
  224. <Dependent Role="Employees">
  225. <PropertyRef Name="Id_position" />
  226. </Dependent>
  227. </ReferentialConstraint>
  228. </Association>
  229. <Association Name="FK__Employees__Id_ro__2057CCD0">
  230. <End Role="Roles" Type="Self.Roles" Multiplicity="1">
  231. <OnDelete Action="Cascade" />
  232. </End>
  233. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  234. <ReferentialConstraint>
  235. <Principal Role="Roles">
  236. <PropertyRef Name="Id_role" />
  237. </Principal>
  238. <Dependent Role="Employees">
  239. <PropertyRef Name="Id_role" />
  240. </Dependent>
  241. </ReferentialConstraint>
  242. </Association>
  243. <Association Name="FK__Groups__Id_type__4E53A1AA">
  244. <End Role="Types_group" Type="Self.Types_group" Multiplicity="1">
  245. <OnDelete Action="Cascade" />
  246. </End>
  247. <End Role="Groups" Type="Self.Groups" Multiplicity="*" />
  248. <ReferentialConstraint>
  249. <Principal Role="Types_group">
  250. <PropertyRef Name="Id_type" />
  251. </Principal>
  252. <Dependent Role="Groups">
  253. <PropertyRef Name="Id_type" />
  254. </Dependent>
  255. </ReferentialConstraint>
  256. </Association>
  257. <Association Name="FK__Kinships__Id_chi__6225902D">
  258. <End Role="Children" Type="Self.Children" Multiplicity="1">
  259. <OnDelete Action="Cascade" />
  260. </End>
  261. <End Role="Kinships" Type="Self.Kinships" Multiplicity="*" />
  262. <ReferentialConstraint>
  263. <Principal Role="Children">
  264. <PropertyRef Name="Id_child" />
  265. </Principal>
  266. <Dependent Role="Kinships">
  267. <PropertyRef Name="Id_child" />
  268. </Dependent>
  269. </ReferentialConstraint>
  270. </Association>
  271. <Association Name="FK__Parents__Id_gend__6CD828CA">
  272. <End Role="Genders" Type="Self.Genders" Multiplicity="1" />
  273. <End Role="Parents" Type="Self.Parents" Multiplicity="*" />
  274. <ReferentialConstraint>
  275. <Principal Role="Genders">
  276. <PropertyRef Name="Id_gender" />
  277. </Principal>
  278. <Dependent Role="Parents">
  279. <PropertyRef Name="Id_gender" />
  280. </Dependent>
  281. </ReferentialConstraint>
  282. </Association>
  283. <Association Name="FK__Photos__Id_emplo__02925FBF">
  284. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1">
  285. <OnDelete Action="Cascade" />
  286. </End>
  287. <End Role="Photos" Type="Self.Photos" Multiplicity="*" />
  288. <ReferentialConstraint>
  289. <Principal Role="Employees">
  290. <PropertyRef Name="Id_employee" />
  291. </Principal>
  292. <Dependent Role="Photos">
  293. <PropertyRef Name="Id_employee" />
  294. </Dependent>
  295. </ReferentialConstraint>
  296. </Association>
  297. <Association Name="FK_Kinships_Parents">
  298. <End Role="Parents" Type="Self.Parents" Multiplicity="1">
  299. <OnDelete Action="Cascade" />
  300. </End>
  301. <End Role="Kinships" Type="Self.Kinships" Multiplicity="*" />
  302. <ReferentialConstraint>
  303. <Principal Role="Parents">
  304. <PropertyRef Name="Id_parent" />
  305. </Principal>
  306. <Dependent Role="Kinships">
  307. <PropertyRef Name="Id_parent" />
  308. </Dependent>
  309. </ReferentialConstraint>
  310. </Association>
  311. <Association Name="FK_Sertificates_Children">
  312. <End Role="Children" Type="Self.Children" Multiplicity="1">
  313. <OnDelete Action="Cascade" />
  314. </End>
  315. <End Role="Sertificates" Type="Self.Sertificates" Multiplicity="0..1" />
  316. <ReferentialConstraint>
  317. <Principal Role="Children">
  318. <PropertyRef Name="Id_child" />
  319. </Principal>
  320. <Dependent Role="Sertificates">
  321. <PropertyRef Name="Id_sertificate" />
  322. </Dependent>
  323. </ReferentialConstraint>
  324. </Association>
  325. <EntityContainer Name="Хранилище ModelKindergartenEntitiesContainer">
  326. <EntitySet Name="Attendance" EntityType="Self.Attendance" Schema="dbo" store:Type="Tables" />
  327. <EntitySet Name="Children" EntityType="Self.Children" Schema="dbo" store:Type="Tables" />
  328. <EntitySet Name="Distributions" EntityType="Self.Distributions" Schema="dbo" store:Type="Tables" />
  329. <EntitySet Name="Employees" EntityType="Self.Employees" Schema="dbo" store:Type="Tables" />
  330. <EntitySet Name="Genders" EntityType="Self.Genders" Schema="dbo" store:Type="Tables" />
  331. <EntitySet Name="Groups" EntityType="Self.Groups" Schema="dbo" store:Type="Tables" />
  332. <EntitySet Name="Kinships" EntityType="Self.Kinships" Schema="dbo" store:Type="Tables" />
  333. <EntitySet Name="Parents" EntityType="Self.Parents" Schema="dbo" store:Type="Tables" />
  334. <EntitySet Name="Photos" EntityType="Self.Photos" Schema="dbo" store:Type="Tables" />
  335. <EntitySet Name="Positions" EntityType="Self.Positions" Schema="dbo" store:Type="Tables" />
  336. <EntitySet Name="Roles" EntityType="Self.Roles" Schema="dbo" store:Type="Tables" />
  337. <EntitySet Name="Sertificates" EntityType="Self.Sertificates" Schema="dbo" store:Type="Tables" />
  338. <EntitySet Name="Types_group" EntityType="Self.Types_group" Schema="dbo" store:Type="Tables" />
  339. <AssociationSet Name="FK__Attendanc__Id_ch__5F7E2DAC" Association="Self.FK__Attendanc__Id_ch__5F7E2DAC">
  340. <End Role="Children" EntitySet="Children" />
  341. <End Role="Attendance" EntitySet="Attendance" />
  342. </AssociationSet>
  343. <AssociationSet Name="FK__Children__Id_gen__5BAD9CC8" Association="Self.FK__Children__Id_gen__5BAD9CC8">
  344. <End Role="Genders" EntitySet="Genders" />
  345. <End Role="Children" EntitySet="Children" />
  346. </AssociationSet>
  347. <AssociationSet Name="FK__Children__Id_gro__5CA1C101" Association="Self.FK__Children__Id_gro__5CA1C101">
  348. <End Role="Groups" EntitySet="Groups" />
  349. <End Role="Children" EntitySet="Children" />
  350. </AssociationSet>
  351. <AssociationSet Name="FK__Distribut__Id_em__39237A9A" Association="Self.FK__Distribut__Id_em__39237A9A">
  352. <End Role="Employees" EntitySet="Employees" />
  353. <End Role="Distributions" EntitySet="Distributions" />
  354. </AssociationSet>
  355. <AssociationSet Name="FK__Distribut__Id_gr__3A179ED3" Association="Self.FK__Distribut__Id_gr__3A179ED3">
  356. <End Role="Groups" EntitySet="Groups" />
  357. <End Role="Distributions" EntitySet="Distributions" />
  358. </AssociationSet>
  359. <AssociationSet Name="FK__Employees__Id_ge__1E6F845E" Association="Self.FK__Employees__Id_ge__1E6F845E">
  360. <End Role="Genders" EntitySet="Genders" />
  361. <End Role="Employees" EntitySet="Employees" />
  362. </AssociationSet>
  363. <AssociationSet Name="FK__Employees__Id_po__1F63A897" Association="Self.FK__Employees__Id_po__1F63A897">
  364. <End Role="Positions" EntitySet="Positions" />
  365. <End Role="Employees" EntitySet="Employees" />
  366. </AssociationSet>
  367. <AssociationSet Name="FK__Employees__Id_ro__2057CCD0" Association="Self.FK__Employees__Id_ro__2057CCD0">
  368. <End Role="Roles" EntitySet="Roles" />
  369. <End Role="Employees" EntitySet="Employees" />
  370. </AssociationSet>
  371. <AssociationSet Name="FK__Groups__Id_type__4E53A1AA" Association="Self.FK__Groups__Id_type__4E53A1AA">
  372. <End Role="Types_group" EntitySet="Types_group" />
  373. <End Role="Groups" EntitySet="Groups" />
  374. </AssociationSet>
  375. <AssociationSet Name="FK__Kinships__Id_chi__6225902D" Association="Self.FK__Kinships__Id_chi__6225902D">
  376. <End Role="Children" EntitySet="Children" />
  377. <End Role="Kinships" EntitySet="Kinships" />
  378. </AssociationSet>
  379. <AssociationSet Name="FK__Parents__Id_gend__6CD828CA" Association="Self.FK__Parents__Id_gend__6CD828CA">
  380. <End Role="Genders" EntitySet="Genders" />
  381. <End Role="Parents" EntitySet="Parents" />
  382. </AssociationSet>
  383. <AssociationSet Name="FK__Photos__Id_emplo__02925FBF" Association="Self.FK__Photos__Id_emplo__02925FBF">
  384. <End Role="Employees" EntitySet="Employees" />
  385. <End Role="Photos" EntitySet="Photos" />
  386. </AssociationSet>
  387. <AssociationSet Name="FK_Kinships_Parents" Association="Self.FK_Kinships_Parents">
  388. <End Role="Parents" EntitySet="Parents" />
  389. <End Role="Kinships" EntitySet="Kinships" />
  390. </AssociationSet>
  391. <AssociationSet Name="FK_Sertificates_Children" Association="Self.FK_Sertificates_Children">
  392. <End Role="Children" EntitySet="Children" />
  393. <End Role="Sertificates" EntitySet="Sertificates" />
  394. </AssociationSet>
  395. </EntityContainer>
  396. </Schema></edmx:StorageModels>
  397. <!-- CSDL content -->
  398. <edmx:ConceptualModels>
  399. <Schema Namespace="ModelKindergartenEntities" 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">
  400. <EntityContainer Name="KindergartenEntities" annotation:LazyLoadingEnabled="true">
  401. <EntitySet Name="Attendance" EntityType="ModelKindergartenEntities.Attendance" />
  402. <EntitySet Name="Children" EntityType="ModelKindergartenEntities.Children" />
  403. <EntitySet Name="Distributions" EntityType="ModelKindergartenEntities.Distributions" />
  404. <EntitySet Name="Employees" EntityType="ModelKindergartenEntities.Employees" />
  405. <EntitySet Name="Genders" EntityType="ModelKindergartenEntities.Genders" />
  406. <EntitySet Name="Groups" EntityType="ModelKindergartenEntities.Groups" />
  407. <EntitySet Name="Kinships" EntityType="ModelKindergartenEntities.Kinships" />
  408. <EntitySet Name="Parents" EntityType="ModelKindergartenEntities.Parents" />
  409. <EntitySet Name="Photos" EntityType="ModelKindergartenEntities.Photos" />
  410. <EntitySet Name="Positions" EntityType="ModelKindergartenEntities.Positions" />
  411. <EntitySet Name="Roles" EntityType="ModelKindergartenEntities.Roles" />
  412. <EntitySet Name="Sertificates" EntityType="ModelKindergartenEntities.Sertificates" />
  413. <EntitySet Name="Types_group" EntityType="ModelKindergartenEntities.Types_group" />
  414. <AssociationSet Name="FK__Attendanc__Id_ch__5F7E2DAC" Association="ModelKindergartenEntities.FK__Attendanc__Id_ch__5F7E2DAC">
  415. <End Role="Children" EntitySet="Children" />
  416. <End Role="Attendance" EntitySet="Attendance" />
  417. </AssociationSet>
  418. <AssociationSet Name="FK__Children__Id_gen__5BAD9CC8" Association="ModelKindergartenEntities.FK__Children__Id_gen__5BAD9CC8">
  419. <End Role="Genders" EntitySet="Genders" />
  420. <End Role="Children" EntitySet="Children" />
  421. </AssociationSet>
  422. <AssociationSet Name="FK__Children__Id_gro__5CA1C101" Association="ModelKindergartenEntities.FK__Children__Id_gro__5CA1C101">
  423. <End Role="Groups" EntitySet="Groups" />
  424. <End Role="Children" EntitySet="Children" />
  425. </AssociationSet>
  426. <AssociationSet Name="FK__Kinships__Id_chi__6225902D" Association="ModelKindergartenEntities.FK__Kinships__Id_chi__6225902D">
  427. <End Role="Children" EntitySet="Children" />
  428. <End Role="Kinships" EntitySet="Kinships" />
  429. </AssociationSet>
  430. <AssociationSet Name="FK_Sertificates_Children" Association="ModelKindergartenEntities.FK_Sertificates_Children">
  431. <End Role="Children" EntitySet="Children" />
  432. <End Role="Sertificates" EntitySet="Sertificates" />
  433. </AssociationSet>
  434. <AssociationSet Name="FK__Distribut__Id_em__39237A9A" Association="ModelKindergartenEntities.FK__Distribut__Id_em__39237A9A">
  435. <End Role="Employees" EntitySet="Employees" />
  436. <End Role="Distributions" EntitySet="Distributions" />
  437. </AssociationSet>
  438. <AssociationSet Name="FK__Distribut__Id_gr__3A179ED3" Association="ModelKindergartenEntities.FK__Distribut__Id_gr__3A179ED3">
  439. <End Role="Groups" EntitySet="Groups" />
  440. <End Role="Distributions" EntitySet="Distributions" />
  441. </AssociationSet>
  442. <AssociationSet Name="FK__Employees__Id_ge__1E6F845E" Association="ModelKindergartenEntities.FK__Employees__Id_ge__1E6F845E">
  443. <End Role="Genders" EntitySet="Genders" />
  444. <End Role="Employees" EntitySet="Employees" />
  445. </AssociationSet>
  446. <AssociationSet Name="FK__Employees__Id_po__1F63A897" Association="ModelKindergartenEntities.FK__Employees__Id_po__1F63A897">
  447. <End Role="Positions" EntitySet="Positions" />
  448. <End Role="Employees" EntitySet="Employees" />
  449. </AssociationSet>
  450. <AssociationSet Name="FK__Employees__Id_ro__2057CCD0" Association="ModelKindergartenEntities.FK__Employees__Id_ro__2057CCD0">
  451. <End Role="Roles" EntitySet="Roles" />
  452. <End Role="Employees" EntitySet="Employees" />
  453. </AssociationSet>
  454. <AssociationSet Name="FK__Photos__Id_emplo__02925FBF" Association="ModelKindergartenEntities.FK__Photos__Id_emplo__02925FBF">
  455. <End Role="Employees" EntitySet="Employees" />
  456. <End Role="Photos" EntitySet="Photos" />
  457. </AssociationSet>
  458. <AssociationSet Name="FK__Parents__Id_gend__6CD828CA" Association="ModelKindergartenEntities.FK__Parents__Id_gend__6CD828CA">
  459. <End Role="Genders" EntitySet="Genders" />
  460. <End Role="Parents" EntitySet="Parents" />
  461. </AssociationSet>
  462. <AssociationSet Name="FK__Groups__Id_type__4E53A1AA" Association="ModelKindergartenEntities.FK__Groups__Id_type__4E53A1AA">
  463. <End Role="Types_group" EntitySet="Types_group" />
  464. <End Role="Groups" EntitySet="Groups" />
  465. </AssociationSet>
  466. <AssociationSet Name="FK_Kinships_Parents" Association="ModelKindergartenEntities.FK_Kinships_Parents">
  467. <End Role="Parents" EntitySet="Parents" />
  468. <End Role="Kinships" EntitySet="Kinships" />
  469. </AssociationSet>
  470. </EntityContainer>
  471. <EntityType Name="Attendance">
  472. <Key>
  473. <PropertyRef Name="Id_visit" />
  474. </Key>
  475. <Property Name="Id_visit" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  476. <Property Name="Date_visit" Type="DateTime" Nullable="false" Precision="0" />
  477. <Property Name="Id_child" Type="Int32" Nullable="false" />
  478. <Property Name="Status_visit" Type="Int32" Nullable="false" />
  479. <NavigationProperty Name="Children" Relationship="ModelKindergartenEntities.FK__Attendanc__Id_ch__5F7E2DAC" FromRole="Attendance" ToRole="Children" />
  480. </EntityType>
  481. <EntityType Name="Children">
  482. <Key>
  483. <PropertyRef Name="Id_child" />
  484. </Key>
  485. <Property Name="Id_child" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  486. <Property Name="Surname" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  487. <Property Name="Names" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  488. <Property Name="Patronymic" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  489. <Property Name="Birthdate" Type="DateTime" Nullable="false" Precision="0" />
  490. <Property Name="Id_gender" Type="Int32" Nullable="false" />
  491. <Property Name="Id_group" Type="Int32" Nullable="false" />
  492. <Property Name="Street" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  493. <Property Name="Building" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  494. <Property Name="Photo" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  495. <NavigationProperty Name="Attendance" Relationship="ModelKindergartenEntities.FK__Attendanc__Id_ch__5F7E2DAC" FromRole="Children" ToRole="Attendance" />
  496. <NavigationProperty Name="Genders" Relationship="ModelKindergartenEntities.FK__Children__Id_gen__5BAD9CC8" FromRole="Children" ToRole="Genders" />
  497. <NavigationProperty Name="Groups" Relationship="ModelKindergartenEntities.FK__Children__Id_gro__5CA1C101" FromRole="Children" ToRole="Groups" />
  498. <NavigationProperty Name="Kinships" Relationship="ModelKindergartenEntities.FK__Kinships__Id_chi__6225902D" FromRole="Children" ToRole="Kinships" />
  499. <NavigationProperty Name="Sertificates" Relationship="ModelKindergartenEntities.FK_Sertificates_Children" FromRole="Children" ToRole="Sertificates" />
  500. </EntityType>
  501. <EntityType Name="Distributions">
  502. <Key>
  503. <PropertyRef Name="Id_distribution" />
  504. </Key>
  505. <Property Name="Id_distribution" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  506. <Property Name="Id_employee" Type="Int32" Nullable="false" />
  507. <Property Name="Id_group" Type="Int32" Nullable="false" />
  508. <NavigationProperty Name="Employees" Relationship="ModelKindergartenEntities.FK__Distribut__Id_em__39237A9A" FromRole="Distributions" ToRole="Employees" />
  509. <NavigationProperty Name="Groups" Relationship="ModelKindergartenEntities.FK__Distribut__Id_gr__3A179ED3" FromRole="Distributions" ToRole="Groups" />
  510. </EntityType>
  511. <EntityType Name="Employees">
  512. <Key>
  513. <PropertyRef Name="Id_employee" />
  514. </Key>
  515. <Property Name="Id_employee" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  516. <Property Name="Surname" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  517. <Property Name="Names" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  518. <Property Name="Patronymic" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  519. <Property Name="Birthdate" Type="DateTime" Nullable="false" Precision="0" />
  520. <Property Name="Id_gender" Type="Int32" Nullable="false" />
  521. <Property Name="Id_position" Type="Int32" Nullable="false" />
  522. <Property Name="Street" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  523. <Property Name="Building" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  524. <Property Name="Phone" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
  525. <Property Name="Login_user" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
  526. <Property Name="Password_user" Type="Int32" Nullable="false" />
  527. <Property Name="Id_role" Type="Int32" Nullable="false" />
  528. <NavigationProperty Name="Distributions" Relationship="ModelKindergartenEntities.FK__Distribut__Id_em__39237A9A" FromRole="Employees" ToRole="Distributions" />
  529. <NavigationProperty Name="Genders" Relationship="ModelKindergartenEntities.FK__Employees__Id_ge__1E6F845E" FromRole="Employees" ToRole="Genders" />
  530. <NavigationProperty Name="Positions" Relationship="ModelKindergartenEntities.FK__Employees__Id_po__1F63A897" FromRole="Employees" ToRole="Positions" />
  531. <NavigationProperty Name="Roles" Relationship="ModelKindergartenEntities.FK__Employees__Id_ro__2057CCD0" FromRole="Employees" ToRole="Roles" />
  532. <NavigationProperty Name="Photos" Relationship="ModelKindergartenEntities.FK__Photos__Id_emplo__02925FBF" FromRole="Employees" ToRole="Photos" />
  533. </EntityType>
  534. <EntityType Name="Genders">
  535. <Key>
  536. <PropertyRef Name="Id_gender" />
  537. </Key>
  538. <Property Name="Id_gender" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  539. <Property Name="Gender" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  540. <NavigationProperty Name="Children" Relationship="ModelKindergartenEntities.FK__Children__Id_gen__5BAD9CC8" FromRole="Genders" ToRole="Children" />
  541. <NavigationProperty Name="Employees" Relationship="ModelKindergartenEntities.FK__Employees__Id_ge__1E6F845E" FromRole="Genders" ToRole="Employees" />
  542. <NavigationProperty Name="Parents" Relationship="ModelKindergartenEntities.FK__Parents__Id_gend__6CD828CA" FromRole="Genders" ToRole="Parents" />
  543. </EntityType>
  544. <EntityType Name="Groups">
  545. <Key>
  546. <PropertyRef Name="Id_group" />
  547. </Key>
  548. <Property Name="Id_group" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  549. <Property Name="Id_type" Type="Int32" Nullable="false" />
  550. <Property Name="Code" Type="Int32" Nullable="false" />
  551. <NavigationProperty Name="Children" Relationship="ModelKindergartenEntities.FK__Children__Id_gro__5CA1C101" FromRole="Groups" ToRole="Children" />
  552. <NavigationProperty Name="Distributions" Relationship="ModelKindergartenEntities.FK__Distribut__Id_gr__3A179ED3" FromRole="Groups" ToRole="Distributions" />
  553. <NavigationProperty Name="Types_group" Relationship="ModelKindergartenEntities.FK__Groups__Id_type__4E53A1AA" FromRole="Groups" ToRole="Types_group" />
  554. </EntityType>
  555. <EntityType Name="Kinships">
  556. <Key>
  557. <PropertyRef Name="Id_kinship" />
  558. </Key>
  559. <Property Name="Id_kinship" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  560. <Property Name="Id_parent" Type="Int32" Nullable="false" />
  561. <Property Name="Id_child" Type="Int32" Nullable="false" />
  562. <NavigationProperty Name="Children" Relationship="ModelKindergartenEntities.FK__Kinships__Id_chi__6225902D" FromRole="Kinships" ToRole="Children" />
  563. <NavigationProperty Name="Parents" Relationship="ModelKindergartenEntities.FK_Kinships_Parents" FromRole="Kinships" ToRole="Parents" />
  564. </EntityType>
  565. <EntityType Name="Parents">
  566. <Key>
  567. <PropertyRef Name="Id_parent" />
  568. </Key>
  569. <Property Name="Id_parent" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  570. <Property Name="Surname" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  571. <Property Name="Names" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  572. <Property Name="Patronymic" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  573. <Property Name="Birthdate" Type="DateTime" Nullable="false" Precision="0" />
  574. <Property Name="Id_gender" Type="Int32" Nullable="false" />
  575. <Property Name="Street" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  576. <Property Name="Building" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  577. <Property Name="Phone" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
  578. <NavigationProperty Name="Genders" Relationship="ModelKindergartenEntities.FK__Parents__Id_gend__6CD828CA" FromRole="Parents" ToRole="Genders" />
  579. <NavigationProperty Name="Kinships" Relationship="ModelKindergartenEntities.FK_Kinships_Parents" FromRole="Parents" ToRole="Kinships" />
  580. </EntityType>
  581. <EntityType Name="Photos">
  582. <Key>
  583. <PropertyRef Name="Id_photo" />
  584. </Key>
  585. <Property Name="Id_photo" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  586. <Property Name="Id_employee" Type="Int32" />
  587. <Property Name="Byte_photo" Type="Binary" MaxLength="Max" FixedLength="false" />
  588. <Property Name="Path_photo" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
  589. <NavigationProperty Name="Employees" Relationship="ModelKindergartenEntities.FK__Photos__Id_emplo__02925FBF" FromRole="Photos" ToRole="Employees" />
  590. </EntityType>
  591. <EntityType Name="Positions">
  592. <Key>
  593. <PropertyRef Name="Id_position" />
  594. </Key>
  595. <Property Name="Id_position" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  596. <Property Name="Position" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  597. <NavigationProperty Name="Employees" Relationship="ModelKindergartenEntities.FK__Employees__Id_po__1F63A897" FromRole="Positions" ToRole="Employees" />
  598. </EntityType>
  599. <EntityType Name="Roles">
  600. <Key>
  601. <PropertyRef Name="Id_role" />
  602. </Key>
  603. <Property Name="Id_role" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  604. <Property Name="Role_name" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
  605. <NavigationProperty Name="Employees" Relationship="ModelKindergartenEntities.FK__Employees__Id_ro__2057CCD0" FromRole="Roles" ToRole="Employees" />
  606. </EntityType>
  607. <EntityType Name="Sertificates">
  608. <Key>
  609. <PropertyRef Name="Id_sertificate" />
  610. </Key>
  611. <Property Name="Id_sertificate" Type="Int32" Nullable="false" />
  612. <Property Name="Series" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  613. <Property Name="Number" Type="Int32" Nullable="false" />
  614. <Property Name="Date_issue" Type="DateTime" Nullable="false" Precision="0" />
  615. <Property Name="Iddued" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  616. <NavigationProperty Name="Children" Relationship="ModelKindergartenEntities.FK_Sertificates_Children" FromRole="Sertificates" ToRole="Children" />
  617. </EntityType>
  618. <EntityType Name="Types_group">
  619. <Key>
  620. <PropertyRef Name="Id_type" />
  621. </Key>
  622. <Property Name="Id_type" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  623. <Property Name="Type_group" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  624. <NavigationProperty Name="Groups" Relationship="ModelKindergartenEntities.FK__Groups__Id_type__4E53A1AA" FromRole="Types_group" ToRole="Groups" />
  625. </EntityType>
  626. <Association Name="FK__Attendanc__Id_ch__5F7E2DAC">
  627. <End Type="ModelKindergartenEntities.Children" Role="Children" Multiplicity="1">
  628. <OnDelete Action="Cascade" />
  629. </End>
  630. <End Type="ModelKindergartenEntities.Attendance" Role="Attendance" Multiplicity="*" />
  631. <ReferentialConstraint>
  632. <Principal Role="Children">
  633. <PropertyRef Name="Id_child" />
  634. </Principal>
  635. <Dependent Role="Attendance">
  636. <PropertyRef Name="Id_child" />
  637. </Dependent>
  638. </ReferentialConstraint>
  639. </Association>
  640. <Association Name="FK__Children__Id_gen__5BAD9CC8">
  641. <End Type="ModelKindergartenEntities.Genders" Role="Genders" Multiplicity="1" />
  642. <End Type="ModelKindergartenEntities.Children" Role="Children" Multiplicity="*" />
  643. <ReferentialConstraint>
  644. <Principal Role="Genders">
  645. <PropertyRef Name="Id_gender" />
  646. </Principal>
  647. <Dependent Role="Children">
  648. <PropertyRef Name="Id_gender" />
  649. </Dependent>
  650. </ReferentialConstraint>
  651. </Association>
  652. <Association Name="FK__Children__Id_gro__5CA1C101">
  653. <End Type="ModelKindergartenEntities.Groups" Role="Groups" Multiplicity="1">
  654. <OnDelete Action="Cascade" />
  655. </End>
  656. <End Type="ModelKindergartenEntities.Children" Role="Children" Multiplicity="*" />
  657. <ReferentialConstraint>
  658. <Principal Role="Groups">
  659. <PropertyRef Name="Id_group" />
  660. </Principal>
  661. <Dependent Role="Children">
  662. <PropertyRef Name="Id_group" />
  663. </Dependent>
  664. </ReferentialConstraint>
  665. </Association>
  666. <Association Name="FK__Kinships__Id_chi__6225902D">
  667. <End Type="ModelKindergartenEntities.Children" Role="Children" Multiplicity="1">
  668. <OnDelete Action="Cascade" />
  669. </End>
  670. <End Type="ModelKindergartenEntities.Kinships" Role="Kinships" Multiplicity="*" />
  671. <ReferentialConstraint>
  672. <Principal Role="Children">
  673. <PropertyRef Name="Id_child" />
  674. </Principal>
  675. <Dependent Role="Kinships">
  676. <PropertyRef Name="Id_child" />
  677. </Dependent>
  678. </ReferentialConstraint>
  679. </Association>
  680. <Association Name="FK_Sertificates_Children">
  681. <End Type="ModelKindergartenEntities.Children" Role="Children" Multiplicity="1">
  682. <OnDelete Action="Cascade" />
  683. </End>
  684. <End Type="ModelKindergartenEntities.Sertificates" Role="Sertificates" Multiplicity="0..1" />
  685. <ReferentialConstraint>
  686. <Principal Role="Children">
  687. <PropertyRef Name="Id_child" />
  688. </Principal>
  689. <Dependent Role="Sertificates">
  690. <PropertyRef Name="Id_sertificate" />
  691. </Dependent>
  692. </ReferentialConstraint>
  693. </Association>
  694. <Association Name="FK__Distribut__Id_em__39237A9A">
  695. <End Type="ModelKindergartenEntities.Employees" Role="Employees" Multiplicity="1">
  696. <OnDelete Action="Cascade" />
  697. </End>
  698. <End Type="ModelKindergartenEntities.Distributions" Role="Distributions" Multiplicity="*" />
  699. <ReferentialConstraint>
  700. <Principal Role="Employees">
  701. <PropertyRef Name="Id_employee" />
  702. </Principal>
  703. <Dependent Role="Distributions">
  704. <PropertyRef Name="Id_employee" />
  705. </Dependent>
  706. </ReferentialConstraint>
  707. </Association>
  708. <Association Name="FK__Distribut__Id_gr__3A179ED3">
  709. <End Type="ModelKindergartenEntities.Groups" Role="Groups" Multiplicity="1">
  710. <OnDelete Action="Cascade" />
  711. </End>
  712. <End Type="ModelKindergartenEntities.Distributions" Role="Distributions" Multiplicity="*" />
  713. <ReferentialConstraint>
  714. <Principal Role="Groups">
  715. <PropertyRef Name="Id_group" />
  716. </Principal>
  717. <Dependent Role="Distributions">
  718. <PropertyRef Name="Id_group" />
  719. </Dependent>
  720. </ReferentialConstraint>
  721. </Association>
  722. <Association Name="FK__Employees__Id_ge__1E6F845E">
  723. <End Type="ModelKindergartenEntities.Genders" Role="Genders" Multiplicity="1" />
  724. <End Type="ModelKindergartenEntities.Employees" Role="Employees" Multiplicity="*" />
  725. <ReferentialConstraint>
  726. <Principal Role="Genders">
  727. <PropertyRef Name="Id_gender" />
  728. </Principal>
  729. <Dependent Role="Employees">
  730. <PropertyRef Name="Id_gender" />
  731. </Dependent>
  732. </ReferentialConstraint>
  733. </Association>
  734. <Association Name="FK__Employees__Id_po__1F63A897">
  735. <End Type="ModelKindergartenEntities.Positions" Role="Positions" Multiplicity="1">
  736. <OnDelete Action="Cascade" />
  737. </End>
  738. <End Type="ModelKindergartenEntities.Employees" Role="Employees" Multiplicity="*" />
  739. <ReferentialConstraint>
  740. <Principal Role="Positions">
  741. <PropertyRef Name="Id_position" />
  742. </Principal>
  743. <Dependent Role="Employees">
  744. <PropertyRef Name="Id_position" />
  745. </Dependent>
  746. </ReferentialConstraint>
  747. </Association>
  748. <Association Name="FK__Employees__Id_ro__2057CCD0">
  749. <End Type="ModelKindergartenEntities.Roles" Role="Roles" Multiplicity="1">
  750. <OnDelete Action="Cascade" />
  751. </End>
  752. <End Type="ModelKindergartenEntities.Employees" Role="Employees" Multiplicity="*" />
  753. <ReferentialConstraint>
  754. <Principal Role="Roles">
  755. <PropertyRef Name="Id_role" />
  756. </Principal>
  757. <Dependent Role="Employees">
  758. <PropertyRef Name="Id_role" />
  759. </Dependent>
  760. </ReferentialConstraint>
  761. </Association>
  762. <Association Name="FK__Photos__Id_emplo__02925FBF">
  763. <End Type="ModelKindergartenEntities.Employees" Role="Employees" Multiplicity="0..1">
  764. <OnDelete Action="Cascade" />
  765. </End>
  766. <End Type="ModelKindergartenEntities.Photos" Role="Photos" Multiplicity="*" />
  767. <ReferentialConstraint>
  768. <Principal Role="Employees">
  769. <PropertyRef Name="Id_employee" />
  770. </Principal>
  771. <Dependent Role="Photos">
  772. <PropertyRef Name="Id_employee" />
  773. </Dependent>
  774. </ReferentialConstraint>
  775. </Association>
  776. <Association Name="FK__Parents__Id_gend__6CD828CA">
  777. <End Type="ModelKindergartenEntities.Genders" Role="Genders" Multiplicity="1" />
  778. <End Type="ModelKindergartenEntities.Parents" Role="Parents" Multiplicity="*" />
  779. <ReferentialConstraint>
  780. <Principal Role="Genders">
  781. <PropertyRef Name="Id_gender" />
  782. </Principal>
  783. <Dependent Role="Parents">
  784. <PropertyRef Name="Id_gender" />
  785. </Dependent>
  786. </ReferentialConstraint>
  787. </Association>
  788. <Association Name="FK__Groups__Id_type__4E53A1AA">
  789. <End Type="ModelKindergartenEntities.Types_group" Role="Types_group" Multiplicity="1">
  790. <OnDelete Action="Cascade" />
  791. </End>
  792. <End Type="ModelKindergartenEntities.Groups" Role="Groups" Multiplicity="*" />
  793. <ReferentialConstraint>
  794. <Principal Role="Types_group">
  795. <PropertyRef Name="Id_type" />
  796. </Principal>
  797. <Dependent Role="Groups">
  798. <PropertyRef Name="Id_type" />
  799. </Dependent>
  800. </ReferentialConstraint>
  801. </Association>
  802. <Association Name="FK_Kinships_Parents">
  803. <End Type="ModelKindergartenEntities.Parents" Role="Parents" Multiplicity="1">
  804. <OnDelete Action="Cascade" />
  805. </End>
  806. <End Type="ModelKindergartenEntities.Kinships" Role="Kinships" Multiplicity="*" />
  807. <ReferentialConstraint>
  808. <Principal Role="Parents">
  809. <PropertyRef Name="Id_parent" />
  810. </Principal>
  811. <Dependent Role="Kinships">
  812. <PropertyRef Name="Id_parent" />
  813. </Dependent>
  814. </ReferentialConstraint>
  815. </Association>
  816. </Schema>
  817. </edmx:ConceptualModels>
  818. <!-- C-S mapping content -->
  819. <edmx:Mappings>
  820. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  821. <EntityContainerMapping StorageEntityContainer="Хранилище ModelKindergartenEntitiesContainer" CdmEntityContainer="KindergartenEntities">
  822. <EntitySetMapping Name="Attendance">
  823. <EntityTypeMapping TypeName="ModelKindergartenEntities.Attendance">
  824. <MappingFragment StoreEntitySet="Attendance">
  825. <ScalarProperty Name="Status_visit" ColumnName="Status_visit" />
  826. <ScalarProperty Name="Id_child" ColumnName="Id_child" />
  827. <ScalarProperty Name="Date_visit" ColumnName="Date_visit" />
  828. <ScalarProperty Name="Id_visit" ColumnName="Id_visit" />
  829. </MappingFragment>
  830. </EntityTypeMapping>
  831. </EntitySetMapping>
  832. <EntitySetMapping Name="Children">
  833. <EntityTypeMapping TypeName="ModelKindergartenEntities.Children">
  834. <MappingFragment StoreEntitySet="Children">
  835. <ScalarProperty Name="Photo" ColumnName="Photo" />
  836. <ScalarProperty Name="Building" ColumnName="Building" />
  837. <ScalarProperty Name="Street" ColumnName="Street" />
  838. <ScalarProperty Name="Id_group" ColumnName="Id_group" />
  839. <ScalarProperty Name="Id_gender" ColumnName="Id_gender" />
  840. <ScalarProperty Name="Birthdate" ColumnName="Birthdate" />
  841. <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
  842. <ScalarProperty Name="Names" ColumnName="Names" />
  843. <ScalarProperty Name="Surname" ColumnName="Surname" />
  844. <ScalarProperty Name="Id_child" ColumnName="Id_child" />
  845. </MappingFragment>
  846. </EntityTypeMapping>
  847. </EntitySetMapping>
  848. <EntitySetMapping Name="Distributions">
  849. <EntityTypeMapping TypeName="ModelKindergartenEntities.Distributions">
  850. <MappingFragment StoreEntitySet="Distributions">
  851. <ScalarProperty Name="Id_group" ColumnName="Id_group" />
  852. <ScalarProperty Name="Id_employee" ColumnName="Id_employee" />
  853. <ScalarProperty Name="Id_distribution" ColumnName="Id_distribution" />
  854. </MappingFragment>
  855. </EntityTypeMapping>
  856. </EntitySetMapping>
  857. <EntitySetMapping Name="Employees">
  858. <EntityTypeMapping TypeName="ModelKindergartenEntities.Employees">
  859. <MappingFragment StoreEntitySet="Employees">
  860. <ScalarProperty Name="Id_role" ColumnName="Id_role" />
  861. <ScalarProperty Name="Password_user" ColumnName="Password_user" />
  862. <ScalarProperty Name="Login_user" ColumnName="Login_user" />
  863. <ScalarProperty Name="Phone" ColumnName="Phone" />
  864. <ScalarProperty Name="Building" ColumnName="Building" />
  865. <ScalarProperty Name="Street" ColumnName="Street" />
  866. <ScalarProperty Name="Id_position" ColumnName="Id_position" />
  867. <ScalarProperty Name="Id_gender" ColumnName="Id_gender" />
  868. <ScalarProperty Name="Birthdate" ColumnName="Birthdate" />
  869. <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
  870. <ScalarProperty Name="Names" ColumnName="Names" />
  871. <ScalarProperty Name="Surname" ColumnName="Surname" />
  872. <ScalarProperty Name="Id_employee" ColumnName="Id_employee" />
  873. </MappingFragment>
  874. </EntityTypeMapping>
  875. </EntitySetMapping>
  876. <EntitySetMapping Name="Genders">
  877. <EntityTypeMapping TypeName="ModelKindergartenEntities.Genders">
  878. <MappingFragment StoreEntitySet="Genders">
  879. <ScalarProperty Name="Gender" ColumnName="Gender" />
  880. <ScalarProperty Name="Id_gender" ColumnName="Id_gender" />
  881. </MappingFragment>
  882. </EntityTypeMapping>
  883. </EntitySetMapping>
  884. <EntitySetMapping Name="Groups">
  885. <EntityTypeMapping TypeName="ModelKindergartenEntities.Groups">
  886. <MappingFragment StoreEntitySet="Groups">
  887. <ScalarProperty Name="Code" ColumnName="Code" />
  888. <ScalarProperty Name="Id_type" ColumnName="Id_type" />
  889. <ScalarProperty Name="Id_group" ColumnName="Id_group" />
  890. </MappingFragment>
  891. </EntityTypeMapping>
  892. </EntitySetMapping>
  893. <EntitySetMapping Name="Kinships">
  894. <EntityTypeMapping TypeName="ModelKindergartenEntities.Kinships">
  895. <MappingFragment StoreEntitySet="Kinships">
  896. <ScalarProperty Name="Id_child" ColumnName="Id_child" />
  897. <ScalarProperty Name="Id_parent" ColumnName="Id_parent" />
  898. <ScalarProperty Name="Id_kinship" ColumnName="Id_kinship" />
  899. </MappingFragment>
  900. </EntityTypeMapping>
  901. </EntitySetMapping>
  902. <EntitySetMapping Name="Parents">
  903. <EntityTypeMapping TypeName="ModelKindergartenEntities.Parents">
  904. <MappingFragment StoreEntitySet="Parents">
  905. <ScalarProperty Name="Phone" ColumnName="Phone" />
  906. <ScalarProperty Name="Building" ColumnName="Building" />
  907. <ScalarProperty Name="Street" ColumnName="Street" />
  908. <ScalarProperty Name="Id_gender" ColumnName="Id_gender" />
  909. <ScalarProperty Name="Birthdate" ColumnName="Birthdate" />
  910. <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
  911. <ScalarProperty Name="Names" ColumnName="Names" />
  912. <ScalarProperty Name="Surname" ColumnName="Surname" />
  913. <ScalarProperty Name="Id_parent" ColumnName="Id_parent" />
  914. </MappingFragment>
  915. </EntityTypeMapping>
  916. </EntitySetMapping>
  917. <EntitySetMapping Name="Photos">
  918. <EntityTypeMapping TypeName="ModelKindergartenEntities.Photos">
  919. <MappingFragment StoreEntitySet="Photos">
  920. <ScalarProperty Name="Path_photo" ColumnName="Path_photo" />
  921. <ScalarProperty Name="Byte_photo" ColumnName="Byte_photo" />
  922. <ScalarProperty Name="Id_employee" ColumnName="Id_employee" />
  923. <ScalarProperty Name="Id_photo" ColumnName="Id_photo" />
  924. </MappingFragment>
  925. </EntityTypeMapping>
  926. </EntitySetMapping>
  927. <EntitySetMapping Name="Positions">
  928. <EntityTypeMapping TypeName="ModelKindergartenEntities.Positions">
  929. <MappingFragment StoreEntitySet="Positions">
  930. <ScalarProperty Name="Position" ColumnName="Position" />
  931. <ScalarProperty Name="Id_position" ColumnName="Id_position" />
  932. </MappingFragment>
  933. </EntityTypeMapping>
  934. </EntitySetMapping>
  935. <EntitySetMapping Name="Roles">
  936. <EntityTypeMapping TypeName="ModelKindergartenEntities.Roles">
  937. <MappingFragment StoreEntitySet="Roles">
  938. <ScalarProperty Name="Role_name" ColumnName="Role_name" />
  939. <ScalarProperty Name="Id_role" ColumnName="Id_role" />
  940. </MappingFragment>
  941. </EntityTypeMapping>
  942. </EntitySetMapping>
  943. <EntitySetMapping Name="Sertificates">
  944. <EntityTypeMapping TypeName="ModelKindergartenEntities.Sertificates">
  945. <MappingFragment StoreEntitySet="Sertificates">
  946. <ScalarProperty Name="Iddued" ColumnName="Iddued" />
  947. <ScalarProperty Name="Date_issue" ColumnName="Date_issue" />
  948. <ScalarProperty Name="Number" ColumnName="Number" />
  949. <ScalarProperty Name="Series" ColumnName="Series" />
  950. <ScalarProperty Name="Id_sertificate" ColumnName="Id_sertificate" />
  951. </MappingFragment>
  952. </EntityTypeMapping>
  953. </EntitySetMapping>
  954. <EntitySetMapping Name="Types_group">
  955. <EntityTypeMapping TypeName="ModelKindergartenEntities.Types_group">
  956. <MappingFragment StoreEntitySet="Types_group">
  957. <ScalarProperty Name="Type_group" ColumnName="Type_group" />
  958. <ScalarProperty Name="Id_type" ColumnName="Id_type" />
  959. </MappingFragment>
  960. </EntityTypeMapping>
  961. </EntitySetMapping>
  962. </EntityContainerMapping>
  963. </Mapping>
  964. </edmx:Mappings>
  965. </edmx:Runtime>
  966. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  967. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  968. <Connection>
  969. <DesignerInfoPropertySet>
  970. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  971. </DesignerInfoPropertySet>
  972. </Connection>
  973. <Options>
  974. <DesignerInfoPropertySet>
  975. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  976. <DesignerProperty Name="EnablePluralization" Value="false" />
  977. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  978. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  979. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  980. </DesignerInfoPropertySet>
  981. </Options>
  982. <!-- Diagram content (shape and connector positions) -->
  983. <Diagrams></Diagrams>
  984. </Designer>
  985. </edmx:Edmx>