Base.edmx 38 KB

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