GushchinaDataSet.edmx 37 KB

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