DataBase.edmx 46 KB

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