Model1.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="Хранилище school5Model" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  8. <EntityType Name="AttachedProduct">
  9. <Key>
  10. <PropertyRef Name="MainProductID" />
  11. <PropertyRef Name="AttachedProductID" />
  12. </Key>
  13. <Property Name="MainProductID" Type="int" Nullable="false" />
  14. <Property Name="AttachedProductID" Type="int" Nullable="false" />
  15. </EntityType>
  16. <EntityType Name="Client">
  17. <Key>
  18. <PropertyRef Name="ID" />
  19. </Key>
  20. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  21. <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
  22. <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
  23. <Property Name="Patronymic" Type="nvarchar" MaxLength="50" />
  24. <Property Name="Birthday" Type="date" />
  25. <Property Name="RegistrationDate" Type="datetime" Nullable="false" />
  26. <Property Name="Email" Type="nvarchar" MaxLength="255" />
  27. <Property Name="Phone" Type="nvarchar" MaxLength="20" Nullable="false" />
  28. <Property Name="GenderCode" Type="nchar" MaxLength="1" Nullable="false" />
  29. <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" />
  30. </EntityType>
  31. <EntityType Name="ClientService">
  32. <Key>
  33. <PropertyRef Name="ID" />
  34. </Key>
  35. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  36. <Property Name="ClientID" Type="int" Nullable="false" />
  37. <Property Name="ServiceID" Type="int" Nullable="false" />
  38. <Property Name="StartTime" Type="datetime" Nullable="false" />
  39. <Property Name="Comment" Type="nvarchar(max)" />
  40. </EntityType>
  41. <EntityType Name="DocumentByService">
  42. <Key>
  43. <PropertyRef Name="ID" />
  44. </Key>
  45. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  46. <Property Name="ClientServiceID" Type="int" Nullable="false" />
  47. <Property Name="DocumentPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
  48. </EntityType>
  49. <EntityType Name="Gender">
  50. <Key>
  51. <PropertyRef Name="Code" />
  52. </Key>
  53. <Property Name="Code" Type="nchar" MaxLength="1" Nullable="false" />
  54. <Property Name="Name" Type="nvarchar" MaxLength="10" />
  55. </EntityType>
  56. <EntityType Name="Manufacturer">
  57. <Key>
  58. <PropertyRef Name="ID" />
  59. </Key>
  60. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  61. <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
  62. <Property Name="StartDate" Type="date" />
  63. </EntityType>
  64. <EntityType Name="Product">
  65. <Key>
  66. <PropertyRef Name="ID" />
  67. </Key>
  68. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  69. <Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
  70. <Property Name="Cost" Type="money" Nullable="false" />
  71. <Property Name="Description" Type="nvarchar(max)" />
  72. <Property Name="MainImagePath" Type="nvarchar" MaxLength="1000" />
  73. <Property Name="IsActive" Type="bit" Nullable="false" />
  74. <Property Name="ManufacturerID" Type="int" />
  75. </EntityType>
  76. <EntityType Name="ProductPhoto">
  77. <Key>
  78. <PropertyRef Name="ID" />
  79. </Key>
  80. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  81. <Property Name="ProductID" Type="int" Nullable="false" />
  82. <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
  83. </EntityType>
  84. <EntityType Name="ProductSale">
  85. <Key>
  86. <PropertyRef Name="ID" />
  87. </Key>
  88. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  89. <Property Name="SaleDate" Type="datetime" Nullable="false" />
  90. <Property Name="ProductID" Type="int" Nullable="false" />
  91. <Property Name="Quantity" Type="int" Nullable="false" />
  92. <Property Name="ClientServiceID" Type="int" />
  93. </EntityType>
  94. <EntityType Name="Service">
  95. <Key>
  96. <PropertyRef Name="ID" />
  97. </Key>
  98. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  99. <Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
  100. <Property Name="Cost" Type="money" Nullable="false" />
  101. <Property Name="DurationInSeconds" Type="int" Nullable="false" />
  102. <Property Name="Description" Type="nvarchar(max)" />
  103. <Property Name="Discount" Type="float" />
  104. <Property Name="MainImagePath" Type="nvarchar" MaxLength="1000" />
  105. </EntityType>
  106. <EntityType Name="ServicePhoto">
  107. <Key>
  108. <PropertyRef Name="ID" />
  109. </Key>
  110. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  111. <Property Name="ServiceID" Type="int" Nullable="false" />
  112. <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" Nullable="false" />
  113. </EntityType>
  114. <EntityType Name="sysdiagrams">
  115. <Key>
  116. <PropertyRef Name="diagram_id" />
  117. </Key>
  118. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  119. <Property Name="principal_id" Type="int" Nullable="false" />
  120. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  121. <Property Name="version" Type="int" />
  122. <Property Name="definition" Type="varbinary(max)" />
  123. </EntityType>
  124. <EntityType Name="Tag">
  125. <Key>
  126. <PropertyRef Name="ID" />
  127. </Key>
  128. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  129. <Property Name="Title" Type="nvarchar" MaxLength="30" Nullable="false" />
  130. <Property Name="Color" Type="nchar" MaxLength="6" Nullable="false" />
  131. </EntityType>
  132. <EntityType Name="TagOfClient">
  133. <Key>
  134. <PropertyRef Name="ClientID" />
  135. <PropertyRef Name="TagID" />
  136. </Key>
  137. <Property Name="ClientID" Type="int" Nullable="false" />
  138. <Property Name="TagID" Type="int" Nullable="false" />
  139. </EntityType>
  140. <Association Name="FK_AttachedProduct_Product">
  141. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  142. <End Role="AttachedProduct" Type="Self.AttachedProduct" Multiplicity="*" />
  143. <ReferentialConstraint>
  144. <Principal Role="Product">
  145. <PropertyRef Name="ID" />
  146. </Principal>
  147. <Dependent Role="AttachedProduct">
  148. <PropertyRef Name="MainProductID" />
  149. </Dependent>
  150. </ReferentialConstraint>
  151. </Association>
  152. <Association Name="FK_AttachedProduct_Product1">
  153. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  154. <End Role="AttachedProduct" Type="Self.AttachedProduct" Multiplicity="*" />
  155. <ReferentialConstraint>
  156. <Principal Role="Product">
  157. <PropertyRef Name="ID" />
  158. </Principal>
  159. <Dependent Role="AttachedProduct">
  160. <PropertyRef Name="AttachedProductID" />
  161. </Dependent>
  162. </ReferentialConstraint>
  163. </Association>
  164. <Association Name="FK_Client_Gender">
  165. <End Role="Gender" Type="Self.Gender" Multiplicity="1" />
  166. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  167. <ReferentialConstraint>
  168. <Principal Role="Gender">
  169. <PropertyRef Name="Code" />
  170. </Principal>
  171. <Dependent Role="Client">
  172. <PropertyRef Name="GenderCode" />
  173. </Dependent>
  174. </ReferentialConstraint>
  175. </Association>
  176. <Association Name="FK_ClientService_Client">
  177. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  178. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  179. <ReferentialConstraint>
  180. <Principal Role="Client">
  181. <PropertyRef Name="ID" />
  182. </Principal>
  183. <Dependent Role="ClientService">
  184. <PropertyRef Name="ClientID" />
  185. </Dependent>
  186. </ReferentialConstraint>
  187. </Association>
  188. <Association Name="FK_ClientService_Service">
  189. <End Role="Service" Type="Self.Service" Multiplicity="1">
  190. <OnDelete Action="Cascade" />
  191. </End>
  192. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  193. <ReferentialConstraint>
  194. <Principal Role="Service">
  195. <PropertyRef Name="ID" />
  196. </Principal>
  197. <Dependent Role="ClientService">
  198. <PropertyRef Name="ServiceID" />
  199. </Dependent>
  200. </ReferentialConstraint>
  201. </Association>
  202. <Association Name="FK_DocumentByService_ClientService">
  203. <End Role="ClientService" Type="Self.ClientService" Multiplicity="1" />
  204. <End Role="DocumentByService" Type="Self.DocumentByService" Multiplicity="*" />
  205. <ReferentialConstraint>
  206. <Principal Role="ClientService">
  207. <PropertyRef Name="ID" />
  208. </Principal>
  209. <Dependent Role="DocumentByService">
  210. <PropertyRef Name="ClientServiceID" />
  211. </Dependent>
  212. </ReferentialConstraint>
  213. </Association>
  214. <Association Name="FK_Product_Manufacturer">
  215. <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="0..1" />
  216. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  217. <ReferentialConstraint>
  218. <Principal Role="Manufacturer">
  219. <PropertyRef Name="ID" />
  220. </Principal>
  221. <Dependent Role="Product">
  222. <PropertyRef Name="ManufacturerID" />
  223. </Dependent>
  224. </ReferentialConstraint>
  225. </Association>
  226. <Association Name="FK_ProductPhoto_Product">
  227. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  228. <End Role="ProductPhoto" Type="Self.ProductPhoto" Multiplicity="*" />
  229. <ReferentialConstraint>
  230. <Principal Role="Product">
  231. <PropertyRef Name="ID" />
  232. </Principal>
  233. <Dependent Role="ProductPhoto">
  234. <PropertyRef Name="ProductID" />
  235. </Dependent>
  236. </ReferentialConstraint>
  237. </Association>
  238. <Association Name="FK_ProductSale_ClientService">
  239. <End Role="ClientService" Type="Self.ClientService" Multiplicity="0..1" />
  240. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  241. <ReferentialConstraint>
  242. <Principal Role="ClientService">
  243. <PropertyRef Name="ID" />
  244. </Principal>
  245. <Dependent Role="ProductSale">
  246. <PropertyRef Name="ClientServiceID" />
  247. </Dependent>
  248. </ReferentialConstraint>
  249. </Association>
  250. <Association Name="FK_ProductSale_Product">
  251. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  252. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  253. <ReferentialConstraint>
  254. <Principal Role="Product">
  255. <PropertyRef Name="ID" />
  256. </Principal>
  257. <Dependent Role="ProductSale">
  258. <PropertyRef Name="ProductID" />
  259. </Dependent>
  260. </ReferentialConstraint>
  261. </Association>
  262. <Association Name="FK_ServicePhoto_Service">
  263. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  264. <End Role="ServicePhoto" Type="Self.ServicePhoto" Multiplicity="*" />
  265. <ReferentialConstraint>
  266. <Principal Role="Service">
  267. <PropertyRef Name="ID" />
  268. </Principal>
  269. <Dependent Role="ServicePhoto">
  270. <PropertyRef Name="ServiceID" />
  271. </Dependent>
  272. </ReferentialConstraint>
  273. </Association>
  274. <Association Name="FK_TagOfClient_Client">
  275. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  276. <End Role="TagOfClient" Type="Self.TagOfClient" Multiplicity="*" />
  277. <ReferentialConstraint>
  278. <Principal Role="Client">
  279. <PropertyRef Name="ID" />
  280. </Principal>
  281. <Dependent Role="TagOfClient">
  282. <PropertyRef Name="ClientID" />
  283. </Dependent>
  284. </ReferentialConstraint>
  285. </Association>
  286. <Association Name="FK_TagOfClient_Tag">
  287. <End Role="Tag" Type="Self.Tag" Multiplicity="1" />
  288. <End Role="TagOfClient" Type="Self.TagOfClient" Multiplicity="*" />
  289. <ReferentialConstraint>
  290. <Principal Role="Tag">
  291. <PropertyRef Name="ID" />
  292. </Principal>
  293. <Dependent Role="TagOfClient">
  294. <PropertyRef Name="TagID" />
  295. </Dependent>
  296. </ReferentialConstraint>
  297. </Association>
  298. <EntityContainer Name="Хранилище school5ModelContainer">
  299. <EntitySet Name="AttachedProduct" EntityType="Self.AttachedProduct" Schema="dbo" store:Type="Tables" />
  300. <EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" />
  301. <EntitySet Name="ClientService" EntityType="Self.ClientService" Schema="dbo" store:Type="Tables" />
  302. <EntitySet Name="DocumentByService" EntityType="Self.DocumentByService" Schema="dbo" store:Type="Tables" />
  303. <EntitySet Name="Gender" EntityType="Self.Gender" Schema="dbo" store:Type="Tables" />
  304. <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" Schema="dbo" store:Type="Tables" />
  305. <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
  306. <EntitySet Name="ProductPhoto" EntityType="Self.ProductPhoto" Schema="dbo" store:Type="Tables" />
  307. <EntitySet Name="ProductSale" EntityType="Self.ProductSale" Schema="dbo" store:Type="Tables" />
  308. <EntitySet Name="Service" EntityType="Self.Service" Schema="dbo" store:Type="Tables" />
  309. <EntitySet Name="ServicePhoto" EntityType="Self.ServicePhoto" Schema="dbo" store:Type="Tables" />
  310. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  311. <EntitySet Name="Tag" EntityType="Self.Tag" Schema="dbo" store:Type="Tables" />
  312. <EntitySet Name="TagOfClient" EntityType="Self.TagOfClient" Schema="dbo" store:Type="Tables" />
  313. <AssociationSet Name="FK_AttachedProduct_Product" Association="Self.FK_AttachedProduct_Product">
  314. <End Role="Product" EntitySet="Product" />
  315. <End Role="AttachedProduct" EntitySet="AttachedProduct" />
  316. </AssociationSet>
  317. <AssociationSet Name="FK_AttachedProduct_Product1" Association="Self.FK_AttachedProduct_Product1">
  318. <End Role="Product" EntitySet="Product" />
  319. <End Role="AttachedProduct" EntitySet="AttachedProduct" />
  320. </AssociationSet>
  321. <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
  322. <End Role="Gender" EntitySet="Gender" />
  323. <End Role="Client" EntitySet="Client" />
  324. </AssociationSet>
  325. <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
  326. <End Role="Client" EntitySet="Client" />
  327. <End Role="ClientService" EntitySet="ClientService" />
  328. </AssociationSet>
  329. <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
  330. <End Role="Service" EntitySet="Service" />
  331. <End Role="ClientService" EntitySet="ClientService" />
  332. </AssociationSet>
  333. <AssociationSet Name="FK_DocumentByService_ClientService" Association="Self.FK_DocumentByService_ClientService">
  334. <End Role="ClientService" EntitySet="ClientService" />
  335. <End Role="DocumentByService" EntitySet="DocumentByService" />
  336. </AssociationSet>
  337. <AssociationSet Name="FK_Product_Manufacturer" Association="Self.FK_Product_Manufacturer">
  338. <End Role="Manufacturer" EntitySet="Manufacturer" />
  339. <End Role="Product" EntitySet="Product" />
  340. </AssociationSet>
  341. <AssociationSet Name="FK_ProductPhoto_Product" Association="Self.FK_ProductPhoto_Product">
  342. <End Role="Product" EntitySet="Product" />
  343. <End Role="ProductPhoto" EntitySet="ProductPhoto" />
  344. </AssociationSet>
  345. <AssociationSet Name="FK_ProductSale_ClientService" Association="Self.FK_ProductSale_ClientService">
  346. <End Role="ClientService" EntitySet="ClientService" />
  347. <End Role="ProductSale" EntitySet="ProductSale" />
  348. </AssociationSet>
  349. <AssociationSet Name="FK_ProductSale_Product" Association="Self.FK_ProductSale_Product">
  350. <End Role="Product" EntitySet="Product" />
  351. <End Role="ProductSale" EntitySet="ProductSale" />
  352. </AssociationSet>
  353. <AssociationSet Name="FK_ServicePhoto_Service" Association="Self.FK_ServicePhoto_Service">
  354. <End Role="Service" EntitySet="Service" />
  355. <End Role="ServicePhoto" EntitySet="ServicePhoto" />
  356. </AssociationSet>
  357. <AssociationSet Name="FK_TagOfClient_Client" Association="Self.FK_TagOfClient_Client">
  358. <End Role="Client" EntitySet="Client" />
  359. <End Role="TagOfClient" EntitySet="TagOfClient" />
  360. </AssociationSet>
  361. <AssociationSet Name="FK_TagOfClient_Tag" Association="Self.FK_TagOfClient_Tag">
  362. <End Role="Tag" EntitySet="Tag" />
  363. <End Role="TagOfClient" EntitySet="TagOfClient" />
  364. </AssociationSet>
  365. </EntityContainer>
  366. </Schema></edmx:StorageModels>
  367. <!-- CSDL content -->
  368. <edmx:ConceptualModels>
  369. <Schema Namespace="school5Model" 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">
  370. <EntityType Name="Client">
  371. <Key>
  372. <PropertyRef Name="ID" />
  373. </Key>
  374. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  375. <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  376. <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  377. <Property Name="Patronymic" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  378. <Property Name="Birthday" Type="DateTime" Precision="0" />
  379. <Property Name="RegistrationDate" Type="DateTime" Nullable="false" Precision="3" />
  380. <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  381. <Property Name="Phone" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  382. <Property Name="GenderCode" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  383. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  384. <NavigationProperty Name="Gender" Relationship="Self.FK_Client_Gender" FromRole="Client" ToRole="Gender" />
  385. <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Client" FromRole="Client" ToRole="ClientService" />
  386. <NavigationProperty Name="Tag" Relationship="Self.TagOfClient" FromRole="Client" ToRole="Tag" />
  387. </EntityType>
  388. <EntityType Name="ClientService">
  389. <Key>
  390. <PropertyRef Name="ID" />
  391. </Key>
  392. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  393. <Property Name="ClientID" Type="Int32" Nullable="false" />
  394. <Property Name="ServiceID" Type="Int32" Nullable="false" />
  395. <Property Name="StartTime" Type="DateTime" Nullable="false" Precision="3" />
  396. <Property Name="Comment" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  397. <NavigationProperty Name="Client" Relationship="Self.FK_ClientService_Client" FromRole="ClientService" ToRole="Client" />
  398. <NavigationProperty Name="Service" Relationship="Self.FK_ClientService_Service" FromRole="ClientService" ToRole="Service" />
  399. <NavigationProperty Name="DocumentByService" Relationship="Self.FK_DocumentByService_ClientService" FromRole="ClientService" ToRole="DocumentByService" />
  400. <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_ClientService" FromRole="ClientService" ToRole="ProductSale" />
  401. </EntityType>
  402. <EntityType Name="DocumentByService">
  403. <Key>
  404. <PropertyRef Name="ID" />
  405. </Key>
  406. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  407. <Property Name="ClientServiceID" Type="Int32" Nullable="false" />
  408. <Property Name="DocumentPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  409. <NavigationProperty Name="ClientService" Relationship="Self.FK_DocumentByService_ClientService" FromRole="DocumentByService" ToRole="ClientService" />
  410. </EntityType>
  411. <EntityType Name="Gender">
  412. <Key>
  413. <PropertyRef Name="Code" />
  414. </Key>
  415. <Property Name="Code" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  416. <Property Name="Name" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  417. <NavigationProperty Name="Client" Relationship="Self.FK_Client_Gender" FromRole="Gender" ToRole="Client" />
  418. </EntityType>
  419. <EntityType Name="Manufacturer">
  420. <Key>
  421. <PropertyRef Name="ID" />
  422. </Key>
  423. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  424. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  425. <Property Name="StartDate" Type="DateTime" Precision="0" />
  426. <NavigationProperty Name="Product" Relationship="Self.FK_Product_Manufacturer" FromRole="Manufacturer" ToRole="Product" />
  427. </EntityType>
  428. <EntityType Name="Product">
  429. <Key>
  430. <PropertyRef Name="ID" />
  431. </Key>
  432. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  433. <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  434. <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  435. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  436. <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  437. <Property Name="IsActive" Type="Boolean" Nullable="false" />
  438. <Property Name="ManufacturerID" Type="Int32" />
  439. <NavigationProperty Name="Manufacturer" Relationship="Self.FK_Product_Manufacturer" FromRole="Product" ToRole="Manufacturer" />
  440. <NavigationProperty Name="ProductPhoto" Relationship="Self.FK_ProductPhoto_Product" FromRole="Product" ToRole="ProductPhoto" />
  441. <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_Product" FromRole="Product" ToRole="ProductSale" />
  442. <NavigationProperty Name="Product1" Relationship="Self.AttachedProduct" FromRole="Product" ToRole="Product1" />
  443. <NavigationProperty Name="Product2" Relationship="Self.AttachedProduct" FromRole="Product1" ToRole="Product" />
  444. </EntityType>
  445. <EntityType Name="ProductPhoto">
  446. <Key>
  447. <PropertyRef Name="ID" />
  448. </Key>
  449. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  450. <Property Name="ProductID" Type="Int32" Nullable="false" />
  451. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  452. <NavigationProperty Name="Product" Relationship="Self.FK_ProductPhoto_Product" FromRole="ProductPhoto" ToRole="Product" />
  453. </EntityType>
  454. <EntityType Name="ProductSale">
  455. <Key>
  456. <PropertyRef Name="ID" />
  457. </Key>
  458. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  459. <Property Name="SaleDate" Type="DateTime" Nullable="false" Precision="3" />
  460. <Property Name="ProductID" Type="Int32" Nullable="false" />
  461. <Property Name="Quantity" Type="Int32" Nullable="false" />
  462. <Property Name="ClientServiceID" Type="Int32" />
  463. <NavigationProperty Name="ClientService" Relationship="Self.FK_ProductSale_ClientService" FromRole="ProductSale" ToRole="ClientService" />
  464. <NavigationProperty Name="Product" Relationship="Self.FK_ProductSale_Product" FromRole="ProductSale" ToRole="Product" />
  465. </EntityType>
  466. <EntityType Name="Service">
  467. <Key>
  468. <PropertyRef Name="ID" />
  469. </Key>
  470. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  471. <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  472. <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  473. <Property Name="DurationInSeconds" Type="Int32" Nullable="false" />
  474. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  475. <Property Name="Discount" Type="Double" />
  476. <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  477. <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Service" FromRole="Service" ToRole="ClientService" />
  478. <NavigationProperty Name="ServicePhoto" Relationship="Self.FK_ServicePhoto_Service" FromRole="Service" ToRole="ServicePhoto" />
  479. </EntityType>
  480. <EntityType Name="ServicePhoto">
  481. <Key>
  482. <PropertyRef Name="ID" />
  483. </Key>
  484. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  485. <Property Name="ServiceID" Type="Int32" Nullable="false" />
  486. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  487. <NavigationProperty Name="Service" Relationship="Self.FK_ServicePhoto_Service" FromRole="ServicePhoto" ToRole="Service" />
  488. </EntityType>
  489. <EntityType Name="sysdiagrams">
  490. <Key>
  491. <PropertyRef Name="diagram_id" />
  492. </Key>
  493. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  494. <Property Name="principal_id" Type="Int32" Nullable="false" />
  495. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  496. <Property Name="version" Type="Int32" />
  497. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  498. </EntityType>
  499. <EntityType Name="Tag">
  500. <Key>
  501. <PropertyRef Name="ID" />
  502. </Key>
  503. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  504. <Property Name="Title" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  505. <Property Name="Color" Type="String" MaxLength="6" FixedLength="true" Unicode="true" Nullable="false" />
  506. <NavigationProperty Name="Client" Relationship="Self.TagOfClient" FromRole="Tag" ToRole="Client" />
  507. </EntityType>
  508. <Association Name="FK_Client_Gender">
  509. <End Role="Gender" Type="Self.Gender" Multiplicity="1" />
  510. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  511. <ReferentialConstraint>
  512. <Principal Role="Gender">
  513. <PropertyRef Name="Code" />
  514. </Principal>
  515. <Dependent Role="Client">
  516. <PropertyRef Name="GenderCode" />
  517. </Dependent>
  518. </ReferentialConstraint>
  519. </Association>
  520. <Association Name="FK_ClientService_Client">
  521. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  522. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  523. <ReferentialConstraint>
  524. <Principal Role="Client">
  525. <PropertyRef Name="ID" />
  526. </Principal>
  527. <Dependent Role="ClientService">
  528. <PropertyRef Name="ClientID" />
  529. </Dependent>
  530. </ReferentialConstraint>
  531. </Association>
  532. <Association Name="FK_ClientService_Service">
  533. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  534. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  535. <ReferentialConstraint>
  536. <Principal Role="Service">
  537. <PropertyRef Name="ID" />
  538. </Principal>
  539. <Dependent Role="ClientService">
  540. <PropertyRef Name="ServiceID" />
  541. </Dependent>
  542. </ReferentialConstraint>
  543. </Association>
  544. <Association Name="FK_DocumentByService_ClientService">
  545. <End Role="ClientService" Type="Self.ClientService" Multiplicity="1" />
  546. <End Role="DocumentByService" Type="Self.DocumentByService" Multiplicity="*" />
  547. <ReferentialConstraint>
  548. <Principal Role="ClientService">
  549. <PropertyRef Name="ID" />
  550. </Principal>
  551. <Dependent Role="DocumentByService">
  552. <PropertyRef Name="ClientServiceID" />
  553. </Dependent>
  554. </ReferentialConstraint>
  555. </Association>
  556. <Association Name="FK_ProductSale_ClientService">
  557. <End Role="ClientService" Type="Self.ClientService" Multiplicity="0..1" />
  558. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  559. <ReferentialConstraint>
  560. <Principal Role="ClientService">
  561. <PropertyRef Name="ID" />
  562. </Principal>
  563. <Dependent Role="ProductSale">
  564. <PropertyRef Name="ClientServiceID" />
  565. </Dependent>
  566. </ReferentialConstraint>
  567. </Association>
  568. <Association Name="FK_Product_Manufacturer">
  569. <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="0..1" />
  570. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  571. <ReferentialConstraint>
  572. <Principal Role="Manufacturer">
  573. <PropertyRef Name="ID" />
  574. </Principal>
  575. <Dependent Role="Product">
  576. <PropertyRef Name="ManufacturerID" />
  577. </Dependent>
  578. </ReferentialConstraint>
  579. </Association>
  580. <Association Name="FK_ProductPhoto_Product">
  581. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  582. <End Role="ProductPhoto" Type="Self.ProductPhoto" Multiplicity="*" />
  583. <ReferentialConstraint>
  584. <Principal Role="Product">
  585. <PropertyRef Name="ID" />
  586. </Principal>
  587. <Dependent Role="ProductPhoto">
  588. <PropertyRef Name="ProductID" />
  589. </Dependent>
  590. </ReferentialConstraint>
  591. </Association>
  592. <Association Name="FK_ProductSale_Product">
  593. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  594. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  595. <ReferentialConstraint>
  596. <Principal Role="Product">
  597. <PropertyRef Name="ID" />
  598. </Principal>
  599. <Dependent Role="ProductSale">
  600. <PropertyRef Name="ProductID" />
  601. </Dependent>
  602. </ReferentialConstraint>
  603. </Association>
  604. <Association Name="FK_ServicePhoto_Service">
  605. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  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="Learn" 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="Хранилище school5ModelContainer" CdmEntityContainer="Learn">
  688. <EntitySetMapping Name="Client">
  689. <EntityTypeMapping TypeName="school5Model.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="school5Model.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="school5Model.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="school5Model.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="school5Model.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="school5Model.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="school5Model.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="school5Model.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="school5Model.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="school5Model.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="school5Model.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="school5Model.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="school5Model.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="school5Model.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>