Model1.edmx 35 KB

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