SaloonModel.edmx 53 KB

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