Model.edmx 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  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="Хранилище Model" 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="Contracts">
  9. <Key>
  10. <PropertyRef Name="Код договора" />
  11. </Key>
  12. <Property Name="Код договора" Type="int" Nullable="false" />
  13. <Property Name="Номер договора" Type="int" />
  14. <Property Name="Код заказчика" Type="int" />
  15. <Property Name="Дата оформления договора" Type="date" />
  16. <Property Name="Код поставщика" Type="int" />
  17. </EntityType>
  18. <EntityType Name="Customer">
  19. <Key>
  20. <PropertyRef Name="Код заказчика" />
  21. </Key>
  22. <Property Name="Код заказчика" Type="int" Nullable="false" />
  23. <Property Name="Название заказчика" Type="nvarchar" MaxLength="4000" />
  24. <Property Name="Телефон" Type="nvarchar" MaxLength="30" />
  25. </EntityType>
  26. <EntityType Name="Flowers">
  27. <Key>
  28. <PropertyRef Name="Код цветка" />
  29. </Key>
  30. <Property Name="Код цветка" Type="int" Nullable="false" />
  31. <Property Name="Название цветка" Type="nvarchar" MaxLength="4000" />
  32. <Property Name="Цена рассады (руб.)" Type="money" />
  33. </EntityType>
  34. <!--Ошибки, обнаруженные при создании:
  35. предупреждение 6013: Первичный ключ в таблице или представлении "ГЕС№5.dbo.Orders" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  36. <EntityType Name="Orders">
  37. <Property Name="Номер заказчика" Type="int" />
  38. <Property Name="Код цветка" Type="int" />
  39. <Property Name="Рассады (кол-во цветков)" Type="int" />
  40. </EntityType>-->
  41. <EntityType Name="Postav">
  42. <Key>
  43. <PropertyRef Name="Код поставщика" />
  44. </Key>
  45. <Property Name="Код поставщика" Type="int" Nullable="false" />
  46. <Property Name="Название поставщика" Type="nvarchar" MaxLength="4000" />
  47. <Property Name="Адрес поставщика" Type="nvarchar" MaxLength="4000" />
  48. </EntityType>
  49. <!--Ошибки, обнаруженные при создании:
  50. предупреждение 6002: В таблице или представлении "ГЕС№5.dbo.Postav_Flowers" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
  51. <EntityType Name="Postav_Flowers">
  52. <Key>
  53. <PropertyRef Name="Код поставщика" />
  54. </Key>
  55. <Property Name="Код цветка" Type="int" />
  56. <Property Name="Название цветка" Type="nvarchar" MaxLength="4000" />
  57. <Property Name="Код поставщика" Type="int" Nullable="false" />
  58. <Property Name="Название поставщика" Type="nvarchar" MaxLength="4000" />
  59. </EntityType>
  60. <EntityType Name="sysdiagrams">
  61. <Key>
  62. <PropertyRef Name="diagram_id" />
  63. </Key>
  64. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  65. <Property Name="principal_id" Type="int" Nullable="false" />
  66. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  67. <Property Name="version" Type="int" />
  68. <Property Name="definition" Type="varbinary(max)" />
  69. </EntityType>
  70. <Association Name="FK_Contracts_Customer">
  71. <End Role="Customer" Type="Self.Customer" Multiplicity="0..1" />
  72. <End Role="Contracts" Type="Self.Contracts" Multiplicity="*" />
  73. <ReferentialConstraint>
  74. <Principal Role="Customer">
  75. <PropertyRef Name="Код заказчика" />
  76. </Principal>
  77. <Dependent Role="Contracts">
  78. <PropertyRef Name="Код заказчика" />
  79. </Dependent>
  80. </ReferentialConstraint>
  81. </Association>
  82. <Association Name="FK_Contracts_Postav">
  83. <End Role="Postav" Type="Self.Postav" Multiplicity="0..1" />
  84. <End Role="Contracts" Type="Self.Contracts" Multiplicity="*" />
  85. <ReferentialConstraint>
  86. <Principal Role="Postav">
  87. <PropertyRef Name="Код поставщика" />
  88. </Principal>
  89. <Dependent Role="Contracts">
  90. <PropertyRef Name="Код поставщика" />
  91. </Dependent>
  92. </ReferentialConstraint>
  93. </Association>
  94. <!--Ошибки, обнаруженные при создании:
  95. ошибка 6004: Невозможно найти таблицу "ГЕС№5.dbo.Orders", на которую ссылается связь.
  96. <Association Name="FK_Orders_Flowers" />-->
  97. <Association Name="FK_Postav_Flowers_Flowers">
  98. <End Role="Flowers" Type="Self.Flowers" Multiplicity="0..1" />
  99. <End Role="Postav_Flowers" Type="Self.Postav_Flowers" Multiplicity="*" />
  100. <ReferentialConstraint>
  101. <Principal Role="Flowers">
  102. <PropertyRef Name="Код цветка" />
  103. </Principal>
  104. <Dependent Role="Postav_Flowers">
  105. <PropertyRef Name="Код цветка" />
  106. </Dependent>
  107. </ReferentialConstraint>
  108. </Association>
  109. <Association Name="FK_Postav_Flowers_Postav">
  110. <End Role="Postav" Type="Self.Postav" Multiplicity="1" />
  111. <End Role="Postav_Flowers" Type="Self.Postav_Flowers" Multiplicity="0..1" />
  112. <ReferentialConstraint>
  113. <Principal Role="Postav">
  114. <PropertyRef Name="Код поставщика" />
  115. </Principal>
  116. <Dependent Role="Postav_Flowers">
  117. <PropertyRef Name="Код поставщика" />
  118. </Dependent>
  119. </ReferentialConstraint>
  120. </Association>
  121. <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
  122. <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  123. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  124. <Parameter Name="owner_id" Type="int" Mode="In" />
  125. <Parameter Name="version" Type="int" Mode="In" />
  126. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  127. </Function>
  128. <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  129. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  130. <Parameter Name="owner_id" Type="int" Mode="In" />
  131. <Parameter Name="version" Type="int" Mode="In" />
  132. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  133. </Function>
  134. <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  135. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  136. <Parameter Name="owner_id" Type="int" Mode="In" />
  137. </Function>
  138. <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  139. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  140. <Parameter Name="owner_id" Type="int" Mode="In" />
  141. </Function>
  142. <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  143. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  144. <Parameter Name="owner_id" Type="int" Mode="In" />
  145. </Function>
  146. <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  147. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  148. <Parameter Name="owner_id" Type="int" Mode="In" />
  149. <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
  150. </Function>
  151. <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  152. <EntityContainer Name="Хранилище ModelContainer">
  153. <EntitySet Name="Contracts" EntityType="Self.Contracts" Schema="dbo" store:Type="Tables" />
  154. <EntitySet Name="Customer" EntityType="Self.Customer" Schema="dbo" store:Type="Tables" />
  155. <EntitySet Name="Flowers" EntityType="Self.Flowers" Schema="dbo" store:Type="Tables" />
  156. <EntitySet Name="Postav" EntityType="Self.Postav" Schema="dbo" store:Type="Tables" />
  157. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  158. <EntitySet Name="Postav_Flowers" EntityType="Self.Postav_Flowers" store:Type="Tables" store:Schema="dbo">
  159. <DefiningQuery>SELECT
  160. [Postav_Flowers].[Код цветка] AS [Код цветка],
  161. [Postav_Flowers].[Название цветка] AS [Название цветка],
  162. [Postav_Flowers].[Код поставщика] AS [Код поставщика],
  163. [Postav_Flowers].[Название поставщика] AS [Название поставщика]
  164. FROM [dbo].[Postav_Flowers] AS [Postav_Flowers]</DefiningQuery>
  165. </EntitySet>
  166. <AssociationSet Name="FK_Contracts_Customer" Association="Self.FK_Contracts_Customer">
  167. <End Role="Customer" EntitySet="Customer" />
  168. <End Role="Contracts" EntitySet="Contracts" />
  169. </AssociationSet>
  170. <AssociationSet Name="FK_Contracts_Postav" Association="Self.FK_Contracts_Postav">
  171. <End Role="Postav" EntitySet="Postav" />
  172. <End Role="Contracts" EntitySet="Contracts" />
  173. </AssociationSet>
  174. <AssociationSet Name="FK_Postav_Flowers_Flowers" Association="Self.FK_Postav_Flowers_Flowers">
  175. <End Role="Flowers" EntitySet="Flowers" />
  176. <End Role="Postav_Flowers" EntitySet="Postav_Flowers" />
  177. </AssociationSet>
  178. <AssociationSet Name="FK_Postav_Flowers_Postav" Association="Self.FK_Postav_Flowers_Postav">
  179. <End Role="Postav" EntitySet="Postav" />
  180. <End Role="Postav_Flowers" EntitySet="Postav_Flowers" />
  181. </AssociationSet>
  182. </EntityContainer>
  183. </Schema>
  184. </edmx:StorageModels>
  185. <!-- CSDL content -->
  186. <edmx:ConceptualModels>
  187. <Schema Namespace="Model" 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">
  188. <EntityType Name="Contracts">
  189. <Key>
  190. <PropertyRef Name="Код_договора" />
  191. </Key>
  192. <Property Name="Код_договора" Type="Int32" Nullable="false" />
  193. <Property Name="Номер_договора" Type="Int32" />
  194. <Property Name="Код_заказчика" Type="Int32" />
  195. <Property Name="Дата_оформления_договора" Type="DateTime" Precision="0" />
  196. <Property Name="Код_поставщика" Type="Int32" />
  197. <NavigationProperty Name="Customer" Relationship="Self.FK_Contracts_Customer" FromRole="Contracts" ToRole="Customer" />
  198. <NavigationProperty Name="Postav" Relationship="Self.FK_Contracts_Postav" FromRole="Contracts" ToRole="Postav" />
  199. </EntityType>
  200. <EntityType Name="Customer">
  201. <Key>
  202. <PropertyRef Name="Код_заказчика" />
  203. </Key>
  204. <Property Name="Код_заказчика" Type="Int32" Nullable="false" />
  205. <Property Name="Название_заказчика" Type="String" MaxLength="4000" FixedLength="false" Unicode="true" />
  206. <Property Name="Телефон" Type="String" MaxLength="30" FixedLength="false" Unicode="true" />
  207. <NavigationProperty Name="Contracts" Relationship="Self.FK_Contracts_Customer" FromRole="Customer" ToRole="Contracts" />
  208. </EntityType>
  209. <EntityType Name="Flowers">
  210. <Key>
  211. <PropertyRef Name="Код_цветка" />
  212. </Key>
  213. <Property Name="Код_цветка" Type="Int32" Nullable="false" />
  214. <Property Name="Название_цветка" Type="String" MaxLength="4000" FixedLength="false" Unicode="true" />
  215. <Property Name="Цена_рассады__руб__" Type="Decimal" Precision="19" Scale="4" />
  216. <NavigationProperty Name="Postav_Flowers" Relationship="Self.FK_Postav_Flowers_Flowers" FromRole="Flowers" ToRole="Postav_Flowers" />
  217. </EntityType>
  218. <EntityType Name="Postav">
  219. <Key>
  220. <PropertyRef Name="Код_поставщика" />
  221. </Key>
  222. <Property Name="Код_поставщика" Type="Int32" Nullable="false" />
  223. <Property Name="Название_поставщика" Type="String" MaxLength="4000" FixedLength="false" Unicode="true" />
  224. <Property Name="Адрес_поставщика" Type="String" MaxLength="4000" FixedLength="false" Unicode="true" />
  225. <NavigationProperty Name="Contracts" Relationship="Self.FK_Contracts_Postav" FromRole="Postav" ToRole="Contracts" />
  226. <NavigationProperty Name="Postav_Flowers" Relationship="Self.FK_Postav_Flowers_Postav" FromRole="Postav" ToRole="Postav_Flowers" />
  227. </EntityType>
  228. <EntityType Name="sysdiagrams">
  229. <Key>
  230. <PropertyRef Name="diagram_id" />
  231. </Key>
  232. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  233. <Property Name="principal_id" Type="Int32" Nullable="false" />
  234. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  235. <Property Name="version" Type="Int32" />
  236. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  237. </EntityType>
  238. <EntityType Name="Postav_Flowers">
  239. <Key>
  240. <PropertyRef Name="Код_поставщика" />
  241. </Key>
  242. <Property Name="Код_цветка" Type="Int32" />
  243. <Property Name="Название_цветка" Type="String" MaxLength="4000" FixedLength="false" Unicode="true" />
  244. <Property Name="Код_поставщика" Type="Int32" Nullable="false" />
  245. <Property Name="Название_поставщика" Type="String" MaxLength="4000" FixedLength="false" Unicode="true" />
  246. <NavigationProperty Name="Flowers" Relationship="Self.FK_Postav_Flowers_Flowers" FromRole="Postav_Flowers" ToRole="Flowers" />
  247. <NavigationProperty Name="Postav" Relationship="Self.FK_Postav_Flowers_Postav" FromRole="Postav_Flowers" ToRole="Postav" />
  248. </EntityType>
  249. <Association Name="FK_Contracts_Customer">
  250. <End Role="Customer" Type="Self.Customer" Multiplicity="0..1" />
  251. <End Role="Contracts" Type="Self.Contracts" Multiplicity="*" />
  252. <ReferentialConstraint>
  253. <Principal Role="Customer">
  254. <PropertyRef Name="Код_заказчика" />
  255. </Principal>
  256. <Dependent Role="Contracts">
  257. <PropertyRef Name="Код_заказчика" />
  258. </Dependent>
  259. </ReferentialConstraint>
  260. </Association>
  261. <Association Name="FK_Contracts_Postav">
  262. <End Role="Postav" Type="Self.Postav" Multiplicity="0..1" />
  263. <End Role="Contracts" Type="Self.Contracts" Multiplicity="*" />
  264. <ReferentialConstraint>
  265. <Principal Role="Postav">
  266. <PropertyRef Name="Код_поставщика" />
  267. </Principal>
  268. <Dependent Role="Contracts">
  269. <PropertyRef Name="Код_поставщика" />
  270. </Dependent>
  271. </ReferentialConstraint>
  272. </Association>
  273. <Association Name="FK_Postav_Flowers_Flowers">
  274. <End Role="Flowers" Type="Self.Flowers" Multiplicity="0..1" />
  275. <End Role="Postav_Flowers" Type="Self.Postav_Flowers" Multiplicity="*" />
  276. <ReferentialConstraint>
  277. <Principal Role="Flowers">
  278. <PropertyRef Name="Код_цветка" />
  279. </Principal>
  280. <Dependent Role="Postav_Flowers">
  281. <PropertyRef Name="Код_цветка" />
  282. </Dependent>
  283. </ReferentialConstraint>
  284. </Association>
  285. <Association Name="FK_Postav_Flowers_Postav">
  286. <End Role="Postav" Type="Self.Postav" Multiplicity="1" />
  287. <End Role="Postav_Flowers" Type="Self.Postav_Flowers" Multiplicity="0..1" />
  288. <ReferentialConstraint>
  289. <Principal Role="Postav">
  290. <PropertyRef Name="Код_поставщика" />
  291. </Principal>
  292. <Dependent Role="Postav_Flowers">
  293. <PropertyRef Name="Код_поставщика" />
  294. </Dependent>
  295. </ReferentialConstraint>
  296. </Association>
  297. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  298. <EntitySet Name="Contracts" EntityType="Self.Contracts" />
  299. <EntitySet Name="Customer" EntityType="Self.Customer" />
  300. <EntitySet Name="Flowers" EntityType="Self.Flowers" />
  301. <EntitySet Name="Postav" EntityType="Self.Postav" />
  302. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  303. <EntitySet Name="Postav_Flowers" EntityType="Self.Postav_Flowers" />
  304. <AssociationSet Name="FK_Contracts_Customer" Association="Self.FK_Contracts_Customer">
  305. <End Role="Customer" EntitySet="Customer" />
  306. <End Role="Contracts" EntitySet="Contracts" />
  307. </AssociationSet>
  308. <AssociationSet Name="FK_Contracts_Postav" Association="Self.FK_Contracts_Postav">
  309. <End Role="Postav" EntitySet="Postav" />
  310. <End Role="Contracts" EntitySet="Contracts" />
  311. </AssociationSet>
  312. <AssociationSet Name="FK_Postav_Flowers_Flowers" Association="Self.FK_Postav_Flowers_Flowers">
  313. <End Role="Flowers" EntitySet="Flowers" />
  314. <End Role="Postav_Flowers" EntitySet="Postav_Flowers" />
  315. </AssociationSet>
  316. <AssociationSet Name="FK_Postav_Flowers_Postav" Association="Self.FK_Postav_Flowers_Postav">
  317. <End Role="Postav" EntitySet="Postav" />
  318. <End Role="Postav_Flowers" EntitySet="Postav_Flowers" />
  319. </AssociationSet>
  320. <FunctionImport Name="sp_alterdiagram">
  321. <Parameter Name="diagramname" Mode="In" Type="String" />
  322. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  323. <Parameter Name="version" Mode="In" Type="Int32" />
  324. <Parameter Name="definition" Mode="In" Type="Binary" />
  325. </FunctionImport>
  326. <FunctionImport Name="sp_creatediagram">
  327. <Parameter Name="diagramname" Mode="In" Type="String" />
  328. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  329. <Parameter Name="version" Mode="In" Type="Int32" />
  330. <Parameter Name="definition" Mode="In" Type="Binary" />
  331. </FunctionImport>
  332. <FunctionImport Name="sp_dropdiagram">
  333. <Parameter Name="diagramname" Mode="In" Type="String" />
  334. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  335. </FunctionImport>
  336. <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(Model.sp_helpdiagramdefinition_Result)">
  337. <Parameter Name="diagramname" Mode="In" Type="String" />
  338. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  339. </FunctionImport>
  340. <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(Model.sp_helpdiagrams_Result)">
  341. <Parameter Name="diagramname" Mode="In" Type="String" />
  342. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  343. </FunctionImport>
  344. <FunctionImport Name="sp_renamediagram">
  345. <Parameter Name="diagramname" Mode="In" Type="String" />
  346. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  347. <Parameter Name="new_diagramname" Mode="In" Type="String" />
  348. </FunctionImport>
  349. <FunctionImport Name="sp_upgraddiagrams" />
  350. </EntityContainer>
  351. <ComplexType Name="sp_helpdiagramdefinition_Result">
  352. <Property Type="Int32" Name="version" Nullable="true" />
  353. <Property Type="Binary" Name="definition" Nullable="true" />
  354. </ComplexType>
  355. <ComplexType Name="sp_helpdiagrams_Result">
  356. <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
  357. <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
  358. <Property Type="Int32" Name="ID" Nullable="false" />
  359. <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
  360. <Property Type="Int32" Name="OwnerID" Nullable="false" />
  361. </ComplexType>
  362. </Schema>
  363. </edmx:ConceptualModels>
  364. <!-- C-S mapping content -->
  365. <edmx:Mappings>
  366. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  367. <EntityContainerMapping StorageEntityContainer="Хранилище ModelContainer" CdmEntityContainer="Entities">
  368. <EntitySetMapping Name="Contracts">
  369. <EntityTypeMapping TypeName="Model.Contracts">
  370. <MappingFragment StoreEntitySet="Contracts">
  371. <ScalarProperty Name="Код_договора" ColumnName="Код договора" />
  372. <ScalarProperty Name="Номер_договора" ColumnName="Номер договора" />
  373. <ScalarProperty Name="Код_заказчика" ColumnName="Код заказчика" />
  374. <ScalarProperty Name="Дата_оформления_договора" ColumnName="Дата оформления договора" />
  375. <ScalarProperty Name="Код_поставщика" ColumnName="Код поставщика" />
  376. </MappingFragment>
  377. </EntityTypeMapping>
  378. </EntitySetMapping>
  379. <EntitySetMapping Name="Customer">
  380. <EntityTypeMapping TypeName="Model.Customer">
  381. <MappingFragment StoreEntitySet="Customer">
  382. <ScalarProperty Name="Код_заказчика" ColumnName="Код заказчика" />
  383. <ScalarProperty Name="Название_заказчика" ColumnName="Название заказчика" />
  384. <ScalarProperty Name="Телефон" ColumnName="Телефон" />
  385. </MappingFragment>
  386. </EntityTypeMapping>
  387. </EntitySetMapping>
  388. <EntitySetMapping Name="Flowers">
  389. <EntityTypeMapping TypeName="Model.Flowers">
  390. <MappingFragment StoreEntitySet="Flowers">
  391. <ScalarProperty Name="Код_цветка" ColumnName="Код цветка" />
  392. <ScalarProperty Name="Название_цветка" ColumnName="Название цветка" />
  393. <ScalarProperty Name="Цена_рассады__руб__" ColumnName="Цена рассады (руб.)" />
  394. </MappingFragment>
  395. </EntityTypeMapping>
  396. </EntitySetMapping>
  397. <EntitySetMapping Name="Postav">
  398. <EntityTypeMapping TypeName="Model.Postav">
  399. <MappingFragment StoreEntitySet="Postav">
  400. <ScalarProperty Name="Код_поставщика" ColumnName="Код поставщика" />
  401. <ScalarProperty Name="Название_поставщика" ColumnName="Название поставщика" />
  402. <ScalarProperty Name="Адрес_поставщика" ColumnName="Адрес поставщика" />
  403. </MappingFragment>
  404. </EntityTypeMapping>
  405. </EntitySetMapping>
  406. <EntitySetMapping Name="sysdiagrams">
  407. <EntityTypeMapping TypeName="Model.sysdiagrams">
  408. <MappingFragment StoreEntitySet="sysdiagrams">
  409. <ScalarProperty Name="name" ColumnName="name" />
  410. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  411. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  412. <ScalarProperty Name="version" ColumnName="version" />
  413. <ScalarProperty Name="definition" ColumnName="definition" />
  414. </MappingFragment>
  415. </EntityTypeMapping>
  416. </EntitySetMapping>
  417. <EntitySetMapping Name="Postav_Flowers">
  418. <EntityTypeMapping TypeName="Model.Postav_Flowers">
  419. <MappingFragment StoreEntitySet="Postav_Flowers">
  420. <ScalarProperty Name="Код_цветка" ColumnName="Код цветка" />
  421. <ScalarProperty Name="Название_цветка" ColumnName="Название цветка" />
  422. <ScalarProperty Name="Код_поставщика" ColumnName="Код поставщика" />
  423. <ScalarProperty Name="Название_поставщика" ColumnName="Название поставщика" />
  424. </MappingFragment>
  425. </EntityTypeMapping>
  426. </EntitySetMapping>
  427. <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище Model.sp_alterdiagram" />
  428. <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище Model.sp_creatediagram" />
  429. <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище Model.sp_dropdiagram" />
  430. <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище Model.sp_helpdiagramdefinition">
  431. <ResultMapping>
  432. <ComplexTypeMapping TypeName="Model.sp_helpdiagramdefinition_Result">
  433. <ScalarProperty Name="version" ColumnName="version" />
  434. <ScalarProperty Name="definition" ColumnName="definition" />
  435. </ComplexTypeMapping>
  436. </ResultMapping>
  437. </FunctionImportMapping>
  438. <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище Model.sp_helpdiagrams">
  439. <ResultMapping>
  440. <ComplexTypeMapping TypeName="Model.sp_helpdiagrams_Result">
  441. <ScalarProperty Name="Database" ColumnName="Database" />
  442. <ScalarProperty Name="Name" ColumnName="Name" />
  443. <ScalarProperty Name="ID" ColumnName="ID" />
  444. <ScalarProperty Name="Owner" ColumnName="Owner" />
  445. <ScalarProperty Name="OwnerID" ColumnName="OwnerID" />
  446. </ComplexTypeMapping>
  447. </ResultMapping>
  448. </FunctionImportMapping>
  449. <FunctionImportMapping FunctionImportName="sp_renamediagram" FunctionName="Хранилище Model.sp_renamediagram" />
  450. <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище Model.sp_upgraddiagrams" />
  451. </EntityContainerMapping>
  452. </Mapping>
  453. </edmx:Mappings>
  454. </edmx:Runtime>
  455. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  456. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  457. <Connection>
  458. <DesignerInfoPropertySet>
  459. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  460. </DesignerInfoPropertySet>
  461. </Connection>
  462. <Options>
  463. <DesignerInfoPropertySet>
  464. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  465. <DesignerProperty Name="EnablePluralization" Value="false" />
  466. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  467. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  468. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  469. </DesignerInfoPropertySet>
  470. </Options>
  471. <!-- Diagram content (shape and connector positions) -->
  472. <Diagrams></Diagrams>
  473. </Designer>
  474. </edmx:Edmx>