Model1.edmx 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  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_GrishinaModel" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  8. <EntityType Name="AttachedProduct">
  9. <Key>
  10. <PropertyRef Name="MainProductID" />
  11. <PropertyRef Name="AttachedProductID" />
  12. </Key>
  13. <Property Name="MainProductID" Type="int" Nullable="false" />
  14. <Property Name="AttachedProductID" Type="int" Nullable="false" />
  15. </EntityType>
  16. <EntityType Name="Client">
  17. <Key>
  18. <PropertyRef Name="ID" />
  19. </Key>
  20. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  21. <Property Name="Имя" Type="nvarchar" MaxLength="50" Nullable="false" />
  22. <Property Name="Фамилия" Type="nchar" MaxLength="10" />
  23. <Property Name="Отчество" Type="nvarchar" MaxLength="50" />
  24. <Property Name="Пол" Type="nchar" MaxLength="7" />
  25. <Property Name="Телефон" Type="nvarchar" MaxLength="20" Nullable="false" />
  26. <Property Name="ДатаРождения" Type="date" />
  27. <Property Name="Email" Type="nvarchar" MaxLength="255" />
  28. <Property Name="ДатаРегистрации" Type="datetime" Nullable="false" />
  29. <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" />
  30. </EntityType>
  31. <EntityType Name="ClientService">
  32. <Key>
  33. <PropertyRef Name="ID" />
  34. </Key>
  35. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  36. <Property Name="ClientID" Type="int" Nullable="false" />
  37. <Property Name="ServiceID" Type="int" Nullable="false" />
  38. <Property Name="StartTime" Type="datetime" Nullable="false" />
  39. <Property Name="Comment" Type="nvarchar(max)" />
  40. </EntityType>
  41. <EntityType Name="DocumentByService">
  42. <Key>
  43. <PropertyRef Name="ID" />
  44. </Key>
  45. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  46. <Property Name="ClientServiceID" Type="int" Nullable="false" />
  47. <Property Name="DocumentPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
  48. </EntityType>
  49. <EntityType Name="Gender">
  50. <Key>
  51. <PropertyRef Name="Code" />
  52. </Key>
  53. <Property Name="Code" Type="nchar" MaxLength="7" Nullable="false" />
  54. <Property Name="Name" Type="nvarchar" MaxLength="10" />
  55. </EntityType>
  56. <EntityType Name="Manufacturer">
  57. <Key>
  58. <PropertyRef Name="ID" />
  59. </Key>
  60. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  61. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  62. <Property Name="StartDate" Type="date" />
  63. <Property Name="Client" Type="varchar(max)" />
  64. </EntityType>
  65. <EntityType Name="Product">
  66. <Key>
  67. <PropertyRef Name="ID" />
  68. </Key>
  69. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  70. <Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
  71. <Property Name="Cost" Type="money" Nullable="false" />
  72. <Property Name="Description" Type="nvarchar(max)" />
  73. <Property Name="MainImagePath" Type="nvarchar" MaxLength="1000" />
  74. <Property Name="IsActive" Type="bit" Nullable="false" />
  75. <Property Name="ManufacturerID" Type="int" />
  76. </EntityType>
  77. <EntityType Name="ProductPhoto">
  78. <Key>
  79. <PropertyRef Name="ID" />
  80. </Key>
  81. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  82. <Property Name="ProductID" Type="int" Nullable="false" />
  83. <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
  84. </EntityType>
  85. <EntityType Name="ProductSale">
  86. <Key>
  87. <PropertyRef Name="ID" />
  88. </Key>
  89. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  90. <Property Name="SaleDate" Type="datetime" Nullable="false" />
  91. <Property Name="ProductID" Type="int" Nullable="false" />
  92. <Property Name="Quantity" Type="int" Nullable="false" />
  93. <Property Name="ClientServiceID" Type="int" />
  94. </EntityType>
  95. <EntityType Name="Service">
  96. <Key>
  97. <PropertyRef Name="ID" />
  98. </Key>
  99. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  100. <Property Name="НаименованиеУслугми" Type="nvarchar" MaxLength="100" Nullable="false" />
  101. <Property Name="Изображение" Type="nvarchar(max)" />
  102. <Property Name="Длительность" Type="nvarchar(max)" />
  103. <Property Name="Стоимость" Type="nvarchar(max)" Nullable="false" />
  104. <Property Name="ДействующаяСкидка" Type="char" MaxLength="50" />
  105. <Property Name="MainImagePath" Type="nvarchar" MaxLength="1000" />
  106. </EntityType>
  107. <EntityType Name="ServicePhoto">
  108. <Key>
  109. <PropertyRef Name="ID" />
  110. </Key>
  111. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  112. <Property Name="ServiceID" Type="int" Nullable="false" />
  113. <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
  114. </EntityType>
  115. <EntityType Name="sysdiagrams">
  116. <Key>
  117. <PropertyRef Name="diagram_id" />
  118. </Key>
  119. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  120. <Property Name="principal_id" Type="int" Nullable="false" />
  121. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  122. <Property Name="version" Type="int" />
  123. <Property Name="definition" Type="varbinary(max)" />
  124. </EntityType>
  125. <EntityType Name="Tag">
  126. <Key>
  127. <PropertyRef Name="ID" />
  128. </Key>
  129. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  130. <Property Name="Title" Type="nvarchar" MaxLength="30" Nullable="false" />
  131. <Property Name="Color" Type="nchar" MaxLength="6" Nullable="false" />
  132. </EntityType>
  133. <EntityType Name="TagOfClient">
  134. <Key>
  135. <PropertyRef Name="ClientID" />
  136. <PropertyRef Name="TagID" />
  137. </Key>
  138. <Property Name="ClientID" Type="int" Nullable="false" />
  139. <Property Name="TagID" Type="int" Nullable="false" />
  140. </EntityType>
  141. <Association Name="FK_AttachedProduct_Product">
  142. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  143. <End Role="AttachedProduct" Type="Self.AttachedProduct" Multiplicity="*" />
  144. <ReferentialConstraint>
  145. <Principal Role="Product">
  146. <PropertyRef Name="ID" />
  147. </Principal>
  148. <Dependent Role="AttachedProduct">
  149. <PropertyRef Name="MainProductID" />
  150. </Dependent>
  151. </ReferentialConstraint>
  152. </Association>
  153. <Association Name="FK_AttachedProduct_Product1">
  154. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  155. <End Role="AttachedProduct" Type="Self.AttachedProduct" Multiplicity="*" />
  156. <ReferentialConstraint>
  157. <Principal Role="Product">
  158. <PropertyRef Name="ID" />
  159. </Principal>
  160. <Dependent Role="AttachedProduct">
  161. <PropertyRef Name="AttachedProductID" />
  162. </Dependent>
  163. </ReferentialConstraint>
  164. </Association>
  165. <Association Name="FK_Client_Gender">
  166. <End Role="Gender" Type="Self.Gender" Multiplicity="0..1" />
  167. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  168. <ReferentialConstraint>
  169. <Principal Role="Gender">
  170. <PropertyRef Name="Code" />
  171. </Principal>
  172. <Dependent Role="Client">
  173. <PropertyRef Name="Пол" />
  174. </Dependent>
  175. </ReferentialConstraint>
  176. </Association>
  177. <Association Name="FK_ClientService_Client">
  178. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  179. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  180. <ReferentialConstraint>
  181. <Principal Role="Client">
  182. <PropertyRef Name="ID" />
  183. </Principal>
  184. <Dependent Role="ClientService">
  185. <PropertyRef Name="ClientID" />
  186. </Dependent>
  187. </ReferentialConstraint>
  188. </Association>
  189. <Association Name="FK_ClientService_Service">
  190. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  191. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  192. <ReferentialConstraint>
  193. <Principal Role="Service">
  194. <PropertyRef Name="ID" />
  195. </Principal>
  196. <Dependent Role="ClientService">
  197. <PropertyRef Name="ServiceID" />
  198. </Dependent>
  199. </ReferentialConstraint>
  200. </Association>
  201. <Association Name="FK_DocumentByService_ClientService">
  202. <End Role="ClientService" Type="Self.ClientService" Multiplicity="1" />
  203. <End Role="DocumentByService" Type="Self.DocumentByService" Multiplicity="*" />
  204. <ReferentialConstraint>
  205. <Principal Role="ClientService">
  206. <PropertyRef Name="ID" />
  207. </Principal>
  208. <Dependent Role="DocumentByService">
  209. <PropertyRef Name="ClientServiceID" />
  210. </Dependent>
  211. </ReferentialConstraint>
  212. </Association>
  213. <Association Name="FK_Product_Manufacturer">
  214. <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="0..1" />
  215. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  216. <ReferentialConstraint>
  217. <Principal Role="Manufacturer">
  218. <PropertyRef Name="ID" />
  219. </Principal>
  220. <Dependent Role="Product">
  221. <PropertyRef Name="ManufacturerID" />
  222. </Dependent>
  223. </ReferentialConstraint>
  224. </Association>
  225. <Association Name="FK_ProductPhoto_Product">
  226. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  227. <End Role="ProductPhoto" Type="Self.ProductPhoto" Multiplicity="*" />
  228. <ReferentialConstraint>
  229. <Principal Role="Product">
  230. <PropertyRef Name="ID" />
  231. </Principal>
  232. <Dependent Role="ProductPhoto">
  233. <PropertyRef Name="ProductID" />
  234. </Dependent>
  235. </ReferentialConstraint>
  236. </Association>
  237. <Association Name="FK_ProductSale_ClientService">
  238. <End Role="ClientService" Type="Self.ClientService" Multiplicity="0..1" />
  239. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  240. <ReferentialConstraint>
  241. <Principal Role="ClientService">
  242. <PropertyRef Name="ID" />
  243. </Principal>
  244. <Dependent Role="ProductSale">
  245. <PropertyRef Name="ClientServiceID" />
  246. </Dependent>
  247. </ReferentialConstraint>
  248. </Association>
  249. <Association Name="FK_ProductSale_Product">
  250. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  251. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  252. <ReferentialConstraint>
  253. <Principal Role="Product">
  254. <PropertyRef Name="ID" />
  255. </Principal>
  256. <Dependent Role="ProductSale">
  257. <PropertyRef Name="ProductID" />
  258. </Dependent>
  259. </ReferentialConstraint>
  260. </Association>
  261. <Association Name="FK_ServicePhoto_Service">
  262. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  263. <End Role="ServicePhoto" Type="Self.ServicePhoto" Multiplicity="*" />
  264. <ReferentialConstraint>
  265. <Principal Role="Service">
  266. <PropertyRef Name="ID" />
  267. </Principal>
  268. <Dependent Role="ServicePhoto">
  269. <PropertyRef Name="ServiceID" />
  270. </Dependent>
  271. </ReferentialConstraint>
  272. </Association>
  273. <Association Name="FK_TagOfClient_Client">
  274. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  275. <End Role="TagOfClient" Type="Self.TagOfClient" Multiplicity="*" />
  276. <ReferentialConstraint>
  277. <Principal Role="Client">
  278. <PropertyRef Name="ID" />
  279. </Principal>
  280. <Dependent Role="TagOfClient">
  281. <PropertyRef Name="ClientID" />
  282. </Dependent>
  283. </ReferentialConstraint>
  284. </Association>
  285. <Association Name="FK_TagOfClient_Tag">
  286. <End Role="Tag" Type="Self.Tag" Multiplicity="1" />
  287. <End Role="TagOfClient" Type="Self.TagOfClient" Multiplicity="*" />
  288. <ReferentialConstraint>
  289. <Principal Role="Tag">
  290. <PropertyRef Name="ID" />
  291. </Principal>
  292. <Dependent Role="TagOfClient">
  293. <PropertyRef Name="TagID" />
  294. </Dependent>
  295. </ReferentialConstraint>
  296. </Association>
  297. <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
  298. <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  299. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  300. <Parameter Name="owner_id" Type="int" Mode="In" />
  301. <Parameter Name="version" Type="int" Mode="In" />
  302. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  303. </Function>
  304. <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  305. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  306. <Parameter Name="owner_id" Type="int" Mode="In" />
  307. <Parameter Name="version" Type="int" Mode="In" />
  308. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  309. </Function>
  310. <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  311. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  312. <Parameter Name="owner_id" Type="int" Mode="In" />
  313. </Function>
  314. <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  315. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  316. <Parameter Name="owner_id" Type="int" Mode="In" />
  317. </Function>
  318. <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  319. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  320. <Parameter Name="owner_id" Type="int" Mode="In" />
  321. </Function>
  322. <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  323. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  324. <Parameter Name="owner_id" Type="int" Mode="In" />
  325. <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
  326. </Function>
  327. <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  328. <EntityContainer Name="Хранилище BB_GrishinaModelContainer">
  329. <EntitySet Name="AttachedProduct" EntityType="Self.AttachedProduct" Schema="dbo" store:Type="Tables" />
  330. <EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" />
  331. <EntitySet Name="ClientService" EntityType="Self.ClientService" Schema="dbo" store:Type="Tables" />
  332. <EntitySet Name="DocumentByService" EntityType="Self.DocumentByService" Schema="dbo" store:Type="Tables" />
  333. <EntitySet Name="Gender" EntityType="Self.Gender" Schema="dbo" store:Type="Tables" />
  334. <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" Schema="dbo" store:Type="Tables" />
  335. <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
  336. <EntitySet Name="ProductPhoto" EntityType="Self.ProductPhoto" Schema="dbo" store:Type="Tables" />
  337. <EntitySet Name="ProductSale" EntityType="Self.ProductSale" Schema="dbo" store:Type="Tables" />
  338. <EntitySet Name="Service" EntityType="Self.Service" Schema="dbo" store:Type="Tables" />
  339. <EntitySet Name="ServicePhoto" EntityType="Self.ServicePhoto" Schema="dbo" store:Type="Tables" />
  340. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  341. <EntitySet Name="Tag" EntityType="Self.Tag" Schema="dbo" store:Type="Tables" />
  342. <EntitySet Name="TagOfClient" EntityType="Self.TagOfClient" Schema="dbo" store:Type="Tables" />
  343. <AssociationSet Name="FK_AttachedProduct_Product" Association="Self.FK_AttachedProduct_Product">
  344. <End Role="Product" EntitySet="Product" />
  345. <End Role="AttachedProduct" EntitySet="AttachedProduct" />
  346. </AssociationSet>
  347. <AssociationSet Name="FK_AttachedProduct_Product1" Association="Self.FK_AttachedProduct_Product1">
  348. <End Role="Product" EntitySet="Product" />
  349. <End Role="AttachedProduct" EntitySet="AttachedProduct" />
  350. </AssociationSet>
  351. <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
  352. <End Role="Gender" EntitySet="Gender" />
  353. <End Role="Client" EntitySet="Client" />
  354. </AssociationSet>
  355. <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
  356. <End Role="Client" EntitySet="Client" />
  357. <End Role="ClientService" EntitySet="ClientService" />
  358. </AssociationSet>
  359. <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
  360. <End Role="Service" EntitySet="Service" />
  361. <End Role="ClientService" EntitySet="ClientService" />
  362. </AssociationSet>
  363. <AssociationSet Name="FK_DocumentByService_ClientService" Association="Self.FK_DocumentByService_ClientService">
  364. <End Role="ClientService" EntitySet="ClientService" />
  365. <End Role="DocumentByService" EntitySet="DocumentByService" />
  366. </AssociationSet>
  367. <AssociationSet Name="FK_Product_Manufacturer" Association="Self.FK_Product_Manufacturer">
  368. <End Role="Manufacturer" EntitySet="Manufacturer" />
  369. <End Role="Product" EntitySet="Product" />
  370. </AssociationSet>
  371. <AssociationSet Name="FK_ProductPhoto_Product" Association="Self.FK_ProductPhoto_Product">
  372. <End Role="Product" EntitySet="Product" />
  373. <End Role="ProductPhoto" EntitySet="ProductPhoto" />
  374. </AssociationSet>
  375. <AssociationSet Name="FK_ProductSale_ClientService" Association="Self.FK_ProductSale_ClientService">
  376. <End Role="ClientService" EntitySet="ClientService" />
  377. <End Role="ProductSale" EntitySet="ProductSale" />
  378. </AssociationSet>
  379. <AssociationSet Name="FK_ProductSale_Product" Association="Self.FK_ProductSale_Product">
  380. <End Role="Product" EntitySet="Product" />
  381. <End Role="ProductSale" EntitySet="ProductSale" />
  382. </AssociationSet>
  383. <AssociationSet Name="FK_ServicePhoto_Service" Association="Self.FK_ServicePhoto_Service">
  384. <End Role="Service" EntitySet="Service" />
  385. <End Role="ServicePhoto" EntitySet="ServicePhoto" />
  386. </AssociationSet>
  387. <AssociationSet Name="FK_TagOfClient_Client" Association="Self.FK_TagOfClient_Client">
  388. <End Role="Client" EntitySet="Client" />
  389. <End Role="TagOfClient" EntitySet="TagOfClient" />
  390. </AssociationSet>
  391. <AssociationSet Name="FK_TagOfClient_Tag" Association="Self.FK_TagOfClient_Tag">
  392. <End Role="Tag" EntitySet="Tag" />
  393. <End Role="TagOfClient" EntitySet="TagOfClient" />
  394. </AssociationSet>
  395. </EntityContainer>
  396. </Schema></edmx:StorageModels>
  397. <!-- CSDL content -->
  398. <edmx:ConceptualModels>
  399. <Schema Namespace="BB_GrishinaModel" 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">
  400. <EntityType Name="Client">
  401. <Key>
  402. <PropertyRef Name="ID" />
  403. </Key>
  404. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  405. <Property Name="Имя" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  406. <Property Name="Фамилия" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
  407. <Property Name="Отчество" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  408. <Property Name="Пол" Type="String" MaxLength="7" FixedLength="true" Unicode="true" />
  409. <Property Name="Телефон" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  410. <Property Name="ДатаРождения" Type="DateTime" Precision="0" />
  411. <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  412. <Property Name="ДатаРегистрации" Type="DateTime" Nullable="false" Precision="3" />
  413. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  414. <NavigationProperty Name="Gender" Relationship="Self.FK_Client_Gender" FromRole="Client" ToRole="Gender" />
  415. <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Client" FromRole="Client" ToRole="ClientService" />
  416. <NavigationProperty Name="Tag" Relationship="Self.TagOfClient" FromRole="Client" ToRole="Tag" />
  417. </EntityType>
  418. <EntityType Name="ClientService">
  419. <Key>
  420. <PropertyRef Name="ID" />
  421. </Key>
  422. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  423. <Property Name="ClientID" Type="Int32" Nullable="false" />
  424. <Property Name="ServiceID" Type="Int32" Nullable="false" />
  425. <Property Name="StartTime" Type="DateTime" Nullable="false" Precision="3" />
  426. <Property Name="Comment" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  427. <NavigationProperty Name="Client" Relationship="Self.FK_ClientService_Client" FromRole="ClientService" ToRole="Client" />
  428. <NavigationProperty Name="Service" Relationship="Self.FK_ClientService_Service" FromRole="ClientService" ToRole="Service" />
  429. <NavigationProperty Name="DocumentByService" Relationship="Self.FK_DocumentByService_ClientService" FromRole="ClientService" ToRole="DocumentByService" />
  430. <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_ClientService" FromRole="ClientService" ToRole="ProductSale" />
  431. </EntityType>
  432. <EntityType Name="DocumentByService">
  433. <Key>
  434. <PropertyRef Name="ID" />
  435. </Key>
  436. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  437. <Property Name="ClientServiceID" Type="Int32" Nullable="false" />
  438. <Property Name="DocumentPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  439. <NavigationProperty Name="ClientService" Relationship="Self.FK_DocumentByService_ClientService" FromRole="DocumentByService" ToRole="ClientService" />
  440. </EntityType>
  441. <EntityType Name="Gender">
  442. <Key>
  443. <PropertyRef Name="Code" />
  444. </Key>
  445. <Property Name="Code" Type="String" MaxLength="7" FixedLength="true" Unicode="true" Nullable="false" />
  446. <Property Name="Name" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  447. <NavigationProperty Name="Client" Relationship="Self.FK_Client_Gender" FromRole="Gender" ToRole="Client" />
  448. </EntityType>
  449. <EntityType Name="Manufacturer">
  450. <Key>
  451. <PropertyRef Name="ID" />
  452. </Key>
  453. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  454. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  455. <Property Name="StartDate" Type="DateTime" Precision="0" />
  456. <Property Name="Client" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
  457. <NavigationProperty Name="Product" Relationship="Self.FK_Product_Manufacturer" FromRole="Manufacturer" ToRole="Product" />
  458. </EntityType>
  459. <EntityType Name="Product">
  460. <Key>
  461. <PropertyRef Name="ID" />
  462. </Key>
  463. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  464. <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  465. <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  466. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  467. <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  468. <Property Name="IsActive" Type="Boolean" Nullable="false" />
  469. <Property Name="ManufacturerID" Type="Int32" />
  470. <NavigationProperty Name="Manufacturer" Relationship="Self.FK_Product_Manufacturer" FromRole="Product" ToRole="Manufacturer" />
  471. <NavigationProperty Name="ProductPhoto" Relationship="Self.FK_ProductPhoto_Product" FromRole="Product" ToRole="ProductPhoto" />
  472. <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_Product" FromRole="Product" ToRole="ProductSale" />
  473. <NavigationProperty Name="Product1" Relationship="Self.AttachedProduct" FromRole="Product" ToRole="Product1" />
  474. <NavigationProperty Name="Product2" Relationship="Self.AttachedProduct" FromRole="Product1" ToRole="Product" />
  475. </EntityType>
  476. <EntityType Name="ProductPhoto">
  477. <Key>
  478. <PropertyRef Name="ID" />
  479. </Key>
  480. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  481. <Property Name="ProductID" Type="Int32" Nullable="false" />
  482. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  483. <NavigationProperty Name="Product" Relationship="Self.FK_ProductPhoto_Product" FromRole="ProductPhoto" ToRole="Product" />
  484. </EntityType>
  485. <EntityType Name="ProductSale">
  486. <Key>
  487. <PropertyRef Name="ID" />
  488. </Key>
  489. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  490. <Property Name="SaleDate" Type="DateTime" Nullable="false" Precision="3" />
  491. <Property Name="ProductID" Type="Int32" Nullable="false" />
  492. <Property Name="Quantity" Type="Int32" Nullable="false" />
  493. <Property Name="ClientServiceID" Type="Int32" />
  494. <NavigationProperty Name="ClientService" Relationship="Self.FK_ProductSale_ClientService" FromRole="ProductSale" ToRole="ClientService" />
  495. <NavigationProperty Name="Product" Relationship="Self.FK_ProductSale_Product" FromRole="ProductSale" ToRole="Product" />
  496. </EntityType>
  497. <EntityType Name="Service">
  498. <Key>
  499. <PropertyRef Name="ID" />
  500. </Key>
  501. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  502. <Property Name="НаименованиеУслугми" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  503. <Property Name="Изображение" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  504. <Property Name="Длительность" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  505. <Property Name="Стоимость" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  506. <Property Name="ДействующаяСкидка" Type="String" MaxLength="50" FixedLength="true" Unicode="false" />
  507. <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  508. <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Service" FromRole="Service" ToRole="ClientService" />
  509. <NavigationProperty Name="ServicePhoto" Relationship="Self.FK_ServicePhoto_Service" FromRole="Service" ToRole="ServicePhoto" />
  510. </EntityType>
  511. <EntityType Name="ServicePhoto">
  512. <Key>
  513. <PropertyRef Name="ID" />
  514. </Key>
  515. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  516. <Property Name="ServiceID" Type="Int32" Nullable="false" />
  517. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  518. <NavigationProperty Name="Service" Relationship="Self.FK_ServicePhoto_Service" FromRole="ServicePhoto" ToRole="Service" />
  519. </EntityType>
  520. <EntityType Name="sysdiagrams">
  521. <Key>
  522. <PropertyRef Name="diagram_id" />
  523. </Key>
  524. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  525. <Property Name="principal_id" Type="Int32" Nullable="false" />
  526. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  527. <Property Name="version" Type="Int32" />
  528. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  529. </EntityType>
  530. <EntityType Name="Tag">
  531. <Key>
  532. <PropertyRef Name="ID" />
  533. </Key>
  534. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  535. <Property Name="Title" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  536. <Property Name="Color" Type="String" MaxLength="6" FixedLength="true" Unicode="true" Nullable="false" />
  537. <NavigationProperty Name="Client" Relationship="Self.TagOfClient" FromRole="Tag" ToRole="Client" />
  538. </EntityType>
  539. <Association Name="FK_Client_Gender">
  540. <End Role="Gender" Type="Self.Gender" Multiplicity="0..1" />
  541. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  542. <ReferentialConstraint>
  543. <Principal Role="Gender">
  544. <PropertyRef Name="Code" />
  545. </Principal>
  546. <Dependent Role="Client">
  547. <PropertyRef Name="Пол" />
  548. </Dependent>
  549. </ReferentialConstraint>
  550. </Association>
  551. <Association Name="FK_ClientService_Client">
  552. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  553. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  554. <ReferentialConstraint>
  555. <Principal Role="Client">
  556. <PropertyRef Name="ID" />
  557. </Principal>
  558. <Dependent Role="ClientService">
  559. <PropertyRef Name="ClientID" />
  560. </Dependent>
  561. </ReferentialConstraint>
  562. </Association>
  563. <Association Name="FK_ClientService_Service">
  564. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  565. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  566. <ReferentialConstraint>
  567. <Principal Role="Service">
  568. <PropertyRef Name="ID" />
  569. </Principal>
  570. <Dependent Role="ClientService">
  571. <PropertyRef Name="ServiceID" />
  572. </Dependent>
  573. </ReferentialConstraint>
  574. </Association>
  575. <Association Name="FK_DocumentByService_ClientService">
  576. <End Role="ClientService" Type="Self.ClientService" Multiplicity="1" />
  577. <End Role="DocumentByService" Type="Self.DocumentByService" Multiplicity="*" />
  578. <ReferentialConstraint>
  579. <Principal Role="ClientService">
  580. <PropertyRef Name="ID" />
  581. </Principal>
  582. <Dependent Role="DocumentByService">
  583. <PropertyRef Name="ClientServiceID" />
  584. </Dependent>
  585. </ReferentialConstraint>
  586. </Association>
  587. <Association Name="FK_ProductSale_ClientService">
  588. <End Role="ClientService" Type="Self.ClientService" Multiplicity="0..1" />
  589. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  590. <ReferentialConstraint>
  591. <Principal Role="ClientService">
  592. <PropertyRef Name="ID" />
  593. </Principal>
  594. <Dependent Role="ProductSale">
  595. <PropertyRef Name="ClientServiceID" />
  596. </Dependent>
  597. </ReferentialConstraint>
  598. </Association>
  599. <Association Name="FK_Product_Manufacturer">
  600. <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="0..1" />
  601. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  602. <ReferentialConstraint>
  603. <Principal Role="Manufacturer">
  604. <PropertyRef Name="ID" />
  605. </Principal>
  606. <Dependent Role="Product">
  607. <PropertyRef Name="ManufacturerID" />
  608. </Dependent>
  609. </ReferentialConstraint>
  610. </Association>
  611. <Association Name="FK_ProductPhoto_Product">
  612. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  613. <End Role="ProductPhoto" Type="Self.ProductPhoto" Multiplicity="*" />
  614. <ReferentialConstraint>
  615. <Principal Role="Product">
  616. <PropertyRef Name="ID" />
  617. </Principal>
  618. <Dependent Role="ProductPhoto">
  619. <PropertyRef Name="ProductID" />
  620. </Dependent>
  621. </ReferentialConstraint>
  622. </Association>
  623. <Association Name="FK_ProductSale_Product">
  624. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  625. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  626. <ReferentialConstraint>
  627. <Principal Role="Product">
  628. <PropertyRef Name="ID" />
  629. </Principal>
  630. <Dependent Role="ProductSale">
  631. <PropertyRef Name="ProductID" />
  632. </Dependent>
  633. </ReferentialConstraint>
  634. </Association>
  635. <Association Name="FK_ServicePhoto_Service">
  636. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  637. <End Role="ServicePhoto" Type="Self.ServicePhoto" Multiplicity="*" />
  638. <ReferentialConstraint>
  639. <Principal Role="Service">
  640. <PropertyRef Name="ID" />
  641. </Principal>
  642. <Dependent Role="ServicePhoto">
  643. <PropertyRef Name="ServiceID" />
  644. </Dependent>
  645. </ReferentialConstraint>
  646. </Association>
  647. <Association Name="AttachedProduct">
  648. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  649. <End Role="Product1" Type="Self.Product" Multiplicity="*" />
  650. </Association>
  651. <Association Name="TagOfClient">
  652. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  653. <End Role="Tag" Type="Self.Tag" Multiplicity="*" />
  654. </Association>
  655. <EntityContainer Name="BB_GrishinaEntities" annotation:LazyLoadingEnabled="true">
  656. <EntitySet Name="Client" EntityType="Self.Client" />
  657. <EntitySet Name="ClientService" EntityType="Self.ClientService" />
  658. <EntitySet Name="DocumentByService" EntityType="Self.DocumentByService" />
  659. <EntitySet Name="Gender" EntityType="Self.Gender" />
  660. <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" />
  661. <EntitySet Name="Product" EntityType="Self.Product" />
  662. <EntitySet Name="ProductPhoto" EntityType="Self.ProductPhoto" />
  663. <EntitySet Name="ProductSale" EntityType="Self.ProductSale" />
  664. <EntitySet Name="Service" EntityType="Self.Service" />
  665. <EntitySet Name="ServicePhoto" EntityType="Self.ServicePhoto" />
  666. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  667. <EntitySet Name="Tag" EntityType="Self.Tag" />
  668. <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
  669. <End Role="Gender" EntitySet="Gender" />
  670. <End Role="Client" EntitySet="Client" />
  671. </AssociationSet>
  672. <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
  673. <End Role="Client" EntitySet="Client" />
  674. <End Role="ClientService" EntitySet="ClientService" />
  675. </AssociationSet>
  676. <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
  677. <End Role="Service" EntitySet="Service" />
  678. <End Role="ClientService" EntitySet="ClientService" />
  679. </AssociationSet>
  680. <AssociationSet Name="FK_DocumentByService_ClientService" Association="Self.FK_DocumentByService_ClientService">
  681. <End Role="ClientService" EntitySet="ClientService" />
  682. <End Role="DocumentByService" EntitySet="DocumentByService" />
  683. </AssociationSet>
  684. <AssociationSet Name="FK_ProductSale_ClientService" Association="Self.FK_ProductSale_ClientService">
  685. <End Role="ClientService" EntitySet="ClientService" />
  686. <End Role="ProductSale" EntitySet="ProductSale" />
  687. </AssociationSet>
  688. <AssociationSet Name="FK_Product_Manufacturer" Association="Self.FK_Product_Manufacturer">
  689. <End Role="Manufacturer" EntitySet="Manufacturer" />
  690. <End Role="Product" EntitySet="Product" />
  691. </AssociationSet>
  692. <AssociationSet Name="FK_ProductPhoto_Product" Association="Self.FK_ProductPhoto_Product">
  693. <End Role="Product" EntitySet="Product" />
  694. <End Role="ProductPhoto" EntitySet="ProductPhoto" />
  695. </AssociationSet>
  696. <AssociationSet Name="FK_ProductSale_Product" Association="Self.FK_ProductSale_Product">
  697. <End Role="Product" EntitySet="Product" />
  698. <End Role="ProductSale" EntitySet="ProductSale" />
  699. </AssociationSet>
  700. <AssociationSet Name="FK_ServicePhoto_Service" Association="Self.FK_ServicePhoto_Service">
  701. <End Role="Service" EntitySet="Service" />
  702. <End Role="ServicePhoto" EntitySet="ServicePhoto" />
  703. </AssociationSet>
  704. <AssociationSet Name="AttachedProduct" Association="Self.AttachedProduct">
  705. <End Role="Product" EntitySet="Product" />
  706. <End Role="Product1" EntitySet="Product" />
  707. </AssociationSet>
  708. <AssociationSet Name="TagOfClient" Association="Self.TagOfClient">
  709. <End Role="Client" EntitySet="Client" />
  710. <End Role="Tag" EntitySet="Tag" />
  711. </AssociationSet>
  712. <FunctionImport Name="sp_alterdiagram">
  713. <Parameter Name="diagramname" Mode="In" Type="String" />
  714. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  715. <Parameter Name="version" Mode="In" Type="Int32" />
  716. <Parameter Name="definition" Mode="In" Type="Binary" />
  717. </FunctionImport>
  718. <FunctionImport Name="sp_creatediagram">
  719. <Parameter Name="diagramname" Mode="In" Type="String" />
  720. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  721. <Parameter Name="version" Mode="In" Type="Int32" />
  722. <Parameter Name="definition" Mode="In" Type="Binary" />
  723. </FunctionImport>
  724. <FunctionImport Name="sp_dropdiagram">
  725. <Parameter Name="diagramname" Mode="In" Type="String" />
  726. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  727. </FunctionImport>
  728. <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(BB_GrishinaModel.sp_helpdiagramdefinition_Result)">
  729. <Parameter Name="diagramname" Mode="In" Type="String" />
  730. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  731. </FunctionImport>
  732. <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(BB_GrishinaModel.sp_helpdiagrams_Result)">
  733. <Parameter Name="diagramname" Mode="In" Type="String" />
  734. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  735. </FunctionImport>
  736. <FunctionImport Name="sp_renamediagram">
  737. <Parameter Name="diagramname" Mode="In" Type="String" />
  738. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  739. <Parameter Name="new_diagramname" Mode="In" Type="String" />
  740. </FunctionImport>
  741. <FunctionImport Name="sp_upgraddiagrams" />
  742. </EntityContainer>
  743. <ComplexType Name="sp_helpdiagramdefinition_Result">
  744. <Property Type="Int32" Name="version" Nullable="true" />
  745. <Property Type="Binary" Name="definition" Nullable="true" />
  746. </ComplexType>
  747. <ComplexType Name="sp_helpdiagrams_Result">
  748. <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
  749. <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
  750. <Property Type="Int32" Name="ID" Nullable="false" />
  751. <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
  752. <Property Type="Int32" Name="OwnerID" Nullable="false" />
  753. </ComplexType>
  754. </Schema>
  755. </edmx:ConceptualModels>
  756. <!-- C-S mapping content -->
  757. <edmx:Mappings>
  758. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  759. <EntityContainerMapping StorageEntityContainer="Хранилище BB_GrishinaModelContainer" CdmEntityContainer="BB_GrishinaEntities">
  760. <EntitySetMapping Name="Client">
  761. <EntityTypeMapping TypeName="BB_GrishinaModel.Client">
  762. <MappingFragment StoreEntitySet="Client">
  763. <ScalarProperty Name="ID" ColumnName="ID" />
  764. <ScalarProperty Name="Имя" ColumnName="Имя" />
  765. <ScalarProperty Name="Фамилия" ColumnName="Фамилия" />
  766. <ScalarProperty Name="Отчество" ColumnName="Отчество" />
  767. <ScalarProperty Name="Пол" ColumnName="Пол" />
  768. <ScalarProperty Name="Телефон" ColumnName="Телефон" />
  769. <ScalarProperty Name="ДатаРождения" ColumnName="ДатаРождения" />
  770. <ScalarProperty Name="Email" ColumnName="Email" />
  771. <ScalarProperty Name="ДатаРегистрации" ColumnName="ДатаРегистрации" />
  772. <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
  773. </MappingFragment>
  774. </EntityTypeMapping>
  775. </EntitySetMapping>
  776. <EntitySetMapping Name="ClientService">
  777. <EntityTypeMapping TypeName="BB_GrishinaModel.ClientService">
  778. <MappingFragment StoreEntitySet="ClientService">
  779. <ScalarProperty Name="ID" ColumnName="ID" />
  780. <ScalarProperty Name="ClientID" ColumnName="ClientID" />
  781. <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
  782. <ScalarProperty Name="StartTime" ColumnName="StartTime" />
  783. <ScalarProperty Name="Comment" ColumnName="Comment" />
  784. </MappingFragment>
  785. </EntityTypeMapping>
  786. </EntitySetMapping>
  787. <EntitySetMapping Name="DocumentByService">
  788. <EntityTypeMapping TypeName="BB_GrishinaModel.DocumentByService">
  789. <MappingFragment StoreEntitySet="DocumentByService">
  790. <ScalarProperty Name="ID" ColumnName="ID" />
  791. <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
  792. <ScalarProperty Name="DocumentPath" ColumnName="DocumentPath" />
  793. </MappingFragment>
  794. </EntityTypeMapping>
  795. </EntitySetMapping>
  796. <EntitySetMapping Name="Gender">
  797. <EntityTypeMapping TypeName="BB_GrishinaModel.Gender">
  798. <MappingFragment StoreEntitySet="Gender">
  799. <ScalarProperty Name="Code" ColumnName="Code" />
  800. <ScalarProperty Name="Name" ColumnName="Name" />
  801. </MappingFragment>
  802. </EntityTypeMapping>
  803. </EntitySetMapping>
  804. <EntitySetMapping Name="Manufacturer">
  805. <EntityTypeMapping TypeName="BB_GrishinaModel.Manufacturer">
  806. <MappingFragment StoreEntitySet="Manufacturer">
  807. <ScalarProperty Name="ID" ColumnName="ID" />
  808. <ScalarProperty Name="Name" ColumnName="Name" />
  809. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  810. <ScalarProperty Name="Client" ColumnName="Client" />
  811. </MappingFragment>
  812. </EntityTypeMapping>
  813. </EntitySetMapping>
  814. <EntitySetMapping Name="Product">
  815. <EntityTypeMapping TypeName="BB_GrishinaModel.Product">
  816. <MappingFragment StoreEntitySet="Product">
  817. <ScalarProperty Name="ID" ColumnName="ID" />
  818. <ScalarProperty Name="Title" ColumnName="Title" />
  819. <ScalarProperty Name="Cost" ColumnName="Cost" />
  820. <ScalarProperty Name="Description" ColumnName="Description" />
  821. <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
  822. <ScalarProperty Name="IsActive" ColumnName="IsActive" />
  823. <ScalarProperty Name="ManufacturerID" ColumnName="ManufacturerID" />
  824. </MappingFragment>
  825. </EntityTypeMapping>
  826. </EntitySetMapping>
  827. <EntitySetMapping Name="ProductPhoto">
  828. <EntityTypeMapping TypeName="BB_GrishinaModel.ProductPhoto">
  829. <MappingFragment StoreEntitySet="ProductPhoto">
  830. <ScalarProperty Name="ID" ColumnName="ID" />
  831. <ScalarProperty Name="ProductID" ColumnName="ProductID" />
  832. <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
  833. </MappingFragment>
  834. </EntityTypeMapping>
  835. </EntitySetMapping>
  836. <EntitySetMapping Name="ProductSale">
  837. <EntityTypeMapping TypeName="BB_GrishinaModel.ProductSale">
  838. <MappingFragment StoreEntitySet="ProductSale">
  839. <ScalarProperty Name="ID" ColumnName="ID" />
  840. <ScalarProperty Name="SaleDate" ColumnName="SaleDate" />
  841. <ScalarProperty Name="ProductID" ColumnName="ProductID" />
  842. <ScalarProperty Name="Quantity" ColumnName="Quantity" />
  843. <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
  844. </MappingFragment>
  845. </EntityTypeMapping>
  846. </EntitySetMapping>
  847. <EntitySetMapping Name="Service">
  848. <EntityTypeMapping TypeName="BB_GrishinaModel.Service">
  849. <MappingFragment StoreEntitySet="Service">
  850. <ScalarProperty Name="ID" ColumnName="ID" />
  851. <ScalarProperty Name="НаименованиеУслугми" ColumnName="НаименованиеУслугми" />
  852. <ScalarProperty Name="Изображение" ColumnName="Изображение" />
  853. <ScalarProperty Name="Длительность" ColumnName="Длительность" />
  854. <ScalarProperty Name="Стоимость" ColumnName="Стоимость" />
  855. <ScalarProperty Name="ДействующаяСкидка" ColumnName="ДействующаяСкидка" />
  856. <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
  857. </MappingFragment>
  858. </EntityTypeMapping>
  859. </EntitySetMapping>
  860. <EntitySetMapping Name="ServicePhoto">
  861. <EntityTypeMapping TypeName="BB_GrishinaModel.ServicePhoto">
  862. <MappingFragment StoreEntitySet="ServicePhoto">
  863. <ScalarProperty Name="ID" ColumnName="ID" />
  864. <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
  865. <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
  866. </MappingFragment>
  867. </EntityTypeMapping>
  868. </EntitySetMapping>
  869. <EntitySetMapping Name="sysdiagrams">
  870. <EntityTypeMapping TypeName="BB_GrishinaModel.sysdiagrams">
  871. <MappingFragment StoreEntitySet="sysdiagrams">
  872. <ScalarProperty Name="name" ColumnName="name" />
  873. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  874. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  875. <ScalarProperty Name="version" ColumnName="version" />
  876. <ScalarProperty Name="definition" ColumnName="definition" />
  877. </MappingFragment>
  878. </EntityTypeMapping>
  879. </EntitySetMapping>
  880. <EntitySetMapping Name="Tag">
  881. <EntityTypeMapping TypeName="BB_GrishinaModel.Tag">
  882. <MappingFragment StoreEntitySet="Tag">
  883. <ScalarProperty Name="ID" ColumnName="ID" />
  884. <ScalarProperty Name="Title" ColumnName="Title" />
  885. <ScalarProperty Name="Color" ColumnName="Color" />
  886. </MappingFragment>
  887. </EntityTypeMapping>
  888. </EntitySetMapping>
  889. <AssociationSetMapping Name="AttachedProduct" TypeName="BB_GrishinaModel.AttachedProduct" StoreEntitySet="AttachedProduct">
  890. <EndProperty Name="Product">
  891. <ScalarProperty Name="ID" ColumnName="MainProductID" />
  892. </EndProperty>
  893. <EndProperty Name="Product1">
  894. <ScalarProperty Name="ID" ColumnName="AttachedProductID" />
  895. </EndProperty>
  896. </AssociationSetMapping>
  897. <AssociationSetMapping Name="TagOfClient" TypeName="BB_GrishinaModel.TagOfClient" StoreEntitySet="TagOfClient">
  898. <EndProperty Name="Client">
  899. <ScalarProperty Name="ID" ColumnName="ClientID" />
  900. </EndProperty>
  901. <EndProperty Name="Tag">
  902. <ScalarProperty Name="ID" ColumnName="TagID" />
  903. </EndProperty>
  904. </AssociationSetMapping>
  905. <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище BB_GrishinaModel.sp_alterdiagram" />
  906. <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище BB_GrishinaModel.sp_creatediagram" />
  907. <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище BB_GrishinaModel.sp_dropdiagram" />
  908. <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище BB_GrishinaModel.sp_helpdiagramdefinition">
  909. <ResultMapping>
  910. <ComplexTypeMapping TypeName="BB_GrishinaModel.sp_helpdiagramdefinition_Result">
  911. <ScalarProperty Name="version" ColumnName="version" />
  912. <ScalarProperty Name="definition" ColumnName="definition" />
  913. </ComplexTypeMapping>
  914. </ResultMapping>
  915. </FunctionImportMapping>
  916. <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище BB_GrishinaModel.sp_helpdiagrams">
  917. <ResultMapping>
  918. <ComplexTypeMapping TypeName="BB_GrishinaModel.sp_helpdiagrams_Result">
  919. <ScalarProperty Name="Database" ColumnName="Database" />
  920. <ScalarProperty Name="Name" ColumnName="Name" />
  921. <ScalarProperty Name="ID" ColumnName="ID" />
  922. <ScalarProperty Name="Owner" ColumnName="Owner" />
  923. <ScalarProperty Name="OwnerID" ColumnName="OwnerID" />
  924. </ComplexTypeMapping>
  925. </ResultMapping>
  926. </FunctionImportMapping>
  927. <FunctionImportMapping FunctionImportName="sp_renamediagram" FunctionName="Хранилище BB_GrishinaModel.sp_renamediagram" />
  928. <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище BB_GrishinaModel.sp_upgraddiagrams" />
  929. </EntityContainerMapping>
  930. </Mapping>
  931. </edmx:Mappings>
  932. </edmx:Runtime>
  933. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  934. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  935. <Connection>
  936. <DesignerInfoPropertySet>
  937. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  938. </DesignerInfoPropertySet>
  939. </Connection>
  940. <Options>
  941. <DesignerInfoPropertySet>
  942. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  943. <DesignerProperty Name="EnablePluralization" Value="false" />
  944. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  945. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  946. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  947. </DesignerInfoPropertySet>
  948. </Options>
  949. <!-- Diagram content (shape and connector positions) -->
  950. <Diagrams></Diagrams>
  951. </Designer>
  952. </edmx:Edmx>