Model1.edmx 69 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225
  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_AzizovaModel" 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="Administrator">
  9. <Key>
  10. <PropertyRef Name="ID" />
  11. </Key>
  12. <Property Name="Login" Type="nvarchar" MaxLength="50" />
  13. <Property Name="Password" Type="nvarchar" MaxLength="50" />
  14. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  15. </EntityType>
  16. <EntityType Name="AttachedProduct">
  17. <Key>
  18. <PropertyRef Name="MainProductID" />
  19. <PropertyRef Name="AttachedProductID" />
  20. </Key>
  21. <Property Name="MainProductID" Type="int" Nullable="false" />
  22. <Property Name="AttachedProductID" Type="int" Nullable="false" />
  23. </EntityType>
  24. <EntityType Name="Client">
  25. <Key>
  26. <PropertyRef Name="ID" />
  27. </Key>
  28. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  29. <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
  30. <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
  31. <Property Name="Patronymic" Type="nvarchar" MaxLength="50" />
  32. <Property Name="Birthday" Type="date" />
  33. <Property Name="RegistrationDate" Type="datetime" Nullable="false" />
  34. <Property Name="Email" Type="nvarchar" MaxLength="255" />
  35. <Property Name="Phone" Type="nvarchar" MaxLength="20" Nullable="false" />
  36. <Property Name="GenderCode" Type="nchar" MaxLength="1" Nullable="false" />
  37. <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" />
  38. </EntityType>
  39. <EntityType Name="Clients">
  40. <Key>
  41. <PropertyRef Name="ID_Client" />
  42. </Key>
  43. <Property Name="ID_Client" Type="bigint" Nullable="false" />
  44. <Property Name="Phomilia" Type="nvarchar" MaxLength="50" />
  45. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  46. <Property Name="Otchestvo" Type="nvarchar" MaxLength="50" />
  47. <Property Name="Pol" Type="nvarchar" MaxLength="50" />
  48. <Property Name="Phone" Type="nvarchar" MaxLength="50" />
  49. <Property Name="Birthday" Type="date" />
  50. <Property Name="Email" Type="nvarchar" MaxLength="50" />
  51. <Property Name="Data_Registra" Type="date" />
  52. </EntityType>
  53. <EntityType Name="ClientService">
  54. <Key>
  55. <PropertyRef Name="ID" />
  56. </Key>
  57. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  58. <Property Name="ClientID" Type="int" Nullable="false" />
  59. <Property Name="ServiceID" Type="int" Nullable="false" />
  60. <Property Name="StartTime" Type="datetime" Nullable="false" />
  61. <Property Name="Comment" Type="nvarchar(max)" />
  62. </EntityType>
  63. <EntityType Name="DocumentByService">
  64. <Key>
  65. <PropertyRef Name="ID" />
  66. </Key>
  67. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  68. <Property Name="ClientServiceID" Type="int" Nullable="false" />
  69. <Property Name="DocumentPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
  70. </EntityType>
  71. <EntityType Name="Gender">
  72. <Key>
  73. <PropertyRef Name="Code" />
  74. </Key>
  75. <Property Name="Code" Type="nchar" MaxLength="1" Nullable="false" />
  76. <Property Name="Name" Type="nvarchar" MaxLength="10" />
  77. </EntityType>
  78. <EntityType Name="Manufacturer">
  79. <Key>
  80. <PropertyRef Name="ID" />
  81. </Key>
  82. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  83. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  84. <Property Name="StartDate" Type="date" />
  85. </EntityType>
  86. <EntityType Name="Product">
  87. <Key>
  88. <PropertyRef Name="ID" />
  89. </Key>
  90. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  91. <Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
  92. <Property Name="Cost" Type="money" Nullable="false" />
  93. <Property Name="Description" Type="nvarchar(max)" />
  94. <Property Name="MainImagePath" Type="nvarchar" MaxLength="1000" />
  95. <Property Name="IsActive" Type="bit" Nullable="false" />
  96. <Property Name="ManufacturerID" Type="int" />
  97. </EntityType>
  98. <EntityType Name="ProductPhoto">
  99. <Key>
  100. <PropertyRef Name="ID" />
  101. </Key>
  102. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  103. <Property Name="ProductID" Type="int" Nullable="false" />
  104. <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
  105. </EntityType>
  106. <EntityType Name="ProductSale">
  107. <Key>
  108. <PropertyRef Name="ID" />
  109. </Key>
  110. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  111. <Property Name="SaleDate" Type="datetime" Nullable="false" />
  112. <Property Name="ProductID" Type="int" Nullable="false" />
  113. <Property Name="Quantity" Type="int" Nullable="false" />
  114. <Property Name="ClientServiceID" Type="int" />
  115. </EntityType>
  116. <EntityType Name="Service">
  117. <Key>
  118. <PropertyRef Name="ID" />
  119. </Key>
  120. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  121. <Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
  122. <Property Name="Cost" Type="money" Nullable="false" />
  123. <Property Name="DurationInSeconds" Type="int" Nullable="false" />
  124. <Property Name="Description" Type="nvarchar(max)" />
  125. <Property Name="Discount" Type="float" />
  126. <Property Name="MainImagePath" Type="nvarchar" MaxLength="1000" />
  127. </EntityType>
  128. <EntityType Name="ServicePhoto">
  129. <Key>
  130. <PropertyRef Name="ID" />
  131. </Key>
  132. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  133. <Property Name="ServiceID" Type="int" Nullable="false" />
  134. <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
  135. </EntityType>
  136. <EntityType Name="Sotrudnik">
  137. <Key>
  138. <PropertyRef Name="ID_Sotrudnik" />
  139. </Key>
  140. <Property Name="ID_Sotrudnik" Type="bigint" Nullable="false" />
  141. <Property Name="Phomilia" Type="nvarchar" MaxLength="50" />
  142. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  143. <Property Name="ID_Uslugi" Type="bigint" />
  144. </EntityType>
  145. <EntityType Name="sysdiagrams">
  146. <Key>
  147. <PropertyRef Name="diagram_id" />
  148. </Key>
  149. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  150. <Property Name="principal_id" Type="int" Nullable="false" />
  151. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  152. <Property Name="version" Type="int" />
  153. <Property Name="definition" Type="varbinary(max)" />
  154. </EntityType>
  155. <EntityType Name="Tag">
  156. <Key>
  157. <PropertyRef Name="ID" />
  158. </Key>
  159. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  160. <Property Name="Title" Type="nvarchar" MaxLength="30" Nullable="false" />
  161. <Property Name="Color" Type="nchar" MaxLength="6" Nullable="false" />
  162. </EntityType>
  163. <EntityType Name="TagOfClient">
  164. <Key>
  165. <PropertyRef Name="ClientID" />
  166. <PropertyRef Name="TagID" />
  167. </Key>
  168. <Property Name="ClientID" Type="int" Nullable="false" />
  169. <Property Name="TagID" Type="int" Nullable="false" />
  170. </EntityType>
  171. <EntityType Name="Uslugi">
  172. <Key>
  173. <PropertyRef Name="ID_Uslugi" />
  174. </Key>
  175. <Property Name="ID_Uslugi" Type="bigint" Nullable="false" />
  176. <Property Name="Наименование_услуги" Type="nvarchar" MaxLength="50" />
  177. <Property Name="Главное_изображение" Type="nvarchar" MaxLength="100" />
  178. <Property Name="Длительность" Type="nvarchar" MaxLength="50" />
  179. <Property Name="Стоимость" Type="nvarchar" MaxLength="50" />
  180. <Property Name="Действующая_скидка" Type="nvarchar" MaxLength="50" />
  181. </EntityType>
  182. <EntityType Name="Uslugi_i_Klient">
  183. <Key>
  184. <PropertyRef Name="ID" />
  185. </Key>
  186. <Property Name="ID" Type="bigint" Nullable="false" />
  187. <Property Name="Услуга" Type="nvarchar(max)" />
  188. <Property Name="Начало_оказания_услуги" Type="datetime2" Precision="7" />
  189. <Property Name="Клиент" Type="nvarchar" MaxLength="50" />
  190. <Property Name="ID_Client" Type="bigint" />
  191. <Property Name="ID_Uslugi" Type="bigint" />
  192. </EntityType>
  193. <Association Name="FK_AttachedProduct_Product">
  194. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  195. <End Role="AttachedProduct" Type="Self.AttachedProduct" Multiplicity="*" />
  196. <ReferentialConstraint>
  197. <Principal Role="Product">
  198. <PropertyRef Name="ID" />
  199. </Principal>
  200. <Dependent Role="AttachedProduct">
  201. <PropertyRef Name="MainProductID" />
  202. </Dependent>
  203. </ReferentialConstraint>
  204. </Association>
  205. <Association Name="FK_AttachedProduct_Product1">
  206. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  207. <End Role="AttachedProduct" Type="Self.AttachedProduct" Multiplicity="*" />
  208. <ReferentialConstraint>
  209. <Principal Role="Product">
  210. <PropertyRef Name="ID" />
  211. </Principal>
  212. <Dependent Role="AttachedProduct">
  213. <PropertyRef Name="AttachedProductID" />
  214. </Dependent>
  215. </ReferentialConstraint>
  216. </Association>
  217. <Association Name="FK_Client_Gender">
  218. <End Role="Gender" Type="Self.Gender" Multiplicity="1" />
  219. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  220. <ReferentialConstraint>
  221. <Principal Role="Gender">
  222. <PropertyRef Name="Code" />
  223. </Principal>
  224. <Dependent Role="Client">
  225. <PropertyRef Name="GenderCode" />
  226. </Dependent>
  227. </ReferentialConstraint>
  228. </Association>
  229. <Association Name="FK_ClientService_Client">
  230. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  231. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  232. <ReferentialConstraint>
  233. <Principal Role="Client">
  234. <PropertyRef Name="ID" />
  235. </Principal>
  236. <Dependent Role="ClientService">
  237. <PropertyRef Name="ClientID" />
  238. </Dependent>
  239. </ReferentialConstraint>
  240. </Association>
  241. <Association Name="FK_ClientService_Service">
  242. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  243. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  244. <ReferentialConstraint>
  245. <Principal Role="Service">
  246. <PropertyRef Name="ID" />
  247. </Principal>
  248. <Dependent Role="ClientService">
  249. <PropertyRef Name="ServiceID" />
  250. </Dependent>
  251. </ReferentialConstraint>
  252. </Association>
  253. <Association Name="FK_DocumentByService_ClientService">
  254. <End Role="ClientService" Type="Self.ClientService" Multiplicity="1" />
  255. <End Role="DocumentByService" Type="Self.DocumentByService" Multiplicity="*" />
  256. <ReferentialConstraint>
  257. <Principal Role="ClientService">
  258. <PropertyRef Name="ID" />
  259. </Principal>
  260. <Dependent Role="DocumentByService">
  261. <PropertyRef Name="ClientServiceID" />
  262. </Dependent>
  263. </ReferentialConstraint>
  264. </Association>
  265. <Association Name="FK_Product_Manufacturer">
  266. <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="0..1" />
  267. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  268. <ReferentialConstraint>
  269. <Principal Role="Manufacturer">
  270. <PropertyRef Name="ID" />
  271. </Principal>
  272. <Dependent Role="Product">
  273. <PropertyRef Name="ManufacturerID" />
  274. </Dependent>
  275. </ReferentialConstraint>
  276. </Association>
  277. <Association Name="FK_ProductPhoto_Product">
  278. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  279. <End Role="ProductPhoto" Type="Self.ProductPhoto" Multiplicity="*" />
  280. <ReferentialConstraint>
  281. <Principal Role="Product">
  282. <PropertyRef Name="ID" />
  283. </Principal>
  284. <Dependent Role="ProductPhoto">
  285. <PropertyRef Name="ProductID" />
  286. </Dependent>
  287. </ReferentialConstraint>
  288. </Association>
  289. <Association Name="FK_ProductSale_ClientService">
  290. <End Role="ClientService" Type="Self.ClientService" Multiplicity="0..1" />
  291. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  292. <ReferentialConstraint>
  293. <Principal Role="ClientService">
  294. <PropertyRef Name="ID" />
  295. </Principal>
  296. <Dependent Role="ProductSale">
  297. <PropertyRef Name="ClientServiceID" />
  298. </Dependent>
  299. </ReferentialConstraint>
  300. </Association>
  301. <Association Name="FK_ProductSale_Product">
  302. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  303. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  304. <ReferentialConstraint>
  305. <Principal Role="Product">
  306. <PropertyRef Name="ID" />
  307. </Principal>
  308. <Dependent Role="ProductSale">
  309. <PropertyRef Name="ProductID" />
  310. </Dependent>
  311. </ReferentialConstraint>
  312. </Association>
  313. <Association Name="FK_ServicePhoto_Service">
  314. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  315. <End Role="ServicePhoto" Type="Self.ServicePhoto" Multiplicity="*" />
  316. <ReferentialConstraint>
  317. <Principal Role="Service">
  318. <PropertyRef Name="ID" />
  319. </Principal>
  320. <Dependent Role="ServicePhoto">
  321. <PropertyRef Name="ServiceID" />
  322. </Dependent>
  323. </ReferentialConstraint>
  324. </Association>
  325. <Association Name="FK_Sotrudnik_Uslsgi">
  326. <End Role="Uslugi" Type="Self.Uslugi" Multiplicity="0..1" />
  327. <End Role="Sotrudnik" Type="Self.Sotrudnik" Multiplicity="*" />
  328. <ReferentialConstraint>
  329. <Principal Role="Uslugi">
  330. <PropertyRef Name="ID_Uslugi" />
  331. </Principal>
  332. <Dependent Role="Sotrudnik">
  333. <PropertyRef Name="ID_Uslugi" />
  334. </Dependent>
  335. </ReferentialConstraint>
  336. </Association>
  337. <Association Name="FK_TagOfClient_Client">
  338. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  339. <End Role="TagOfClient" Type="Self.TagOfClient" Multiplicity="*" />
  340. <ReferentialConstraint>
  341. <Principal Role="Client">
  342. <PropertyRef Name="ID" />
  343. </Principal>
  344. <Dependent Role="TagOfClient">
  345. <PropertyRef Name="ClientID" />
  346. </Dependent>
  347. </ReferentialConstraint>
  348. </Association>
  349. <Association Name="FK_TagOfClient_Tag">
  350. <End Role="Tag" Type="Self.Tag" Multiplicity="1" />
  351. <End Role="TagOfClient" Type="Self.TagOfClient" Multiplicity="*" />
  352. <ReferentialConstraint>
  353. <Principal Role="Tag">
  354. <PropertyRef Name="ID" />
  355. </Principal>
  356. <Dependent Role="TagOfClient">
  357. <PropertyRef Name="TagID" />
  358. </Dependent>
  359. </ReferentialConstraint>
  360. </Association>
  361. <Association Name="FK_Uslugi_i_Klient_Clients">
  362. <End Role="Clients" Type="Self.Clients" Multiplicity="0..1" />
  363. <End Role="Uslugi_i_Klient" Type="Self.Uslugi_i_Klient" Multiplicity="*" />
  364. <ReferentialConstraint>
  365. <Principal Role="Clients">
  366. <PropertyRef Name="ID_Client" />
  367. </Principal>
  368. <Dependent Role="Uslugi_i_Klient">
  369. <PropertyRef Name="ID_Client" />
  370. </Dependent>
  371. </ReferentialConstraint>
  372. </Association>
  373. <Association Name="FK_Uslugi_i_Klient_Uslsgi">
  374. <End Role="Uslugi" Type="Self.Uslugi" Multiplicity="0..1" />
  375. <End Role="Uslugi_i_Klient" Type="Self.Uslugi_i_Klient" Multiplicity="*" />
  376. <ReferentialConstraint>
  377. <Principal Role="Uslugi">
  378. <PropertyRef Name="ID_Uslugi" />
  379. </Principal>
  380. <Dependent Role="Uslugi_i_Klient">
  381. <PropertyRef Name="ID_Uslugi" />
  382. </Dependent>
  383. </ReferentialConstraint>
  384. </Association>
  385. <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
  386. <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  387. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  388. <Parameter Name="owner_id" Type="int" Mode="In" />
  389. <Parameter Name="version" Type="int" Mode="In" />
  390. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  391. </Function>
  392. <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  393. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  394. <Parameter Name="owner_id" Type="int" Mode="In" />
  395. <Parameter Name="version" Type="int" Mode="In" />
  396. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  397. </Function>
  398. <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  399. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  400. <Parameter Name="owner_id" Type="int" Mode="In" />
  401. </Function>
  402. <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  403. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  404. <Parameter Name="owner_id" Type="int" Mode="In" />
  405. </Function>
  406. <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  407. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  408. <Parameter Name="owner_id" Type="int" Mode="In" />
  409. </Function>
  410. <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  411. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  412. <Parameter Name="owner_id" Type="int" Mode="In" />
  413. <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
  414. </Function>
  415. <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  416. <EntityContainer Name="Хранилище BB_AzizovaModelContainer">
  417. <EntitySet Name="Administrator" EntityType="Self.Administrator" Schema="dbo" store:Type="Tables" />
  418. <EntitySet Name="AttachedProduct" EntityType="Self.AttachedProduct" Schema="dbo" store:Type="Tables" />
  419. <EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" />
  420. <EntitySet Name="Clients" EntityType="Self.Clients" Schema="dbo" store:Type="Tables" />
  421. <EntitySet Name="ClientService" EntityType="Self.ClientService" Schema="dbo" store:Type="Tables" />
  422. <EntitySet Name="DocumentByService" EntityType="Self.DocumentByService" Schema="dbo" store:Type="Tables" />
  423. <EntitySet Name="Gender" EntityType="Self.Gender" Schema="dbo" store:Type="Tables" />
  424. <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" Schema="dbo" store:Type="Tables" />
  425. <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
  426. <EntitySet Name="ProductPhoto" EntityType="Self.ProductPhoto" Schema="dbo" store:Type="Tables" />
  427. <EntitySet Name="ProductSale" EntityType="Self.ProductSale" Schema="dbo" store:Type="Tables" />
  428. <EntitySet Name="Service" EntityType="Self.Service" Schema="dbo" store:Type="Tables" />
  429. <EntitySet Name="ServicePhoto" EntityType="Self.ServicePhoto" Schema="dbo" store:Type="Tables" />
  430. <EntitySet Name="Sotrudnik" EntityType="Self.Sotrudnik" Schema="dbo" store:Type="Tables" />
  431. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  432. <EntitySet Name="Tag" EntityType="Self.Tag" Schema="dbo" store:Type="Tables" />
  433. <EntitySet Name="TagOfClient" EntityType="Self.TagOfClient" Schema="dbo" store:Type="Tables" />
  434. <EntitySet Name="Uslugi" EntityType="Self.Uslugi" Schema="dbo" store:Type="Tables" />
  435. <EntitySet Name="Uslugi_i_Klient" EntityType="Self.Uslugi_i_Klient" Schema="dbo" store:Type="Tables" />
  436. <AssociationSet Name="FK_AttachedProduct_Product" Association="Self.FK_AttachedProduct_Product">
  437. <End Role="Product" EntitySet="Product" />
  438. <End Role="AttachedProduct" EntitySet="AttachedProduct" />
  439. </AssociationSet>
  440. <AssociationSet Name="FK_AttachedProduct_Product1" Association="Self.FK_AttachedProduct_Product1">
  441. <End Role="Product" EntitySet="Product" />
  442. <End Role="AttachedProduct" EntitySet="AttachedProduct" />
  443. </AssociationSet>
  444. <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
  445. <End Role="Gender" EntitySet="Gender" />
  446. <End Role="Client" EntitySet="Client" />
  447. </AssociationSet>
  448. <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
  449. <End Role="Client" EntitySet="Client" />
  450. <End Role="ClientService" EntitySet="ClientService" />
  451. </AssociationSet>
  452. <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
  453. <End Role="Service" EntitySet="Service" />
  454. <End Role="ClientService" EntitySet="ClientService" />
  455. </AssociationSet>
  456. <AssociationSet Name="FK_DocumentByService_ClientService" Association="Self.FK_DocumentByService_ClientService">
  457. <End Role="ClientService" EntitySet="ClientService" />
  458. <End Role="DocumentByService" EntitySet="DocumentByService" />
  459. </AssociationSet>
  460. <AssociationSet Name="FK_Product_Manufacturer" Association="Self.FK_Product_Manufacturer">
  461. <End Role="Manufacturer" EntitySet="Manufacturer" />
  462. <End Role="Product" EntitySet="Product" />
  463. </AssociationSet>
  464. <AssociationSet Name="FK_ProductPhoto_Product" Association="Self.FK_ProductPhoto_Product">
  465. <End Role="Product" EntitySet="Product" />
  466. <End Role="ProductPhoto" EntitySet="ProductPhoto" />
  467. </AssociationSet>
  468. <AssociationSet Name="FK_ProductSale_ClientService" Association="Self.FK_ProductSale_ClientService">
  469. <End Role="ClientService" EntitySet="ClientService" />
  470. <End Role="ProductSale" EntitySet="ProductSale" />
  471. </AssociationSet>
  472. <AssociationSet Name="FK_ProductSale_Product" Association="Self.FK_ProductSale_Product">
  473. <End Role="Product" EntitySet="Product" />
  474. <End Role="ProductSale" EntitySet="ProductSale" />
  475. </AssociationSet>
  476. <AssociationSet Name="FK_ServicePhoto_Service" Association="Self.FK_ServicePhoto_Service">
  477. <End Role="Service" EntitySet="Service" />
  478. <End Role="ServicePhoto" EntitySet="ServicePhoto" />
  479. </AssociationSet>
  480. <AssociationSet Name="FK_Sotrudnik_Uslsgi" Association="Self.FK_Sotrudnik_Uslsgi">
  481. <End Role="Uslugi" EntitySet="Uslugi" />
  482. <End Role="Sotrudnik" EntitySet="Sotrudnik" />
  483. </AssociationSet>
  484. <AssociationSet Name="FK_TagOfClient_Client" Association="Self.FK_TagOfClient_Client">
  485. <End Role="Client" EntitySet="Client" />
  486. <End Role="TagOfClient" EntitySet="TagOfClient" />
  487. </AssociationSet>
  488. <AssociationSet Name="FK_TagOfClient_Tag" Association="Self.FK_TagOfClient_Tag">
  489. <End Role="Tag" EntitySet="Tag" />
  490. <End Role="TagOfClient" EntitySet="TagOfClient" />
  491. </AssociationSet>
  492. <AssociationSet Name="FK_Uslugi_i_Klient_Clients" Association="Self.FK_Uslugi_i_Klient_Clients">
  493. <End Role="Clients" EntitySet="Clients" />
  494. <End Role="Uslugi_i_Klient" EntitySet="Uslugi_i_Klient" />
  495. </AssociationSet>
  496. <AssociationSet Name="FK_Uslugi_i_Klient_Uslsgi" Association="Self.FK_Uslugi_i_Klient_Uslsgi">
  497. <End Role="Uslugi" EntitySet="Uslugi" />
  498. <End Role="Uslugi_i_Klient" EntitySet="Uslugi_i_Klient" />
  499. </AssociationSet>
  500. </EntityContainer>
  501. </Schema></edmx:StorageModels>
  502. <!-- CSDL content -->
  503. <edmx:ConceptualModels>
  504. <Schema Namespace="BB_AzizovaModel" 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">
  505. <EntityType Name="Client">
  506. <Key>
  507. <PropertyRef Name="ID" />
  508. </Key>
  509. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  510. <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  511. <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  512. <Property Name="Patronymic" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  513. <Property Name="Birthday" Type="DateTime" Precision="0" />
  514. <Property Name="RegistrationDate" Type="DateTime" Nullable="false" Precision="3" />
  515. <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  516. <Property Name="Phone" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  517. <Property Name="GenderCode" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  518. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  519. <NavigationProperty Name="Gender" Relationship="Self.FK_Client_Gender" FromRole="Client" ToRole="Gender" />
  520. <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Client" FromRole="Client" ToRole="ClientService" />
  521. <NavigationProperty Name="Tag" Relationship="Self.TagOfClient" FromRole="Client" ToRole="Tag" />
  522. </EntityType>
  523. <EntityType Name="Clients">
  524. <Key>
  525. <PropertyRef Name="ID_Client" />
  526. </Key>
  527. <Property Name="ID_Client" Type="Int64" Nullable="false" />
  528. <Property Name="Phomilia" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  529. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  530. <Property Name="Otchestvo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  531. <Property Name="Pol" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  532. <Property Name="Phone" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  533. <Property Name="Birthday" Type="DateTime" Precision="0" />
  534. <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  535. <Property Name="Data_Registra" Type="DateTime" Precision="0" />
  536. <NavigationProperty Name="Uslugi_i_Klient" Relationship="Self.FK_Uslugi_i_Klient_Clients" FromRole="Clients" ToRole="Uslugi_i_Klient" />
  537. </EntityType>
  538. <EntityType Name="ClientService">
  539. <Key>
  540. <PropertyRef Name="ID" />
  541. </Key>
  542. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  543. <Property Name="ClientID" Type="Int32" Nullable="false" />
  544. <Property Name="ServiceID" Type="Int32" Nullable="false" />
  545. <Property Name="StartTime" Type="DateTime" Nullable="false" Precision="3" />
  546. <Property Name="Comment" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  547. <NavigationProperty Name="Client" Relationship="Self.FK_ClientService_Client" FromRole="ClientService" ToRole="Client" />
  548. <NavigationProperty Name="Service" Relationship="Self.FK_ClientService_Service" FromRole="ClientService" ToRole="Service" />
  549. <NavigationProperty Name="DocumentByService" Relationship="Self.FK_DocumentByService_ClientService" FromRole="ClientService" ToRole="DocumentByService" />
  550. <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_ClientService" FromRole="ClientService" ToRole="ProductSale" />
  551. </EntityType>
  552. <EntityType Name="DocumentByService">
  553. <Key>
  554. <PropertyRef Name="ID" />
  555. </Key>
  556. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  557. <Property Name="ClientServiceID" Type="Int32" Nullable="false" />
  558. <Property Name="DocumentPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  559. <NavigationProperty Name="ClientService" Relationship="Self.FK_DocumentByService_ClientService" FromRole="DocumentByService" ToRole="ClientService" />
  560. </EntityType>
  561. <EntityType Name="Gender">
  562. <Key>
  563. <PropertyRef Name="Code" />
  564. </Key>
  565. <Property Name="Code" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  566. <Property Name="Name" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  567. <NavigationProperty Name="Client" Relationship="Self.FK_Client_Gender" FromRole="Gender" ToRole="Client" />
  568. </EntityType>
  569. <EntityType Name="Manufacturer">
  570. <Key>
  571. <PropertyRef Name="ID" />
  572. </Key>
  573. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  574. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  575. <Property Name="StartDate" Type="DateTime" Precision="0" />
  576. <NavigationProperty Name="Product" Relationship="Self.FK_Product_Manufacturer" FromRole="Manufacturer" ToRole="Product" />
  577. </EntityType>
  578. <EntityType Name="Product">
  579. <Key>
  580. <PropertyRef Name="ID" />
  581. </Key>
  582. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  583. <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  584. <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  585. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  586. <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  587. <Property Name="IsActive" Type="Boolean" Nullable="false" />
  588. <Property Name="ManufacturerID" Type="Int32" />
  589. <NavigationProperty Name="Manufacturer" Relationship="Self.FK_Product_Manufacturer" FromRole="Product" ToRole="Manufacturer" />
  590. <NavigationProperty Name="ProductPhoto" Relationship="Self.FK_ProductPhoto_Product" FromRole="Product" ToRole="ProductPhoto" />
  591. <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_Product" FromRole="Product" ToRole="ProductSale" />
  592. <NavigationProperty Name="Product1" Relationship="Self.AttachedProduct" FromRole="Product" ToRole="Product1" />
  593. <NavigationProperty Name="Product2" Relationship="Self.AttachedProduct" FromRole="Product1" ToRole="Product" />
  594. </EntityType>
  595. <EntityType Name="ProductPhoto">
  596. <Key>
  597. <PropertyRef Name="ID" />
  598. </Key>
  599. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  600. <Property Name="ProductID" Type="Int32" Nullable="false" />
  601. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  602. <NavigationProperty Name="Product" Relationship="Self.FK_ProductPhoto_Product" FromRole="ProductPhoto" ToRole="Product" />
  603. </EntityType>
  604. <EntityType Name="ProductSale">
  605. <Key>
  606. <PropertyRef Name="ID" />
  607. </Key>
  608. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  609. <Property Name="SaleDate" Type="DateTime" Nullable="false" Precision="3" />
  610. <Property Name="ProductID" Type="Int32" Nullable="false" />
  611. <Property Name="Quantity" Type="Int32" Nullable="false" />
  612. <Property Name="ClientServiceID" Type="Int32" />
  613. <NavigationProperty Name="ClientService" Relationship="Self.FK_ProductSale_ClientService" FromRole="ProductSale" ToRole="ClientService" />
  614. <NavigationProperty Name="Product" Relationship="Self.FK_ProductSale_Product" FromRole="ProductSale" ToRole="Product" />
  615. </EntityType>
  616. <EntityType Name="Service">
  617. <Key>
  618. <PropertyRef Name="ID" />
  619. </Key>
  620. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  621. <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  622. <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  623. <Property Name="DurationInSeconds" Type="Int32" Nullable="false" />
  624. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  625. <Property Name="Discount" Type="Double" />
  626. <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  627. <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Service" FromRole="Service" ToRole="ClientService" />
  628. <NavigationProperty Name="ServicePhoto" Relationship="Self.FK_ServicePhoto_Service" FromRole="Service" ToRole="ServicePhoto" />
  629. </EntityType>
  630. <EntityType Name="ServicePhoto">
  631. <Key>
  632. <PropertyRef Name="ID" />
  633. </Key>
  634. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  635. <Property Name="ServiceID" Type="Int32" Nullable="false" />
  636. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  637. <NavigationProperty Name="Service" Relationship="Self.FK_ServicePhoto_Service" FromRole="ServicePhoto" ToRole="Service" />
  638. </EntityType>
  639. <EntityType Name="Sotrudnik">
  640. <Key>
  641. <PropertyRef Name="ID_Sotrudnik" />
  642. </Key>
  643. <Property Name="ID_Sotrudnik" Type="Int64" Nullable="false" />
  644. <Property Name="Phomilia" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  645. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  646. <Property Name="ID_Uslugi" Type="Int64" />
  647. <NavigationProperty Name="Uslugi" Relationship="Self.FK_Sotrudnik_Uslsgi" FromRole="Sotrudnik" ToRole="Uslugi" />
  648. </EntityType>
  649. <EntityType Name="sysdiagrams">
  650. <Key>
  651. <PropertyRef Name="diagram_id" />
  652. </Key>
  653. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  654. <Property Name="principal_id" Type="Int32" Nullable="false" />
  655. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  656. <Property Name="version" Type="Int32" />
  657. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  658. </EntityType>
  659. <EntityType Name="Tag">
  660. <Key>
  661. <PropertyRef Name="ID" />
  662. </Key>
  663. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  664. <Property Name="Title" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  665. <Property Name="Color" Type="String" MaxLength="6" FixedLength="true" Unicode="true" Nullable="false" />
  666. <NavigationProperty Name="Client" Relationship="Self.TagOfClient" FromRole="Tag" ToRole="Client" />
  667. </EntityType>
  668. <EntityType Name="Uslugi">
  669. <Key>
  670. <PropertyRef Name="ID_Uslugi" />
  671. </Key>
  672. <Property Name="ID_Uslugi" Type="Int64" Nullable="false" />
  673. <Property Name="Наименование_услуги" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  674. <Property Name="Главное_изображение" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  675. <Property Name="Длительность" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  676. <Property Name="Стоимость" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  677. <Property Name="Действующая_скидка" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  678. <NavigationProperty Name="Sotrudnik" Relationship="Self.FK_Sotrudnik_Uslsgi" FromRole="Uslugi" ToRole="Sotrudnik" />
  679. <NavigationProperty Name="Uslugi_i_Klient" Relationship="Self.FK_Uslugi_i_Klient_Uslsgi" FromRole="Uslugi" ToRole="Uslugi_i_Klient" />
  680. </EntityType>
  681. <EntityType Name="Uslugi_i_Klient">
  682. <Key>
  683. <PropertyRef Name="ID" />
  684. </Key>
  685. <Property Name="ID" Type="Int64" Nullable="false" />
  686. <Property Name="Услуга" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  687. <Property Name="Начало_оказания_услуги" Type="DateTime" Precision="7" />
  688. <Property Name="Клиент" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  689. <Property Name="ID_Client" Type="Int64" />
  690. <Property Name="ID_Uslugi" Type="Int64" />
  691. <NavigationProperty Name="Clients" Relationship="Self.FK_Uslugi_i_Klient_Clients" FromRole="Uslugi_i_Klient" ToRole="Clients" />
  692. <NavigationProperty Name="Uslugi" Relationship="Self.FK_Uslugi_i_Klient_Uslsgi" FromRole="Uslugi_i_Klient" ToRole="Uslugi" />
  693. </EntityType>
  694. <Association Name="FK_Client_Gender">
  695. <End Role="Gender" Type="Self.Gender" Multiplicity="1" />
  696. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  697. <ReferentialConstraint>
  698. <Principal Role="Gender">
  699. <PropertyRef Name="Code" />
  700. </Principal>
  701. <Dependent Role="Client">
  702. <PropertyRef Name="GenderCode" />
  703. </Dependent>
  704. </ReferentialConstraint>
  705. </Association>
  706. <Association Name="FK_ClientService_Client">
  707. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  708. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  709. <ReferentialConstraint>
  710. <Principal Role="Client">
  711. <PropertyRef Name="ID" />
  712. </Principal>
  713. <Dependent Role="ClientService">
  714. <PropertyRef Name="ClientID" />
  715. </Dependent>
  716. </ReferentialConstraint>
  717. </Association>
  718. <Association Name="FK_Uslugi_i_Klient_Clients">
  719. <End Role="Clients" Type="Self.Clients" Multiplicity="0..1" />
  720. <End Role="Uslugi_i_Klient" Type="Self.Uslugi_i_Klient" Multiplicity="*" />
  721. <ReferentialConstraint>
  722. <Principal Role="Clients">
  723. <PropertyRef Name="ID_Client" />
  724. </Principal>
  725. <Dependent Role="Uslugi_i_Klient">
  726. <PropertyRef Name="ID_Client" />
  727. </Dependent>
  728. </ReferentialConstraint>
  729. </Association>
  730. <Association Name="FK_ClientService_Service">
  731. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  732. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  733. <ReferentialConstraint>
  734. <Principal Role="Service">
  735. <PropertyRef Name="ID" />
  736. </Principal>
  737. <Dependent Role="ClientService">
  738. <PropertyRef Name="ServiceID" />
  739. </Dependent>
  740. </ReferentialConstraint>
  741. </Association>
  742. <Association Name="FK_DocumentByService_ClientService">
  743. <End Role="ClientService" Type="Self.ClientService" Multiplicity="1" />
  744. <End Role="DocumentByService" Type="Self.DocumentByService" Multiplicity="*" />
  745. <ReferentialConstraint>
  746. <Principal Role="ClientService">
  747. <PropertyRef Name="ID" />
  748. </Principal>
  749. <Dependent Role="DocumentByService">
  750. <PropertyRef Name="ClientServiceID" />
  751. </Dependent>
  752. </ReferentialConstraint>
  753. </Association>
  754. <Association Name="FK_ProductSale_ClientService">
  755. <End Role="ClientService" Type="Self.ClientService" Multiplicity="0..1" />
  756. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  757. <ReferentialConstraint>
  758. <Principal Role="ClientService">
  759. <PropertyRef Name="ID" />
  760. </Principal>
  761. <Dependent Role="ProductSale">
  762. <PropertyRef Name="ClientServiceID" />
  763. </Dependent>
  764. </ReferentialConstraint>
  765. </Association>
  766. <Association Name="FK_Product_Manufacturer">
  767. <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="0..1" />
  768. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  769. <ReferentialConstraint>
  770. <Principal Role="Manufacturer">
  771. <PropertyRef Name="ID" />
  772. </Principal>
  773. <Dependent Role="Product">
  774. <PropertyRef Name="ManufacturerID" />
  775. </Dependent>
  776. </ReferentialConstraint>
  777. </Association>
  778. <Association Name="FK_ProductPhoto_Product">
  779. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  780. <End Role="ProductPhoto" Type="Self.ProductPhoto" Multiplicity="*" />
  781. <ReferentialConstraint>
  782. <Principal Role="Product">
  783. <PropertyRef Name="ID" />
  784. </Principal>
  785. <Dependent Role="ProductPhoto">
  786. <PropertyRef Name="ProductID" />
  787. </Dependent>
  788. </ReferentialConstraint>
  789. </Association>
  790. <Association Name="FK_ProductSale_Product">
  791. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  792. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  793. <ReferentialConstraint>
  794. <Principal Role="Product">
  795. <PropertyRef Name="ID" />
  796. </Principal>
  797. <Dependent Role="ProductSale">
  798. <PropertyRef Name="ProductID" />
  799. </Dependent>
  800. </ReferentialConstraint>
  801. </Association>
  802. <Association Name="FK_ServicePhoto_Service">
  803. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  804. <End Role="ServicePhoto" Type="Self.ServicePhoto" Multiplicity="*" />
  805. <ReferentialConstraint>
  806. <Principal Role="Service">
  807. <PropertyRef Name="ID" />
  808. </Principal>
  809. <Dependent Role="ServicePhoto">
  810. <PropertyRef Name="ServiceID" />
  811. </Dependent>
  812. </ReferentialConstraint>
  813. </Association>
  814. <Association Name="FK_Sotrudnik_Uslsgi">
  815. <End Role="Uslugi" Type="Self.Uslugi" Multiplicity="0..1" />
  816. <End Role="Sotrudnik" Type="Self.Sotrudnik" Multiplicity="*" />
  817. <ReferentialConstraint>
  818. <Principal Role="Uslugi">
  819. <PropertyRef Name="ID_Uslugi" />
  820. </Principal>
  821. <Dependent Role="Sotrudnik">
  822. <PropertyRef Name="ID_Uslugi" />
  823. </Dependent>
  824. </ReferentialConstraint>
  825. </Association>
  826. <Association Name="FK_Uslugi_i_Klient_Uslsgi">
  827. <End Role="Uslugi" Type="Self.Uslugi" Multiplicity="0..1" />
  828. <End Role="Uslugi_i_Klient" Type="Self.Uslugi_i_Klient" Multiplicity="*" />
  829. <ReferentialConstraint>
  830. <Principal Role="Uslugi">
  831. <PropertyRef Name="ID_Uslugi" />
  832. </Principal>
  833. <Dependent Role="Uslugi_i_Klient">
  834. <PropertyRef Name="ID_Uslugi" />
  835. </Dependent>
  836. </ReferentialConstraint>
  837. </Association>
  838. <Association Name="AttachedProduct">
  839. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  840. <End Role="Product1" Type="Self.Product" Multiplicity="*" />
  841. </Association>
  842. <Association Name="TagOfClient">
  843. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  844. <End Role="Tag" Type="Self.Tag" Multiplicity="*" />
  845. </Association>
  846. <EntityContainer Name="BB_AzizovaEntities" annotation:LazyLoadingEnabled="true">
  847. <EntitySet Name="Client" EntityType="Self.Client" />
  848. <EntitySet Name="Clients" EntityType="Self.Clients" />
  849. <EntitySet Name="ClientService" EntityType="Self.ClientService" />
  850. <EntitySet Name="DocumentByService" EntityType="Self.DocumentByService" />
  851. <EntitySet Name="Gender" EntityType="Self.Gender" />
  852. <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" />
  853. <EntitySet Name="Product" EntityType="Self.Product" />
  854. <EntitySet Name="ProductPhoto" EntityType="Self.ProductPhoto" />
  855. <EntitySet Name="ProductSale" EntityType="Self.ProductSale" />
  856. <EntitySet Name="Service" EntityType="Self.Service" />
  857. <EntitySet Name="ServicePhoto" EntityType="Self.ServicePhoto" />
  858. <EntitySet Name="Sotrudnik" EntityType="Self.Sotrudnik" />
  859. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  860. <EntitySet Name="Tag" EntityType="Self.Tag" />
  861. <EntitySet Name="Uslugi" EntityType="Self.Uslugi" />
  862. <EntitySet Name="Uslugi_i_Klient" EntityType="Self.Uslugi_i_Klient" />
  863. <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
  864. <End Role="Gender" EntitySet="Gender" />
  865. <End Role="Client" EntitySet="Client" />
  866. </AssociationSet>
  867. <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
  868. <End Role="Client" EntitySet="Client" />
  869. <End Role="ClientService" EntitySet="ClientService" />
  870. </AssociationSet>
  871. <AssociationSet Name="FK_Uslugi_i_Klient_Clients" Association="Self.FK_Uslugi_i_Klient_Clients">
  872. <End Role="Clients" EntitySet="Clients" />
  873. <End Role="Uslugi_i_Klient" EntitySet="Uslugi_i_Klient" />
  874. </AssociationSet>
  875. <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
  876. <End Role="Service" EntitySet="Service" />
  877. <End Role="ClientService" EntitySet="ClientService" />
  878. </AssociationSet>
  879. <AssociationSet Name="FK_DocumentByService_ClientService" Association="Self.FK_DocumentByService_ClientService">
  880. <End Role="ClientService" EntitySet="ClientService" />
  881. <End Role="DocumentByService" EntitySet="DocumentByService" />
  882. </AssociationSet>
  883. <AssociationSet Name="FK_ProductSale_ClientService" Association="Self.FK_ProductSale_ClientService">
  884. <End Role="ClientService" EntitySet="ClientService" />
  885. <End Role="ProductSale" EntitySet="ProductSale" />
  886. </AssociationSet>
  887. <AssociationSet Name="FK_Product_Manufacturer" Association="Self.FK_Product_Manufacturer">
  888. <End Role="Manufacturer" EntitySet="Manufacturer" />
  889. <End Role="Product" EntitySet="Product" />
  890. </AssociationSet>
  891. <AssociationSet Name="FK_ProductPhoto_Product" Association="Self.FK_ProductPhoto_Product">
  892. <End Role="Product" EntitySet="Product" />
  893. <End Role="ProductPhoto" EntitySet="ProductPhoto" />
  894. </AssociationSet>
  895. <AssociationSet Name="FK_ProductSale_Product" Association="Self.FK_ProductSale_Product">
  896. <End Role="Product" EntitySet="Product" />
  897. <End Role="ProductSale" EntitySet="ProductSale" />
  898. </AssociationSet>
  899. <AssociationSet Name="FK_ServicePhoto_Service" Association="Self.FK_ServicePhoto_Service">
  900. <End Role="Service" EntitySet="Service" />
  901. <End Role="ServicePhoto" EntitySet="ServicePhoto" />
  902. </AssociationSet>
  903. <AssociationSet Name="FK_Sotrudnik_Uslsgi" Association="Self.FK_Sotrudnik_Uslsgi">
  904. <End Role="Uslugi" EntitySet="Uslugi" />
  905. <End Role="Sotrudnik" EntitySet="Sotrudnik" />
  906. </AssociationSet>
  907. <AssociationSet Name="FK_Uslugi_i_Klient_Uslsgi" Association="Self.FK_Uslugi_i_Klient_Uslsgi">
  908. <End Role="Uslugi" EntitySet="Uslugi" />
  909. <End Role="Uslugi_i_Klient" EntitySet="Uslugi_i_Klient" />
  910. </AssociationSet>
  911. <AssociationSet Name="AttachedProduct" Association="Self.AttachedProduct">
  912. <End Role="Product" EntitySet="Product" />
  913. <End Role="Product1" EntitySet="Product" />
  914. </AssociationSet>
  915. <AssociationSet Name="TagOfClient" Association="Self.TagOfClient">
  916. <End Role="Client" EntitySet="Client" />
  917. <End Role="Tag" EntitySet="Tag" />
  918. </AssociationSet>
  919. <FunctionImport Name="sp_alterdiagram">
  920. <Parameter Name="diagramname" Mode="In" Type="String" />
  921. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  922. <Parameter Name="version" Mode="In" Type="Int32" />
  923. <Parameter Name="definition" Mode="In" Type="Binary" />
  924. </FunctionImport>
  925. <FunctionImport Name="sp_creatediagram">
  926. <Parameter Name="diagramname" Mode="In" Type="String" />
  927. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  928. <Parameter Name="version" Mode="In" Type="Int32" />
  929. <Parameter Name="definition" Mode="In" Type="Binary" />
  930. </FunctionImport>
  931. <FunctionImport Name="sp_dropdiagram">
  932. <Parameter Name="diagramname" Mode="In" Type="String" />
  933. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  934. </FunctionImport>
  935. <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(BB_AzizovaModel.sp_helpdiagramdefinition_Result)">
  936. <Parameter Name="diagramname" Mode="In" Type="String" />
  937. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  938. </FunctionImport>
  939. <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(BB_AzizovaModel.sp_helpdiagrams_Result)">
  940. <Parameter Name="diagramname" Mode="In" Type="String" />
  941. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  942. </FunctionImport>
  943. <FunctionImport Name="sp_renamediagram">
  944. <Parameter Name="diagramname" Mode="In" Type="String" />
  945. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  946. <Parameter Name="new_diagramname" Mode="In" Type="String" />
  947. </FunctionImport>
  948. <FunctionImport Name="sp_upgraddiagrams" />
  949. <EntitySet Name="Administrator" EntityType="BB_AzizovaModel.Administrator" />
  950. </EntityContainer>
  951. <ComplexType Name="sp_helpdiagramdefinition_Result">
  952. <Property Type="Int32" Name="version" Nullable="true" />
  953. <Property Type="Binary" Name="definition" Nullable="true" />
  954. </ComplexType>
  955. <ComplexType Name="sp_helpdiagrams_Result">
  956. <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
  957. <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
  958. <Property Type="Int32" Name="ID" Nullable="false" />
  959. <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
  960. <Property Type="Int32" Name="OwnerID" Nullable="false" />
  961. </ComplexType>
  962. <EntityType Name="Administrator">
  963. <Key>
  964. <PropertyRef Name="ID" />
  965. </Key>
  966. <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  967. <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  968. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  969. </EntityType>
  970. </Schema>
  971. </edmx:ConceptualModels>
  972. <!-- C-S mapping content -->
  973. <edmx:Mappings>
  974. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  975. <EntityContainerMapping StorageEntityContainer="Хранилище BB_AzizovaModelContainer" CdmEntityContainer="BB_AzizovaEntities">
  976. <EntitySetMapping Name="Client">
  977. <EntityTypeMapping TypeName="BB_AzizovaModel.Client">
  978. <MappingFragment StoreEntitySet="Client">
  979. <ScalarProperty Name="ID" ColumnName="ID" />
  980. <ScalarProperty Name="FirstName" ColumnName="FirstName" />
  981. <ScalarProperty Name="LastName" ColumnName="LastName" />
  982. <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
  983. <ScalarProperty Name="Birthday" ColumnName="Birthday" />
  984. <ScalarProperty Name="RegistrationDate" ColumnName="RegistrationDate" />
  985. <ScalarProperty Name="Email" ColumnName="Email" />
  986. <ScalarProperty Name="Phone" ColumnName="Phone" />
  987. <ScalarProperty Name="GenderCode" ColumnName="GenderCode" />
  988. <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
  989. </MappingFragment>
  990. </EntityTypeMapping>
  991. </EntitySetMapping>
  992. <EntitySetMapping Name="Clients">
  993. <EntityTypeMapping TypeName="BB_AzizovaModel.Clients">
  994. <MappingFragment StoreEntitySet="Clients">
  995. <ScalarProperty Name="ID_Client" ColumnName="ID_Client" />
  996. <ScalarProperty Name="Phomilia" ColumnName="Phomilia" />
  997. <ScalarProperty Name="Name" ColumnName="Name" />
  998. <ScalarProperty Name="Otchestvo" ColumnName="Otchestvo" />
  999. <ScalarProperty Name="Pol" ColumnName="Pol" />
  1000. <ScalarProperty Name="Phone" ColumnName="Phone" />
  1001. <ScalarProperty Name="Birthday" ColumnName="Birthday" />
  1002. <ScalarProperty Name="Email" ColumnName="Email" />
  1003. <ScalarProperty Name="Data_Registra" ColumnName="Data_Registra" />
  1004. </MappingFragment>
  1005. </EntityTypeMapping>
  1006. </EntitySetMapping>
  1007. <EntitySetMapping Name="ClientService">
  1008. <EntityTypeMapping TypeName="BB_AzizovaModel.ClientService">
  1009. <MappingFragment StoreEntitySet="ClientService">
  1010. <ScalarProperty Name="ID" ColumnName="ID" />
  1011. <ScalarProperty Name="ClientID" ColumnName="ClientID" />
  1012. <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
  1013. <ScalarProperty Name="StartTime" ColumnName="StartTime" />
  1014. <ScalarProperty Name="Comment" ColumnName="Comment" />
  1015. </MappingFragment>
  1016. </EntityTypeMapping>
  1017. </EntitySetMapping>
  1018. <EntitySetMapping Name="DocumentByService">
  1019. <EntityTypeMapping TypeName="BB_AzizovaModel.DocumentByService">
  1020. <MappingFragment StoreEntitySet="DocumentByService">
  1021. <ScalarProperty Name="ID" ColumnName="ID" />
  1022. <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
  1023. <ScalarProperty Name="DocumentPath" ColumnName="DocumentPath" />
  1024. </MappingFragment>
  1025. </EntityTypeMapping>
  1026. </EntitySetMapping>
  1027. <EntitySetMapping Name="Gender">
  1028. <EntityTypeMapping TypeName="BB_AzizovaModel.Gender">
  1029. <MappingFragment StoreEntitySet="Gender">
  1030. <ScalarProperty Name="Code" ColumnName="Code" />
  1031. <ScalarProperty Name="Name" ColumnName="Name" />
  1032. </MappingFragment>
  1033. </EntityTypeMapping>
  1034. </EntitySetMapping>
  1035. <EntitySetMapping Name="Manufacturer">
  1036. <EntityTypeMapping TypeName="BB_AzizovaModel.Manufacturer">
  1037. <MappingFragment StoreEntitySet="Manufacturer">
  1038. <ScalarProperty Name="ID" ColumnName="ID" />
  1039. <ScalarProperty Name="Name" ColumnName="Name" />
  1040. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  1041. </MappingFragment>
  1042. </EntityTypeMapping>
  1043. </EntitySetMapping>
  1044. <EntitySetMapping Name="Product">
  1045. <EntityTypeMapping TypeName="BB_AzizovaModel.Product">
  1046. <MappingFragment StoreEntitySet="Product">
  1047. <ScalarProperty Name="ID" ColumnName="ID" />
  1048. <ScalarProperty Name="Title" ColumnName="Title" />
  1049. <ScalarProperty Name="Cost" ColumnName="Cost" />
  1050. <ScalarProperty Name="Description" ColumnName="Description" />
  1051. <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
  1052. <ScalarProperty Name="IsActive" ColumnName="IsActive" />
  1053. <ScalarProperty Name="ManufacturerID" ColumnName="ManufacturerID" />
  1054. </MappingFragment>
  1055. </EntityTypeMapping>
  1056. </EntitySetMapping>
  1057. <EntitySetMapping Name="ProductPhoto">
  1058. <EntityTypeMapping TypeName="BB_AzizovaModel.ProductPhoto">
  1059. <MappingFragment StoreEntitySet="ProductPhoto">
  1060. <ScalarProperty Name="ID" ColumnName="ID" />
  1061. <ScalarProperty Name="ProductID" ColumnName="ProductID" />
  1062. <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
  1063. </MappingFragment>
  1064. </EntityTypeMapping>
  1065. </EntitySetMapping>
  1066. <EntitySetMapping Name="ProductSale">
  1067. <EntityTypeMapping TypeName="BB_AzizovaModel.ProductSale">
  1068. <MappingFragment StoreEntitySet="ProductSale">
  1069. <ScalarProperty Name="ID" ColumnName="ID" />
  1070. <ScalarProperty Name="SaleDate" ColumnName="SaleDate" />
  1071. <ScalarProperty Name="ProductID" ColumnName="ProductID" />
  1072. <ScalarProperty Name="Quantity" ColumnName="Quantity" />
  1073. <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
  1074. </MappingFragment>
  1075. </EntityTypeMapping>
  1076. </EntitySetMapping>
  1077. <EntitySetMapping Name="Service">
  1078. <EntityTypeMapping TypeName="BB_AzizovaModel.Service">
  1079. <MappingFragment StoreEntitySet="Service">
  1080. <ScalarProperty Name="ID" ColumnName="ID" />
  1081. <ScalarProperty Name="Title" ColumnName="Title" />
  1082. <ScalarProperty Name="Cost" ColumnName="Cost" />
  1083. <ScalarProperty Name="DurationInSeconds" ColumnName="DurationInSeconds" />
  1084. <ScalarProperty Name="Description" ColumnName="Description" />
  1085. <ScalarProperty Name="Discount" ColumnName="Discount" />
  1086. <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
  1087. </MappingFragment>
  1088. </EntityTypeMapping>
  1089. </EntitySetMapping>
  1090. <EntitySetMapping Name="ServicePhoto">
  1091. <EntityTypeMapping TypeName="BB_AzizovaModel.ServicePhoto">
  1092. <MappingFragment StoreEntitySet="ServicePhoto">
  1093. <ScalarProperty Name="ID" ColumnName="ID" />
  1094. <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
  1095. <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
  1096. </MappingFragment>
  1097. </EntityTypeMapping>
  1098. </EntitySetMapping>
  1099. <EntitySetMapping Name="Sotrudnik">
  1100. <EntityTypeMapping TypeName="BB_AzizovaModel.Sotrudnik">
  1101. <MappingFragment StoreEntitySet="Sotrudnik">
  1102. <ScalarProperty Name="ID_Sotrudnik" ColumnName="ID_Sotrudnik" />
  1103. <ScalarProperty Name="Phomilia" ColumnName="Phomilia" />
  1104. <ScalarProperty Name="Name" ColumnName="Name" />
  1105. <ScalarProperty Name="ID_Uslugi" ColumnName="ID_Uslugi" />
  1106. </MappingFragment>
  1107. </EntityTypeMapping>
  1108. </EntitySetMapping>
  1109. <EntitySetMapping Name="sysdiagrams">
  1110. <EntityTypeMapping TypeName="BB_AzizovaModel.sysdiagrams">
  1111. <MappingFragment StoreEntitySet="sysdiagrams">
  1112. <ScalarProperty Name="name" ColumnName="name" />
  1113. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  1114. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  1115. <ScalarProperty Name="version" ColumnName="version" />
  1116. <ScalarProperty Name="definition" ColumnName="definition" />
  1117. </MappingFragment>
  1118. </EntityTypeMapping>
  1119. </EntitySetMapping>
  1120. <EntitySetMapping Name="Tag">
  1121. <EntityTypeMapping TypeName="BB_AzizovaModel.Tag">
  1122. <MappingFragment StoreEntitySet="Tag">
  1123. <ScalarProperty Name="ID" ColumnName="ID" />
  1124. <ScalarProperty Name="Title" ColumnName="Title" />
  1125. <ScalarProperty Name="Color" ColumnName="Color" />
  1126. </MappingFragment>
  1127. </EntityTypeMapping>
  1128. </EntitySetMapping>
  1129. <EntitySetMapping Name="Uslugi">
  1130. <EntityTypeMapping TypeName="BB_AzizovaModel.Uslugi">
  1131. <MappingFragment StoreEntitySet="Uslugi">
  1132. <ScalarProperty Name="ID_Uslugi" ColumnName="ID_Uslugi" />
  1133. <ScalarProperty Name="Наименование_услуги" ColumnName="Наименование_услуги" />
  1134. <ScalarProperty Name="Главное_изображение" ColumnName="Главное_изображение" />
  1135. <ScalarProperty Name="Длительность" ColumnName="Длительность" />
  1136. <ScalarProperty Name="Стоимость" ColumnName="Стоимость" />
  1137. <ScalarProperty Name="Действующая_скидка" ColumnName="Действующая_скидка" />
  1138. </MappingFragment>
  1139. </EntityTypeMapping>
  1140. </EntitySetMapping>
  1141. <EntitySetMapping Name="Uslugi_i_Klient">
  1142. <EntityTypeMapping TypeName="BB_AzizovaModel.Uslugi_i_Klient">
  1143. <MappingFragment StoreEntitySet="Uslugi_i_Klient">
  1144. <ScalarProperty Name="ID" ColumnName="ID" />
  1145. <ScalarProperty Name="Услуга" ColumnName="Услуга" />
  1146. <ScalarProperty Name="Начало_оказания_услуги" ColumnName="Начало_оказания_услуги" />
  1147. <ScalarProperty Name="Клиент" ColumnName="Клиент" />
  1148. <ScalarProperty Name="ID_Client" ColumnName="ID_Client" />
  1149. <ScalarProperty Name="ID_Uslugi" ColumnName="ID_Uslugi" />
  1150. </MappingFragment>
  1151. </EntityTypeMapping>
  1152. </EntitySetMapping>
  1153. <AssociationSetMapping Name="AttachedProduct" TypeName="BB_AzizovaModel.AttachedProduct" StoreEntitySet="AttachedProduct">
  1154. <EndProperty Name="Product">
  1155. <ScalarProperty Name="ID" ColumnName="MainProductID" />
  1156. </EndProperty>
  1157. <EndProperty Name="Product1">
  1158. <ScalarProperty Name="ID" ColumnName="AttachedProductID" />
  1159. </EndProperty>
  1160. </AssociationSetMapping>
  1161. <AssociationSetMapping Name="TagOfClient" TypeName="BB_AzizovaModel.TagOfClient" StoreEntitySet="TagOfClient">
  1162. <EndProperty Name="Client">
  1163. <ScalarProperty Name="ID" ColumnName="ClientID" />
  1164. </EndProperty>
  1165. <EndProperty Name="Tag">
  1166. <ScalarProperty Name="ID" ColumnName="TagID" />
  1167. </EndProperty>
  1168. </AssociationSetMapping>
  1169. <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище BB_AzizovaModel.sp_alterdiagram" />
  1170. <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище BB_AzizovaModel.sp_creatediagram" />
  1171. <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище BB_AzizovaModel.sp_dropdiagram" />
  1172. <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище BB_AzizovaModel.sp_helpdiagramdefinition">
  1173. <ResultMapping>
  1174. <ComplexTypeMapping TypeName="BB_AzizovaModel.sp_helpdiagramdefinition_Result">
  1175. <ScalarProperty Name="version" ColumnName="version" />
  1176. <ScalarProperty Name="definition" ColumnName="definition" />
  1177. </ComplexTypeMapping>
  1178. </ResultMapping>
  1179. </FunctionImportMapping>
  1180. <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище BB_AzizovaModel.sp_helpdiagrams">
  1181. <ResultMapping>
  1182. <ComplexTypeMapping TypeName="BB_AzizovaModel.sp_helpdiagrams_Result">
  1183. <ScalarProperty Name="Database" ColumnName="Database" />
  1184. <ScalarProperty Name="Name" ColumnName="Name" />
  1185. <ScalarProperty Name="ID" ColumnName="ID" />
  1186. <ScalarProperty Name="Owner" ColumnName="Owner" />
  1187. <ScalarProperty Name="OwnerID" ColumnName="OwnerID" />
  1188. </ComplexTypeMapping>
  1189. </ResultMapping>
  1190. </FunctionImportMapping>
  1191. <FunctionImportMapping FunctionImportName="sp_renamediagram" FunctionName="Хранилище BB_AzizovaModel.sp_renamediagram" />
  1192. <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище BB_AzizovaModel.sp_upgraddiagrams" />
  1193. <EntitySetMapping Name="Administrator">
  1194. <EntityTypeMapping TypeName="BB_AzizovaModel.Administrator">
  1195. <MappingFragment StoreEntitySet="Administrator">
  1196. <ScalarProperty Name="ID" ColumnName="ID" />
  1197. <ScalarProperty Name="Password" ColumnName="Password" />
  1198. <ScalarProperty Name="Login" ColumnName="Login" />
  1199. </MappingFragment>
  1200. </EntityTypeMapping>
  1201. </EntitySetMapping>
  1202. </EntityContainerMapping>
  1203. </Mapping>
  1204. </edmx:Mappings>
  1205. </edmx:Runtime>
  1206. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  1207. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  1208. <Connection>
  1209. <DesignerInfoPropertySet>
  1210. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  1211. </DesignerInfoPropertySet>
  1212. </Connection>
  1213. <Options>
  1214. <DesignerInfoPropertySet>
  1215. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  1216. <DesignerProperty Name="EnablePluralization" Value="false" />
  1217. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  1218. <DesignerProperty Name="UseLegacyProvider" Value="true" />
  1219. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  1220. </DesignerInfoPropertySet>
  1221. </Options>
  1222. <!-- Diagram content (shape and connector positions) -->
  1223. <Diagrams></Diagrams>
  1224. </Designer>
  1225. </edmx:Edmx>