Model1.edmx 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  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="Хранилище school16Model" 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. <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="Хранилище school16ModelContainer">
  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>
  365. </edmx:StorageModels>
  366. <!-- CSDL content -->
  367. <edmx:ConceptualModels>
  368. <Schema Namespace="school16Model" 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">
  369. <EntityType Name="Client">
  370. <Key>
  371. <PropertyRef Name="ID" />
  372. </Key>
  373. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  374. <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  375. <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  376. <Property Name="Patronymic" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  377. <Property Name="Birthday" Type="DateTime" Precision="0" />
  378. <Property Name="RegistrationDate" Type="DateTime" Nullable="false" Precision="3" />
  379. <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  380. <Property Name="Phone" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  381. <Property Name="GenderCode" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  382. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  383. <NavigationProperty Name="Gender" Relationship="Self.FK_Client_Gender" FromRole="Client" ToRole="Gender" />
  384. <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Client" FromRole="Client" ToRole="ClientService" />
  385. <NavigationProperty Name="Tag" Relationship="Self.TagOfClient" FromRole="Client" ToRole="Tag" />
  386. </EntityType>
  387. <EntityType Name="ClientService">
  388. <Key>
  389. <PropertyRef Name="ID" />
  390. </Key>
  391. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  392. <Property Name="ClientID" Type="Int32" Nullable="false" />
  393. <Property Name="ServiceID" Type="Int32" Nullable="false" />
  394. <Property Name="StartTime" Type="DateTime" Nullable="false" Precision="3" />
  395. <Property Name="Comment" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  396. <NavigationProperty Name="Client" Relationship="Self.FK_ClientService_Client" FromRole="ClientService" ToRole="Client" />
  397. <NavigationProperty Name="Service" Relationship="Self.FK_ClientService_Service" FromRole="ClientService" ToRole="Service" />
  398. <NavigationProperty Name="DocumentByService" Relationship="Self.FK_DocumentByService_ClientService" FromRole="ClientService" ToRole="DocumentByService" />
  399. <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_ClientService" FromRole="ClientService" ToRole="ProductSale" />
  400. </EntityType>
  401. <EntityType Name="DocumentByService">
  402. <Key>
  403. <PropertyRef Name="ID" />
  404. </Key>
  405. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  406. <Property Name="ClientServiceID" Type="Int32" Nullable="false" />
  407. <Property Name="DocumentPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  408. <NavigationProperty Name="ClientService" Relationship="Self.FK_DocumentByService_ClientService" FromRole="DocumentByService" ToRole="ClientService" />
  409. </EntityType>
  410. <EntityType Name="Gender">
  411. <Key>
  412. <PropertyRef Name="Code" />
  413. </Key>
  414. <Property Name="Code" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  415. <Property Name="Name" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  416. <NavigationProperty Name="Client" Relationship="Self.FK_Client_Gender" FromRole="Gender" ToRole="Client" />
  417. </EntityType>
  418. <EntityType Name="Manufacturer">
  419. <Key>
  420. <PropertyRef Name="ID" />
  421. </Key>
  422. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  423. <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  424. <Property Name="StartDate" Type="DateTime" Precision="0" />
  425. <NavigationProperty Name="Product" Relationship="Self.FK_Product_Manufacturer" FromRole="Manufacturer" ToRole="Product" />
  426. </EntityType>
  427. <EntityType Name="Product">
  428. <Key>
  429. <PropertyRef Name="ID" />
  430. </Key>
  431. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  432. <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  433. <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  434. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  435. <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  436. <Property Name="IsActive" Type="Boolean" Nullable="false" />
  437. <Property Name="ManufacturerID" Type="Int32" />
  438. <NavigationProperty Name="Manufacturer" Relationship="Self.FK_Product_Manufacturer" FromRole="Product" ToRole="Manufacturer" />
  439. <NavigationProperty Name="ProductPhoto" Relationship="Self.FK_ProductPhoto_Product" FromRole="Product" ToRole="ProductPhoto" />
  440. <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_Product" FromRole="Product" ToRole="ProductSale" />
  441. <NavigationProperty Name="Product1" Relationship="Self.AttachedProduct" FromRole="Product" ToRole="Product1" />
  442. <NavigationProperty Name="Product2" Relationship="Self.AttachedProduct" FromRole="Product1" ToRole="Product" />
  443. </EntityType>
  444. <EntityType Name="ProductPhoto">
  445. <Key>
  446. <PropertyRef Name="ID" />
  447. </Key>
  448. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  449. <Property Name="ProductID" Type="Int32" Nullable="false" />
  450. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  451. <NavigationProperty Name="Product" Relationship="Self.FK_ProductPhoto_Product" FromRole="ProductPhoto" ToRole="Product" />
  452. </EntityType>
  453. <EntityType Name="ProductSale">
  454. <Key>
  455. <PropertyRef Name="ID" />
  456. </Key>
  457. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  458. <Property Name="SaleDate" Type="DateTime" Nullable="false" Precision="3" />
  459. <Property Name="ProductID" Type="Int32" Nullable="false" />
  460. <Property Name="Quantity" Type="Int32" Nullable="false" />
  461. <Property Name="ClientServiceID" Type="Int32" />
  462. <NavigationProperty Name="ClientService" Relationship="Self.FK_ProductSale_ClientService" FromRole="ProductSale" ToRole="ClientService" />
  463. <NavigationProperty Name="Product" Relationship="Self.FK_ProductSale_Product" FromRole="ProductSale" ToRole="Product" />
  464. </EntityType>
  465. <EntityType Name="Service">
  466. <Key>
  467. <PropertyRef Name="ID" />
  468. </Key>
  469. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  470. <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  471. <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  472. <Property Name="DurationInSeconds" Type="Int32" Nullable="false" />
  473. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  474. <Property Name="Discount" Type="Double" />
  475. <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  476. <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Service" FromRole="Service" ToRole="ClientService" />
  477. <NavigationProperty Name="ServicePhoto" Relationship="Self.FK_ServicePhoto_Service" FromRole="Service" ToRole="ServicePhoto" />
  478. </EntityType>
  479. <EntityType Name="ServicePhoto">
  480. <Key>
  481. <PropertyRef Name="ID" />
  482. </Key>
  483. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  484. <Property Name="ServiceID" Type="Int32" Nullable="false" />
  485. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" Nullable="false" />
  486. <NavigationProperty Name="Service" Relationship="Self.FK_ServicePhoto_Service" FromRole="ServicePhoto" ToRole="Service" />
  487. </EntityType>
  488. <EntityType Name="sysdiagrams">
  489. <Key>
  490. <PropertyRef Name="diagram_id" />
  491. </Key>
  492. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  493. <Property Name="principal_id" Type="Int32" Nullable="false" />
  494. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  495. <Property Name="version" Type="Int32" />
  496. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  497. </EntityType>
  498. <EntityType Name="Tag">
  499. <Key>
  500. <PropertyRef Name="ID" />
  501. </Key>
  502. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  503. <Property Name="Title" Type="String" MaxLength="30" FixedLength="false" Unicode="true" Nullable="false" />
  504. <Property Name="Color" Type="String" MaxLength="6" FixedLength="true" Unicode="true" Nullable="false" />
  505. <NavigationProperty Name="Client" Relationship="Self.TagOfClient" FromRole="Tag" ToRole="Client" />
  506. </EntityType>
  507. <Association Name="FK_Client_Gender">
  508. <End Role="Gender" Type="Self.Gender" Multiplicity="1" />
  509. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  510. <ReferentialConstraint>
  511. <Principal Role="Gender">
  512. <PropertyRef Name="Code" />
  513. </Principal>
  514. <Dependent Role="Client">
  515. <PropertyRef Name="GenderCode" />
  516. </Dependent>
  517. </ReferentialConstraint>
  518. </Association>
  519. <Association Name="FK_ClientService_Client">
  520. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  521. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  522. <ReferentialConstraint>
  523. <Principal Role="Client">
  524. <PropertyRef Name="ID" />
  525. </Principal>
  526. <Dependent Role="ClientService">
  527. <PropertyRef Name="ClientID" />
  528. </Dependent>
  529. </ReferentialConstraint>
  530. </Association>
  531. <Association Name="FK_ClientService_Service">
  532. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  533. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  534. <ReferentialConstraint>
  535. <Principal Role="Service">
  536. <PropertyRef Name="ID" />
  537. </Principal>
  538. <Dependent Role="ClientService">
  539. <PropertyRef Name="ServiceID" />
  540. </Dependent>
  541. </ReferentialConstraint>
  542. </Association>
  543. <Association Name="FK_DocumentByService_ClientService">
  544. <End Role="ClientService" Type="Self.ClientService" Multiplicity="1" />
  545. <End Role="DocumentByService" Type="Self.DocumentByService" Multiplicity="*" />
  546. <ReferentialConstraint>
  547. <Principal Role="ClientService">
  548. <PropertyRef Name="ID" />
  549. </Principal>
  550. <Dependent Role="DocumentByService">
  551. <PropertyRef Name="ClientServiceID" />
  552. </Dependent>
  553. </ReferentialConstraint>
  554. </Association>
  555. <Association Name="FK_ProductSale_ClientService">
  556. <End Role="ClientService" Type="Self.ClientService" Multiplicity="0..1" />
  557. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  558. <ReferentialConstraint>
  559. <Principal Role="ClientService">
  560. <PropertyRef Name="ID" />
  561. </Principal>
  562. <Dependent Role="ProductSale">
  563. <PropertyRef Name="ClientServiceID" />
  564. </Dependent>
  565. </ReferentialConstraint>
  566. </Association>
  567. <Association Name="FK_Product_Manufacturer">
  568. <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="0..1" />
  569. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  570. <ReferentialConstraint>
  571. <Principal Role="Manufacturer">
  572. <PropertyRef Name="ID" />
  573. </Principal>
  574. <Dependent Role="Product">
  575. <PropertyRef Name="ManufacturerID" />
  576. </Dependent>
  577. </ReferentialConstraint>
  578. </Association>
  579. <Association Name="FK_ProductPhoto_Product">
  580. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  581. <End Role="ProductPhoto" Type="Self.ProductPhoto" Multiplicity="*" />
  582. <ReferentialConstraint>
  583. <Principal Role="Product">
  584. <PropertyRef Name="ID" />
  585. </Principal>
  586. <Dependent Role="ProductPhoto">
  587. <PropertyRef Name="ProductID" />
  588. </Dependent>
  589. </ReferentialConstraint>
  590. </Association>
  591. <Association Name="FK_ProductSale_Product">
  592. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  593. <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
  594. <ReferentialConstraint>
  595. <Principal Role="Product">
  596. <PropertyRef Name="ID" />
  597. </Principal>
  598. <Dependent Role="ProductSale">
  599. <PropertyRef Name="ProductID" />
  600. </Dependent>
  601. </ReferentialConstraint>
  602. </Association>
  603. <Association Name="FK_ServicePhoto_Service">
  604. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  605. <End Role="ServicePhoto" Type="Self.ServicePhoto" Multiplicity="*" />
  606. <ReferentialConstraint>
  607. <Principal Role="Service">
  608. <PropertyRef Name="ID" />
  609. </Principal>
  610. <Dependent Role="ServicePhoto">
  611. <PropertyRef Name="ServiceID" />
  612. </Dependent>
  613. </ReferentialConstraint>
  614. </Association>
  615. <Association Name="AttachedProduct">
  616. <End Role="Product" Type="Self.Product" Multiplicity="*" />
  617. <End Role="Product1" Type="Self.Product" Multiplicity="*" />
  618. </Association>
  619. <Association Name="TagOfClient">
  620. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  621. <End Role="Tag" Type="Self.Tag" Multiplicity="*" />
  622. </Association>
  623. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  624. <EntitySet Name="Client" EntityType="Self.Client" />
  625. <EntitySet Name="ClientService" EntityType="Self.ClientService" />
  626. <EntitySet Name="DocumentByService" EntityType="Self.DocumentByService" />
  627. <EntitySet Name="Gender" EntityType="Self.Gender" />
  628. <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" />
  629. <EntitySet Name="Product" EntityType="Self.Product" />
  630. <EntitySet Name="ProductPhoto" EntityType="Self.ProductPhoto" />
  631. <EntitySet Name="ProductSale" EntityType="Self.ProductSale" />
  632. <EntitySet Name="Service" EntityType="Self.Service" />
  633. <EntitySet Name="ServicePhoto" EntityType="Self.ServicePhoto" />
  634. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  635. <EntitySet Name="Tag" EntityType="Self.Tag" />
  636. <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
  637. <End Role="Gender" EntitySet="Gender" />
  638. <End Role="Client" EntitySet="Client" />
  639. </AssociationSet>
  640. <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
  641. <End Role="Client" EntitySet="Client" />
  642. <End Role="ClientService" EntitySet="ClientService" />
  643. </AssociationSet>
  644. <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
  645. <End Role="Service" EntitySet="Service" />
  646. <End Role="ClientService" EntitySet="ClientService" />
  647. </AssociationSet>
  648. <AssociationSet Name="FK_DocumentByService_ClientService" Association="Self.FK_DocumentByService_ClientService">
  649. <End Role="ClientService" EntitySet="ClientService" />
  650. <End Role="DocumentByService" EntitySet="DocumentByService" />
  651. </AssociationSet>
  652. <AssociationSet Name="FK_ProductSale_ClientService" Association="Self.FK_ProductSale_ClientService">
  653. <End Role="ClientService" EntitySet="ClientService" />
  654. <End Role="ProductSale" EntitySet="ProductSale" />
  655. </AssociationSet>
  656. <AssociationSet Name="FK_Product_Manufacturer" Association="Self.FK_Product_Manufacturer">
  657. <End Role="Manufacturer" EntitySet="Manufacturer" />
  658. <End Role="Product" EntitySet="Product" />
  659. </AssociationSet>
  660. <AssociationSet Name="FK_ProductPhoto_Product" Association="Self.FK_ProductPhoto_Product">
  661. <End Role="Product" EntitySet="Product" />
  662. <End Role="ProductPhoto" EntitySet="ProductPhoto" />
  663. </AssociationSet>
  664. <AssociationSet Name="FK_ProductSale_Product" Association="Self.FK_ProductSale_Product">
  665. <End Role="Product" EntitySet="Product" />
  666. <End Role="ProductSale" EntitySet="ProductSale" />
  667. </AssociationSet>
  668. <AssociationSet Name="FK_ServicePhoto_Service" Association="Self.FK_ServicePhoto_Service">
  669. <End Role="Service" EntitySet="Service" />
  670. <End Role="ServicePhoto" EntitySet="ServicePhoto" />
  671. </AssociationSet>
  672. <AssociationSet Name="AttachedProduct" Association="Self.AttachedProduct">
  673. <End Role="Product" EntitySet="Product" />
  674. <End Role="Product1" EntitySet="Product" />
  675. </AssociationSet>
  676. <AssociationSet Name="TagOfClient" Association="Self.TagOfClient">
  677. <End Role="Client" EntitySet="Client" />
  678. <End Role="Tag" EntitySet="Tag" />
  679. </AssociationSet>
  680. </EntityContainer>
  681. </Schema>
  682. </edmx:ConceptualModels>
  683. <!-- C-S mapping content -->
  684. <edmx:Mappings>
  685. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  686. <EntityContainerMapping StorageEntityContainer="Хранилище school16ModelContainer" CdmEntityContainer="Entities">
  687. <EntitySetMapping Name="Client">
  688. <EntityTypeMapping TypeName="school16Model.Client">
  689. <MappingFragment StoreEntitySet="Client">
  690. <ScalarProperty Name="ID" ColumnName="ID" />
  691. <ScalarProperty Name="FirstName" ColumnName="FirstName" />
  692. <ScalarProperty Name="LastName" ColumnName="LastName" />
  693. <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
  694. <ScalarProperty Name="Birthday" ColumnName="Birthday" />
  695. <ScalarProperty Name="RegistrationDate" ColumnName="RegistrationDate" />
  696. <ScalarProperty Name="Email" ColumnName="Email" />
  697. <ScalarProperty Name="Phone" ColumnName="Phone" />
  698. <ScalarProperty Name="GenderCode" ColumnName="GenderCode" />
  699. <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
  700. </MappingFragment>
  701. </EntityTypeMapping>
  702. </EntitySetMapping>
  703. <EntitySetMapping Name="ClientService">
  704. <EntityTypeMapping TypeName="school16Model.ClientService">
  705. <MappingFragment StoreEntitySet="ClientService">
  706. <ScalarProperty Name="ID" ColumnName="ID" />
  707. <ScalarProperty Name="ClientID" ColumnName="ClientID" />
  708. <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
  709. <ScalarProperty Name="StartTime" ColumnName="StartTime" />
  710. <ScalarProperty Name="Comment" ColumnName="Comment" />
  711. </MappingFragment>
  712. </EntityTypeMapping>
  713. </EntitySetMapping>
  714. <EntitySetMapping Name="DocumentByService">
  715. <EntityTypeMapping TypeName="school16Model.DocumentByService">
  716. <MappingFragment StoreEntitySet="DocumentByService">
  717. <ScalarProperty Name="ID" ColumnName="ID" />
  718. <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
  719. <ScalarProperty Name="DocumentPath" ColumnName="DocumentPath" />
  720. </MappingFragment>
  721. </EntityTypeMapping>
  722. </EntitySetMapping>
  723. <EntitySetMapping Name="Gender">
  724. <EntityTypeMapping TypeName="school16Model.Gender">
  725. <MappingFragment StoreEntitySet="Gender">
  726. <ScalarProperty Name="Code" ColumnName="Code" />
  727. <ScalarProperty Name="Name" ColumnName="Name" />
  728. </MappingFragment>
  729. </EntityTypeMapping>
  730. </EntitySetMapping>
  731. <EntitySetMapping Name="Manufacturer">
  732. <EntityTypeMapping TypeName="school16Model.Manufacturer">
  733. <MappingFragment StoreEntitySet="Manufacturer">
  734. <ScalarProperty Name="ID" ColumnName="ID" />
  735. <ScalarProperty Name="Name" ColumnName="Name" />
  736. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  737. </MappingFragment>
  738. </EntityTypeMapping>
  739. </EntitySetMapping>
  740. <EntitySetMapping Name="Product">
  741. <EntityTypeMapping TypeName="school16Model.Product">
  742. <MappingFragment StoreEntitySet="Product">
  743. <ScalarProperty Name="ID" ColumnName="ID" />
  744. <ScalarProperty Name="Title" ColumnName="Title" />
  745. <ScalarProperty Name="Cost" ColumnName="Cost" />
  746. <ScalarProperty Name="Description" ColumnName="Description" />
  747. <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
  748. <ScalarProperty Name="IsActive" ColumnName="IsActive" />
  749. <ScalarProperty Name="ManufacturerID" ColumnName="ManufacturerID" />
  750. </MappingFragment>
  751. </EntityTypeMapping>
  752. </EntitySetMapping>
  753. <EntitySetMapping Name="ProductPhoto">
  754. <EntityTypeMapping TypeName="school16Model.ProductPhoto">
  755. <MappingFragment StoreEntitySet="ProductPhoto">
  756. <ScalarProperty Name="ID" ColumnName="ID" />
  757. <ScalarProperty Name="ProductID" ColumnName="ProductID" />
  758. <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
  759. </MappingFragment>
  760. </EntityTypeMapping>
  761. </EntitySetMapping>
  762. <EntitySetMapping Name="ProductSale">
  763. <EntityTypeMapping TypeName="school16Model.ProductSale">
  764. <MappingFragment StoreEntitySet="ProductSale">
  765. <ScalarProperty Name="ID" ColumnName="ID" />
  766. <ScalarProperty Name="SaleDate" ColumnName="SaleDate" />
  767. <ScalarProperty Name="ProductID" ColumnName="ProductID" />
  768. <ScalarProperty Name="Quantity" ColumnName="Quantity" />
  769. <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
  770. </MappingFragment>
  771. </EntityTypeMapping>
  772. </EntitySetMapping>
  773. <EntitySetMapping Name="Service">
  774. <EntityTypeMapping TypeName="school16Model.Service">
  775. <MappingFragment StoreEntitySet="Service">
  776. <ScalarProperty Name="ID" ColumnName="ID" />
  777. <ScalarProperty Name="Title" ColumnName="Title" />
  778. <ScalarProperty Name="Cost" ColumnName="Cost" />
  779. <ScalarProperty Name="DurationInSeconds" ColumnName="DurationInSeconds" />
  780. <ScalarProperty Name="Description" ColumnName="Description" />
  781. <ScalarProperty Name="Discount" ColumnName="Discount" />
  782. <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
  783. </MappingFragment>
  784. </EntityTypeMapping>
  785. </EntitySetMapping>
  786. <EntitySetMapping Name="ServicePhoto">
  787. <EntityTypeMapping TypeName="school16Model.ServicePhoto">
  788. <MappingFragment StoreEntitySet="ServicePhoto">
  789. <ScalarProperty Name="ID" ColumnName="ID" />
  790. <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
  791. <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
  792. </MappingFragment>
  793. </EntityTypeMapping>
  794. </EntitySetMapping>
  795. <EntitySetMapping Name="sysdiagrams">
  796. <EntityTypeMapping TypeName="school16Model.sysdiagrams">
  797. <MappingFragment StoreEntitySet="sysdiagrams">
  798. <ScalarProperty Name="name" ColumnName="name" />
  799. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  800. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  801. <ScalarProperty Name="version" ColumnName="version" />
  802. <ScalarProperty Name="definition" ColumnName="definition" />
  803. </MappingFragment>
  804. </EntityTypeMapping>
  805. </EntitySetMapping>
  806. <EntitySetMapping Name="Tag">
  807. <EntityTypeMapping TypeName="school16Model.Tag">
  808. <MappingFragment StoreEntitySet="Tag">
  809. <ScalarProperty Name="ID" ColumnName="ID" />
  810. <ScalarProperty Name="Title" ColumnName="Title" />
  811. <ScalarProperty Name="Color" ColumnName="Color" />
  812. </MappingFragment>
  813. </EntityTypeMapping>
  814. </EntitySetMapping>
  815. <AssociationSetMapping Name="AttachedProduct" TypeName="school16Model.AttachedProduct" StoreEntitySet="AttachedProduct">
  816. <EndProperty Name="Product">
  817. <ScalarProperty Name="ID" ColumnName="MainProductID" />
  818. </EndProperty>
  819. <EndProperty Name="Product1">
  820. <ScalarProperty Name="ID" ColumnName="AttachedProductID" />
  821. </EndProperty>
  822. </AssociationSetMapping>
  823. <AssociationSetMapping Name="TagOfClient" TypeName="school16Model.TagOfClient" StoreEntitySet="TagOfClient">
  824. <EndProperty Name="Client">
  825. <ScalarProperty Name="ID" ColumnName="ClientID" />
  826. </EndProperty>
  827. <EndProperty Name="Tag">
  828. <ScalarProperty Name="ID" ColumnName="TagID" />
  829. </EndProperty>
  830. </AssociationSetMapping>
  831. </EntityContainerMapping>
  832. </Mapping>
  833. </edmx:Mappings>
  834. </edmx:Runtime>
  835. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  836. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  837. <Connection>
  838. <DesignerInfoPropertySet>
  839. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  840. </DesignerInfoPropertySet>
  841. </Connection>
  842. <Options>
  843. <DesignerInfoPropertySet>
  844. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  845. <DesignerProperty Name="EnablePluralization" Value="false" />
  846. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  847. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  848. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  849. </DesignerInfoPropertySet>
  850. </Options>
  851. <!-- Diagram content (shape and connector positions) -->
  852. <Diagrams></Diagrams>
  853. </Designer>
  854. </edmx:Edmx>