BaseModel.edmx 48 KB

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