Model1.edmx 48 KB

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