Model1.csdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="KadroviYshotModel" 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">
  3. <EntityType Name="Childrens">
  4. <Key>
  5. <PropertyRef Name="IdChildren" />
  6. </Key>
  7. <Property Name="IdChildren" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  8. <Property Name="IdEmployee" Type="Int32" />
  9. <Property Name="Type" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  10. <Property Name="FullName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  11. <Property Name="DateBirth" Type="DateTime" Precision="0" />
  12. <NavigationProperty Name="Employees" Relationship="Self.FK_Childrens_Employees" FromRole="Childrens" ToRole="Employees" />
  13. </EntityType>
  14. <EntityType Name="Dolzhnosts">
  15. <Key>
  16. <PropertyRef Name="IdDolzhnost" />
  17. </Key>
  18. <Property Name="IdDolzhnost" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  19. <Property Name="NameDolzhnost" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  20. <Property Name="Salary" Type="Decimal" Precision="19" Scale="4" />
  21. <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_Dolzhnosts" FromRole="Dolzhnosts" ToRole="Employees" />
  22. <NavigationProperty Name="OrdersEmployment" Relationship="Self.FK_OrdersEmployment_Dolzhnosts" FromRole="Dolzhnosts" ToRole="OrdersEmployment" />
  23. </EntityType>
  24. <EntityType Name="Educations">
  25. <Key>
  26. <PropertyRef Name="IdEducation" />
  27. </Key>
  28. <Property Name="IdEducation" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  29. <Property Name="Establishment" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  30. <Property Name="YearEnding" Type="Int32" />
  31. <Property Name="Qualification" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  32. <Property Name="Speciality" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  33. <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_Educations" FromRole="Educations" ToRole="Employees" />
  34. </EntityType>
  35. <EntityType Name="Employees">
  36. <Key>
  37. <PropertyRef Name="IdEmployee" />
  38. </Key>
  39. <Property Name="IdEmployee" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  40. <Property Name="Surname" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  41. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  42. <Property Name="Otchestvo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  43. <Property Name="DateBirth" Type="DateTime" Precision="0" />
  44. <Property Name="IdDolzhnost" Type="Int32" />
  45. <Property Name="IdFamilyStatus" Type="Int32" />
  46. <Property Name="AddressResidence" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  47. <Property Name="Telephone" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  48. <Property Name="DateReceipt" Type="DateTime" Precision="0" />
  49. <Property Name="IdEducation" Type="Int32" />
  50. <Property Name="IdChildren" Type="Int32" />
  51. <Property Name="IdMilitaryDuty" Type="Int32" />
  52. <NavigationProperty Name="Childrens" Relationship="Self.FK_Childrens_Employees" FromRole="Employees" ToRole="Childrens" />
  53. <NavigationProperty Name="Dolzhnosts" Relationship="Self.FK_Employees_Dolzhnosts" FromRole="Employees" ToRole="Dolzhnosts" />
  54. <NavigationProperty Name="Educations" Relationship="Self.FK_Employees_Educations" FromRole="Employees" ToRole="Educations" />
  55. <NavigationProperty Name="FamilyStatuses" Relationship="Self.FK_Employees_FamilyStatuses" FromRole="Employees" ToRole="FamilyStatuses" />
  56. <NavigationProperty Name="MilitaryDuties" Relationship="Self.FK_Employees_MilitaryDuties" FromRole="Employees" ToRole="MilitaryDuties" />
  57. <NavigationProperty Name="OrdersDismissal" Relationship="Self.FK_OrdersDismissal_Employees" FromRole="Employees" ToRole="OrdersDismissal" />
  58. <NavigationProperty Name="OrdersEmployment" Relationship="Self.FK_OrdersEmployment_Employees1" FromRole="Employees" ToRole="OrdersEmployment" />
  59. </EntityType>
  60. <EntityType Name="FamilyStatuses">
  61. <Key>
  62. <PropertyRef Name="IdFamilyStatus" />
  63. </Key>
  64. <Property Name="IdFamilyStatus" Type="Int32" Nullable="false" />
  65. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  66. <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_FamilyStatuses" FromRole="FamilyStatuses" ToRole="Employees" />
  67. </EntityType>
  68. <EntityType Name="MilitaryDuties">
  69. <Key>
  70. <PropertyRef Name="IdMilitaryDuty" />
  71. </Key>
  72. <Property Name="IdMilitaryDuty" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  73. <Property Name="MilitaryIdNumber" Type="Int32" />
  74. <Property Name="AccountingGroup" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  75. <Property Name="MilitaryRank" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  76. <Property Name="Profile" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  77. <Property Name="ReserveRank" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  78. <Property Name="DateReceipt" Type="DateTime" Precision="0" />
  79. <Property Name="DateWithdrawal" Type="DateTime" Precision="0" />
  80. <Property Name="Base" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  81. <Property Name="SpecialAccount" Type="Boolean" />
  82. <Property Name="MilitaryRegistrationNumber" Type="Int32" />
  83. <Property Name="MilitaryPositionCode" Type="Int32" />
  84. <NavigationProperty Name="Employees" Relationship="Self.FK_Employees_MilitaryDuties" FromRole="MilitaryDuties" ToRole="Employees" />
  85. </EntityType>
  86. <EntityType Name="OrdersDismissal">
  87. <Key>
  88. <PropertyRef Name="IdDismissal" />
  89. </Key>
  90. <Property Name="IdDismissal" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  91. <Property Name="IdEmployee" Type="Int32" />
  92. <Property Name="DateApproval" Type="DateTime" Precision="0" />
  93. <Property Name="Grounds" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  94. <NavigationProperty Name="Employees" Relationship="Self.FK_OrdersDismissal_Employees" FromRole="OrdersDismissal" ToRole="Employees" />
  95. </EntityType>
  96. <EntityType Name="OrdersEmployment">
  97. <Key>
  98. <PropertyRef Name="IdAcceptanceWork" />
  99. </Key>
  100. <Property Name="IdAcceptanceWork" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  101. <Property Name="IdEmployee" Type="Int32" />
  102. <Property Name="IdStaffingTable" Type="Int32" />
  103. <Property Name="IdDolzhnost" Type="Int32" />
  104. <Property Name="DateApproval" Type="DateTime" Precision="0" />
  105. <NavigationProperty Name="Dolzhnosts" Relationship="Self.FK_OrdersEmployment_Dolzhnosts" FromRole="OrdersEmployment" ToRole="Dolzhnosts" />
  106. <NavigationProperty Name="Employees" Relationship="Self.FK_OrdersEmployment_Employees1" FromRole="OrdersEmployment" ToRole="Employees" />
  107. <NavigationProperty Name="StaffingTables" Relationship="Self.FK_OrdersEmployment_StaffingTables" FromRole="OrdersEmployment" ToRole="StaffingTables" />
  108. </EntityType>
  109. <EntityType Name="Roles">
  110. <Key>
  111. <PropertyRef Name="IdRole" />
  112. </Key>
  113. <Property Name="IdRole" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  114. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  115. <NavigationProperty Name="Users" Relationship="Self.FK_Users_Roles" FromRole="Roles" ToRole="Users" />
  116. </EntityType>
  117. <EntityType Name="StaffingTables">
  118. <Key>
  119. <PropertyRef Name="IdStaffingTable" />
  120. </Key>
  121. <Property Name="IdStaffingTable" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  122. <Property Name="IdEmployee" Type="Int32" />
  123. <Property Name="IdSubdivision" Type="Int32" />
  124. <NavigationProperty Name="OrdersEmployment" Relationship="Self.FK_OrdersEmployment_StaffingTables" FromRole="StaffingTables" ToRole="OrdersEmployment" />
  125. <NavigationProperty Name="Subdivisions" Relationship="Self.FK_StaffingTables_Subdivisions" FromRole="StaffingTables" ToRole="Subdivisions" />
  126. </EntityType>
  127. <EntityType Name="Subdivisions">
  128. <Key>
  129. <PropertyRef Name="IdSubdivision" />
  130. </Key>
  131. <Property Name="IdSubdivision" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  132. <Property Name="NameSubdivision" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  133. <NavigationProperty Name="StaffingTables" Relationship="Self.FK_StaffingTables_Subdivisions" FromRole="Subdivisions" ToRole="StaffingTables" />
  134. </EntityType>
  135. <EntityType Name="sysdiagrams">
  136. <Key>
  137. <PropertyRef Name="diagram_id" />
  138. </Key>
  139. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  140. <Property Name="principal_id" Type="Int32" Nullable="false" />
  141. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  142. <Property Name="version" Type="Int32" />
  143. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  144. </EntityType>
  145. <EntityType Name="Users">
  146. <Key>
  147. <PropertyRef Name="IdUser" />
  148. </Key>
  149. <Property Name="IdUser" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  150. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  151. <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  152. <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  153. <Property Name="IdRole" Type="Int32" />
  154. <NavigationProperty Name="Roles" Relationship="Self.FK_Users_Roles" FromRole="Users" ToRole="Roles" />
  155. </EntityType>
  156. <Association Name="FK_Childrens_Employees">
  157. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  158. <End Role="Childrens" Type="Self.Childrens" Multiplicity="*" />
  159. <ReferentialConstraint>
  160. <Principal Role="Employees">
  161. <PropertyRef Name="IdEmployee" />
  162. </Principal>
  163. <Dependent Role="Childrens">
  164. <PropertyRef Name="IdEmployee" />
  165. </Dependent>
  166. </ReferentialConstraint>
  167. </Association>
  168. <Association Name="FK_Employees_Dolzhnosts">
  169. <End Role="Dolzhnosts" Type="Self.Dolzhnosts" Multiplicity="0..1" />
  170. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  171. <ReferentialConstraint>
  172. <Principal Role="Dolzhnosts">
  173. <PropertyRef Name="IdDolzhnost" />
  174. </Principal>
  175. <Dependent Role="Employees">
  176. <PropertyRef Name="IdDolzhnost" />
  177. </Dependent>
  178. </ReferentialConstraint>
  179. </Association>
  180. <Association Name="FK_OrdersEmployment_Dolzhnosts">
  181. <End Role="Dolzhnosts" Type="Self.Dolzhnosts" Multiplicity="0..1" />
  182. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  183. <ReferentialConstraint>
  184. <Principal Role="Dolzhnosts">
  185. <PropertyRef Name="IdDolzhnost" />
  186. </Principal>
  187. <Dependent Role="OrdersEmployment">
  188. <PropertyRef Name="IdDolzhnost" />
  189. </Dependent>
  190. </ReferentialConstraint>
  191. </Association>
  192. <Association Name="FK_Employees_Educations">
  193. <End Role="Educations" Type="Self.Educations" Multiplicity="0..1" />
  194. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  195. <ReferentialConstraint>
  196. <Principal Role="Educations">
  197. <PropertyRef Name="IdEducation" />
  198. </Principal>
  199. <Dependent Role="Employees">
  200. <PropertyRef Name="IdEducation" />
  201. </Dependent>
  202. </ReferentialConstraint>
  203. </Association>
  204. <Association Name="FK_Employees_FamilyStatuses">
  205. <End Role="FamilyStatuses" Type="Self.FamilyStatuses" Multiplicity="0..1" />
  206. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  207. <ReferentialConstraint>
  208. <Principal Role="FamilyStatuses">
  209. <PropertyRef Name="IdFamilyStatus" />
  210. </Principal>
  211. <Dependent Role="Employees">
  212. <PropertyRef Name="IdFamilyStatus" />
  213. </Dependent>
  214. </ReferentialConstraint>
  215. </Association>
  216. <Association Name="FK_Employees_MilitaryDuties">
  217. <End Role="MilitaryDuties" Type="Self.MilitaryDuties" Multiplicity="0..1" />
  218. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  219. <ReferentialConstraint>
  220. <Principal Role="MilitaryDuties">
  221. <PropertyRef Name="IdMilitaryDuty" />
  222. </Principal>
  223. <Dependent Role="Employees">
  224. <PropertyRef Name="IdMilitaryDuty" />
  225. </Dependent>
  226. </ReferentialConstraint>
  227. </Association>
  228. <Association Name="FK_OrdersDismissal_Employees">
  229. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  230. <End Role="OrdersDismissal" Type="Self.OrdersDismissal" Multiplicity="*" />
  231. <ReferentialConstraint>
  232. <Principal Role="Employees">
  233. <PropertyRef Name="IdEmployee" />
  234. </Principal>
  235. <Dependent Role="OrdersDismissal">
  236. <PropertyRef Name="IdEmployee" />
  237. </Dependent>
  238. </ReferentialConstraint>
  239. </Association>
  240. <Association Name="FK_OrdersEmployment_Employees1">
  241. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  242. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  243. <ReferentialConstraint>
  244. <Principal Role="Employees">
  245. <PropertyRef Name="IdEmployee" />
  246. </Principal>
  247. <Dependent Role="OrdersEmployment">
  248. <PropertyRef Name="IdEmployee" />
  249. </Dependent>
  250. </ReferentialConstraint>
  251. </Association>
  252. <Association Name="FK_OrdersEmployment_StaffingTables">
  253. <End Role="StaffingTables" Type="Self.StaffingTables" Multiplicity="0..1" />
  254. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  255. <ReferentialConstraint>
  256. <Principal Role="StaffingTables">
  257. <PropertyRef Name="IdStaffingTable" />
  258. </Principal>
  259. <Dependent Role="OrdersEmployment">
  260. <PropertyRef Name="IdStaffingTable" />
  261. </Dependent>
  262. </ReferentialConstraint>
  263. </Association>
  264. <Association Name="FK_Users_Roles">
  265. <End Role="Roles" Type="Self.Roles" Multiplicity="0..1" />
  266. <End Role="Users" Type="Self.Users" Multiplicity="*" />
  267. <ReferentialConstraint>
  268. <Principal Role="Roles">
  269. <PropertyRef Name="IdRole" />
  270. </Principal>
  271. <Dependent Role="Users">
  272. <PropertyRef Name="IdRole" />
  273. </Dependent>
  274. </ReferentialConstraint>
  275. </Association>
  276. <Association Name="FK_StaffingTables_Subdivisions">
  277. <End Role="Subdivisions" Type="Self.Subdivisions" Multiplicity="0..1" />
  278. <End Role="StaffingTables" Type="Self.StaffingTables" Multiplicity="*" />
  279. <ReferentialConstraint>
  280. <Principal Role="Subdivisions">
  281. <PropertyRef Name="IdSubdivision" />
  282. </Principal>
  283. <Dependent Role="StaffingTables">
  284. <PropertyRef Name="IdSubdivision" />
  285. </Dependent>
  286. </ReferentialConstraint>
  287. </Association>
  288. <EntityContainer Name="KadroviYshotEntities" annotation:LazyLoadingEnabled="true">
  289. <EntitySet Name="Childrens" EntityType="Self.Childrens" />
  290. <EntitySet Name="Dolzhnosts" EntityType="Self.Dolzhnosts" />
  291. <EntitySet Name="Educations" EntityType="Self.Educations" />
  292. <EntitySet Name="Employees" EntityType="Self.Employees" />
  293. <EntitySet Name="FamilyStatuses" EntityType="Self.FamilyStatuses" />
  294. <EntitySet Name="MilitaryDuties" EntityType="Self.MilitaryDuties" />
  295. <EntitySet Name="OrdersDismissal" EntityType="Self.OrdersDismissal" />
  296. <EntitySet Name="OrdersEmployment" EntityType="Self.OrdersEmployment" />
  297. <EntitySet Name="Roles" EntityType="Self.Roles" />
  298. <EntitySet Name="StaffingTables" EntityType="Self.StaffingTables" />
  299. <EntitySet Name="Subdivisions" EntityType="Self.Subdivisions" />
  300. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  301. <EntitySet Name="Users" EntityType="Self.Users" />
  302. <AssociationSet Name="FK_Childrens_Employees" Association="Self.FK_Childrens_Employees">
  303. <End Role="Employees" EntitySet="Employees" />
  304. <End Role="Childrens" EntitySet="Childrens" />
  305. </AssociationSet>
  306. <AssociationSet Name="FK_Employees_Dolzhnosts" Association="Self.FK_Employees_Dolzhnosts">
  307. <End Role="Dolzhnosts" EntitySet="Dolzhnosts" />
  308. <End Role="Employees" EntitySet="Employees" />
  309. </AssociationSet>
  310. <AssociationSet Name="FK_OrdersEmployment_Dolzhnosts" Association="Self.FK_OrdersEmployment_Dolzhnosts">
  311. <End Role="Dolzhnosts" EntitySet="Dolzhnosts" />
  312. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  313. </AssociationSet>
  314. <AssociationSet Name="FK_Employees_Educations" Association="Self.FK_Employees_Educations">
  315. <End Role="Educations" EntitySet="Educations" />
  316. <End Role="Employees" EntitySet="Employees" />
  317. </AssociationSet>
  318. <AssociationSet Name="FK_Employees_FamilyStatuses" Association="Self.FK_Employees_FamilyStatuses">
  319. <End Role="FamilyStatuses" EntitySet="FamilyStatuses" />
  320. <End Role="Employees" EntitySet="Employees" />
  321. </AssociationSet>
  322. <AssociationSet Name="FK_Employees_MilitaryDuties" Association="Self.FK_Employees_MilitaryDuties">
  323. <End Role="MilitaryDuties" EntitySet="MilitaryDuties" />
  324. <End Role="Employees" EntitySet="Employees" />
  325. </AssociationSet>
  326. <AssociationSet Name="FK_OrdersDismissal_Employees" Association="Self.FK_OrdersDismissal_Employees">
  327. <End Role="Employees" EntitySet="Employees" />
  328. <End Role="OrdersDismissal" EntitySet="OrdersDismissal" />
  329. </AssociationSet>
  330. <AssociationSet Name="FK_OrdersEmployment_Employees1" Association="Self.FK_OrdersEmployment_Employees1">
  331. <End Role="Employees" EntitySet="Employees" />
  332. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  333. </AssociationSet>
  334. <AssociationSet Name="FK_OrdersEmployment_StaffingTables" Association="Self.FK_OrdersEmployment_StaffingTables">
  335. <End Role="StaffingTables" EntitySet="StaffingTables" />
  336. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  337. </AssociationSet>
  338. <AssociationSet Name="FK_Users_Roles" Association="Self.FK_Users_Roles">
  339. <End Role="Roles" EntitySet="Roles" />
  340. <End Role="Users" EntitySet="Users" />
  341. </AssociationSet>
  342. <AssociationSet Name="FK_StaffingTables_Subdivisions" Association="Self.FK_StaffingTables_Subdivisions">
  343. <End Role="Subdivisions" EntitySet="Subdivisions" />
  344. <End Role="StaffingTables" EntitySet="StaffingTables" />
  345. </AssociationSet>
  346. <FunctionImport Name="sp_alterdiagram">
  347. <Parameter Name="diagramname" Mode="In" Type="String" />
  348. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  349. <Parameter Name="version" Mode="In" Type="Int32" />
  350. <Parameter Name="definition" Mode="In" Type="Binary" />
  351. </FunctionImport>
  352. <FunctionImport Name="sp_creatediagram">
  353. <Parameter Name="diagramname" Mode="In" Type="String" />
  354. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  355. <Parameter Name="version" Mode="In" Type="Int32" />
  356. <Parameter Name="definition" Mode="In" Type="Binary" />
  357. </FunctionImport>
  358. <FunctionImport Name="sp_dropdiagram">
  359. <Parameter Name="diagramname" Mode="In" Type="String" />
  360. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  361. </FunctionImport>
  362. <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(KadroviYshotModel.sp_helpdiagramdefinition_Result)">
  363. <Parameter Name="diagramname" Mode="In" Type="String" />
  364. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  365. </FunctionImport>
  366. <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(KadroviYshotModel.sp_helpdiagrams_Result)">
  367. <Parameter Name="diagramname" Mode="In" Type="String" />
  368. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  369. </FunctionImport>
  370. <FunctionImport Name="sp_renamediagram">
  371. <Parameter Name="diagramname" Mode="In" Type="String" />
  372. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  373. <Parameter Name="new_diagramname" Mode="In" Type="String" />
  374. </FunctionImport>
  375. <FunctionImport Name="sp_upgraddiagrams" />
  376. </EntityContainer>
  377. <ComplexType Name="sp_helpdiagramdefinition_Result">
  378. <Property Type="Int32" Name="version" Nullable="true" />
  379. <Property Type="Binary" Name="definition" Nullable="true" />
  380. </ComplexType>
  381. <ComplexType Name="sp_helpdiagrams_Result">
  382. <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
  383. <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
  384. <Property Type="Int32" Name="ID" Nullable="false" />
  385. <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
  386. <Property Type="Int32" Name="OwnerID" Nullable="false" />
  387. </ComplexType>
  388. </Schema>