Model1.edmx 55 KB

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