Model1.edmx 50 KB

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