Model1.edmx 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  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="Хранилище Model" 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="Car">
  9. <Key>
  10. <PropertyRef Name="id_Car" />
  11. </Key>
  12. <Property Name="id_Car" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="id_Teem" Type="int" Nullable="false" />
  14. <Property Name="id_Service" Type="int" Nullable="false" />
  15. <Property Name="id_Client" Type="int" Nullable="false" />
  16. <Property Name="id_CarBrand" Type="int" Nullable="false" />
  17. <Property Name="Car_mileage" Type="int" />
  18. </EntityType>
  19. <EntityType Name="CarBrand">
  20. <Key>
  21. <PropertyRef Name="id_CarBrand" />
  22. </Key>
  23. <Property Name="id_CarBrand" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  24. <Property Name="CarBrand" Type="text" Nullable="false" />
  25. </EntityType>
  26. <EntityType Name="Client">
  27. <Key>
  28. <PropertyRef Name="id_Client" />
  29. </Key>
  30. <Property Name="id_Client" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  31. <Property Name="Surname" Type="varchar" MaxLength="50" />
  32. <Property Name="Name" Type="varchar" MaxLength="50" />
  33. <Property Name="Patronymic" Type="varchar" MaxLength="50" />
  34. <Property Name="Login" Type="varchar" MaxLength="50" />
  35. <Property Name="Password" Type="varchar" MaxLength="256" />
  36. <Property Name="id_Gender" Type="int" />
  37. <Property Name="BirthDate" Type="date" />
  38. <Property Name="id_Role" Type="int" />
  39. </EntityType>
  40. <EntityType Name="Gender">
  41. <Key>
  42. <PropertyRef Name="id_Gender" />
  43. </Key>
  44. <Property Name="id_Gender" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  45. <Property Name="Gender" Type="varchar" MaxLength="50" />
  46. </EntityType>
  47. <EntityType Name="Post">
  48. <Key>
  49. <PropertyRef Name="id_Post" />
  50. </Key>
  51. <Property Name="id_Post" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  52. <Property Name="Name_Post" Type="varchar" MaxLength="50" Nullable="false" />
  53. </EntityType>
  54. <!--Ошибки, обнаруженные при создании:
  55. предупреждение 6002: В таблице или представлении "43П-МДК0101-Смирнов.dbo.Record" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
  56. <EntityType Name="Record">
  57. <Key>
  58. <PropertyRef Name="id_Record" />
  59. <PropertyRef Name="id_Client" />
  60. </Key>
  61. <Property Name="id_Record" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  62. <Property Name="id_Car" Type="int" />
  63. <Property Name="id_Client" Type="int" Nullable="false" />
  64. </EntityType>
  65. <EntityType Name="Role">
  66. <Key>
  67. <PropertyRef Name="id" />
  68. </Key>
  69. <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  70. <Property Name="Role" Type="varchar" MaxLength="50" />
  71. </EntityType>
  72. <EntityType Name="Service">
  73. <Key>
  74. <PropertyRef Name="id_Service" />
  75. </Key>
  76. <Property Name="id_Service" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  77. <Property Name="name_Service" Type="text" Nullable="false" />
  78. <Property Name="Prise" Type="int" Nullable="false" />
  79. </EntityType>
  80. <EntityType Name="sysdiagrams">
  81. <Key>
  82. <PropertyRef Name="diagram_id" />
  83. </Key>
  84. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  85. <Property Name="principal_id" Type="int" Nullable="false" />
  86. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  87. <Property Name="version" Type="int" />
  88. <Property Name="definition" Type="varbinary(max)" />
  89. </EntityType>
  90. <EntityType Name="Teem">
  91. <Key>
  92. <PropertyRef Name="id_Teem" />
  93. </Key>
  94. <Property Name="id_Teem" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  95. <Property Name="Surname_Teem" Type="varchar" MaxLength="50" Nullable="false" />
  96. <Property Name="Neme_Teem" Type="varchar" MaxLength="50" Nullable="false" />
  97. <Property Name="id_Post" Type="int" Nullable="false" />
  98. </EntityType>
  99. <Association Name="FK_Car_CarBrand">
  100. <End Role="CarBrand" Type="Self.CarBrand" Multiplicity="1" />
  101. <End Role="Car" Type="Self.Car" Multiplicity="*" />
  102. <ReferentialConstraint>
  103. <Principal Role="CarBrand">
  104. <PropertyRef Name="id_CarBrand" />
  105. </Principal>
  106. <Dependent Role="Car">
  107. <PropertyRef Name="id_CarBrand" />
  108. </Dependent>
  109. </ReferentialConstraint>
  110. </Association>
  111. <Association Name="FK_Car_Service">
  112. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  113. <End Role="Car" Type="Self.Car" Multiplicity="*" />
  114. <ReferentialConstraint>
  115. <Principal Role="Service">
  116. <PropertyRef Name="id_Service" />
  117. </Principal>
  118. <Dependent Role="Car">
  119. <PropertyRef Name="id_Service" />
  120. </Dependent>
  121. </ReferentialConstraint>
  122. </Association>
  123. <Association Name="FK_Car_Teem">
  124. <End Role="Teem" Type="Self.Teem" Multiplicity="1" />
  125. <End Role="Car" Type="Self.Car" Multiplicity="*" />
  126. <ReferentialConstraint>
  127. <Principal Role="Teem">
  128. <PropertyRef Name="id_Teem" />
  129. </Principal>
  130. <Dependent Role="Car">
  131. <PropertyRef Name="id_Teem" />
  132. </Dependent>
  133. </ReferentialConstraint>
  134. </Association>
  135. <Association Name="FK_Record_Car">
  136. <End Role="Car" Type="Self.Car" Multiplicity="0..1" />
  137. <End Role="Record" Type="Self.Record" Multiplicity="*" />
  138. <ReferentialConstraint>
  139. <Principal Role="Car">
  140. <PropertyRef Name="id_Car" />
  141. </Principal>
  142. <Dependent Role="Record">
  143. <PropertyRef Name="id_Car" />
  144. </Dependent>
  145. </ReferentialConstraint>
  146. </Association>
  147. <Association Name="FK_Record_Client">
  148. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  149. <End Role="Record" Type="Self.Record" Multiplicity="*" />
  150. <ReferentialConstraint>
  151. <Principal Role="Client">
  152. <PropertyRef Name="id_Client" />
  153. </Principal>
  154. <Dependent Role="Record">
  155. <PropertyRef Name="id_Client" />
  156. </Dependent>
  157. </ReferentialConstraint>
  158. </Association>
  159. <Association Name="FK_Table_1_Table_2">
  160. <End Role="Gender" Type="Self.Gender" Multiplicity="0..1" />
  161. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  162. <ReferentialConstraint>
  163. <Principal Role="Gender">
  164. <PropertyRef Name="id_Gender" />
  165. </Principal>
  166. <Dependent Role="Client">
  167. <PropertyRef Name="id_Gender" />
  168. </Dependent>
  169. </ReferentialConstraint>
  170. </Association>
  171. <Association Name="FK_Table_1_Table_3">
  172. <End Role="Role" Type="Self.Role" Multiplicity="0..1" />
  173. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  174. <ReferentialConstraint>
  175. <Principal Role="Role">
  176. <PropertyRef Name="id" />
  177. </Principal>
  178. <Dependent Role="Client">
  179. <PropertyRef Name="id_Role" />
  180. </Dependent>
  181. </ReferentialConstraint>
  182. </Association>
  183. <Association Name="FK_Teem_Post">
  184. <End Role="Post" Type="Self.Post" Multiplicity="1" />
  185. <End Role="Teem" Type="Self.Teem" Multiplicity="*" />
  186. <ReferentialConstraint>
  187. <Principal Role="Post">
  188. <PropertyRef Name="id_Post" />
  189. </Principal>
  190. <Dependent Role="Teem">
  191. <PropertyRef Name="id_Post" />
  192. </Dependent>
  193. </ReferentialConstraint>
  194. </Association>
  195. <EntityContainer Name="Хранилище ModelContainer">
  196. <EntitySet Name="Car" EntityType="Self.Car" Schema="dbo" store:Type="Tables" />
  197. <EntitySet Name="CarBrand" EntityType="Self.CarBrand" Schema="dbo" store:Type="Tables" />
  198. <EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" />
  199. <EntitySet Name="Gender" EntityType="Self.Gender" Schema="dbo" store:Type="Tables" />
  200. <EntitySet Name="Post" EntityType="Self.Post" Schema="dbo" store:Type="Tables" />
  201. <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
  202. <EntitySet Name="Service" EntityType="Self.Service" Schema="dbo" store:Type="Tables" />
  203. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  204. <EntitySet Name="Teem" EntityType="Self.Teem" Schema="dbo" store:Type="Tables" />
  205. <EntitySet Name="Record" EntityType="Self.Record" store:Type="Tables" store:Schema="dbo">
  206. <DefiningQuery>SELECT
  207. [Record].[id_Record] AS [id_Record],
  208. [Record].[id_Car] AS [id_Car],
  209. [Record].[id_Client] AS [id_Client]
  210. FROM [dbo].[Record] AS [Record]</DefiningQuery>
  211. </EntitySet>
  212. <AssociationSet Name="FK_Car_CarBrand" Association="Self.FK_Car_CarBrand">
  213. <End Role="CarBrand" EntitySet="CarBrand" />
  214. <End Role="Car" EntitySet="Car" />
  215. </AssociationSet>
  216. <AssociationSet Name="FK_Car_Service" Association="Self.FK_Car_Service">
  217. <End Role="Service" EntitySet="Service" />
  218. <End Role="Car" EntitySet="Car" />
  219. </AssociationSet>
  220. <AssociationSet Name="FK_Car_Teem" Association="Self.FK_Car_Teem">
  221. <End Role="Teem" EntitySet="Teem" />
  222. <End Role="Car" EntitySet="Car" />
  223. </AssociationSet>
  224. <AssociationSet Name="FK_Record_Car" Association="Self.FK_Record_Car">
  225. <End Role="Car" EntitySet="Car" />
  226. <End Role="Record" EntitySet="Record" />
  227. </AssociationSet>
  228. <AssociationSet Name="FK_Record_Client" Association="Self.FK_Record_Client">
  229. <End Role="Client" EntitySet="Client" />
  230. <End Role="Record" EntitySet="Record" />
  231. </AssociationSet>
  232. <AssociationSet Name="FK_Table_1_Table_2" Association="Self.FK_Table_1_Table_2">
  233. <End Role="Gender" EntitySet="Gender" />
  234. <End Role="Client" EntitySet="Client" />
  235. </AssociationSet>
  236. <AssociationSet Name="FK_Table_1_Table_3" Association="Self.FK_Table_1_Table_3">
  237. <End Role="Role" EntitySet="Role" />
  238. <End Role="Client" EntitySet="Client" />
  239. </AssociationSet>
  240. <AssociationSet Name="FK_Teem_Post" Association="Self.FK_Teem_Post">
  241. <End Role="Post" EntitySet="Post" />
  242. <End Role="Teem" EntitySet="Teem" />
  243. </AssociationSet>
  244. </EntityContainer>
  245. </Schema>
  246. </edmx:StorageModels>
  247. <!-- CSDL content -->
  248. <edmx:ConceptualModels>
  249. <Schema Namespace="Model" 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">
  250. <EntityType Name="Car">
  251. <Key>
  252. <PropertyRef Name="id_Car" />
  253. </Key>
  254. <Property Name="id_Car" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  255. <Property Name="id_Teem" Type="Int32" Nullable="false" />
  256. <Property Name="id_Service" Type="Int32" Nullable="false" />
  257. <Property Name="id_Client" Type="Int32" Nullable="false" />
  258. <Property Name="id_CarBrand" Type="Int32" Nullable="false" />
  259. <Property Name="Car_mileage" Type="Int32" />
  260. <NavigationProperty Name="CarBrand" Relationship="Self.FK_Car_CarBrand" FromRole="Car" ToRole="CarBrand" />
  261. <NavigationProperty Name="Service" Relationship="Self.FK_Car_Service" FromRole="Car" ToRole="Service" />
  262. <NavigationProperty Name="Teem" Relationship="Self.FK_Car_Teem" FromRole="Car" ToRole="Teem" />
  263. <NavigationProperty Name="Record" Relationship="Self.FK_Record_Car" FromRole="Car" ToRole="Record" />
  264. </EntityType>
  265. <EntityType Name="CarBrand">
  266. <Key>
  267. <PropertyRef Name="id_CarBrand" />
  268. </Key>
  269. <Property Name="id_CarBrand" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  270. <Property Name="CarBrand1" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
  271. <NavigationProperty Name="Car" Relationship="Self.FK_Car_CarBrand" FromRole="CarBrand" ToRole="Car" />
  272. </EntityType>
  273. <EntityType Name="Client">
  274. <Key>
  275. <PropertyRef Name="id_Client" />
  276. </Key>
  277. <Property Name="id_Client" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  278. <Property Name="Surname" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  279. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  280. <Property Name="Patronymic" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  281. <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  282. <Property Name="Password" Type="String" MaxLength="256" FixedLength="false" Unicode="false" />
  283. <Property Name="id_Gender" Type="Int32" />
  284. <Property Name="BirthDate" Type="DateTime" Precision="0" />
  285. <Property Name="id_Role" Type="Int32" />
  286. <NavigationProperty Name="Record" Relationship="Self.FK_Record_Client" FromRole="Client" ToRole="Record" />
  287. <NavigationProperty Name="Gender" Relationship="Self.FK_Table_1_Table_2" FromRole="Client" ToRole="Gender" />
  288. <NavigationProperty Name="Role" Relationship="Self.FK_Table_1_Table_3" FromRole="Client" ToRole="Role" />
  289. </EntityType>
  290. <EntityType Name="Gender">
  291. <Key>
  292. <PropertyRef Name="id_Gender" />
  293. </Key>
  294. <Property Name="id_Gender" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  295. <Property Name="Gender1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  296. <NavigationProperty Name="Client" Relationship="Self.FK_Table_1_Table_2" FromRole="Gender" ToRole="Client" />
  297. </EntityType>
  298. <EntityType Name="Post">
  299. <Key>
  300. <PropertyRef Name="id_Post" />
  301. </Key>
  302. <Property Name="id_Post" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  303. <Property Name="Name_Post" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  304. <NavigationProperty Name="Teem" Relationship="Self.FK_Teem_Post" FromRole="Post" ToRole="Teem" />
  305. </EntityType>
  306. <EntityType Name="Role">
  307. <Key>
  308. <PropertyRef Name="id" />
  309. </Key>
  310. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  311. <Property Name="Role1" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
  312. <NavigationProperty Name="Client" Relationship="Self.FK_Table_1_Table_3" FromRole="Role" ToRole="Client" />
  313. </EntityType>
  314. <EntityType Name="Service">
  315. <Key>
  316. <PropertyRef Name="id_Service" />
  317. </Key>
  318. <Property Name="id_Service" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  319. <Property Name="name_Service" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
  320. <Property Name="Prise" Type="Int32" Nullable="false" />
  321. <NavigationProperty Name="Car" Relationship="Self.FK_Car_Service" FromRole="Service" ToRole="Car" />
  322. </EntityType>
  323. <EntityType Name="sysdiagrams">
  324. <Key>
  325. <PropertyRef Name="diagram_id" />
  326. </Key>
  327. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  328. <Property Name="principal_id" Type="Int32" Nullable="false" />
  329. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  330. <Property Name="version" Type="Int32" />
  331. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  332. </EntityType>
  333. <EntityType Name="Teem">
  334. <Key>
  335. <PropertyRef Name="id_Teem" />
  336. </Key>
  337. <Property Name="id_Teem" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  338. <Property Name="Surname_Teem" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  339. <Property Name="Neme_Teem" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
  340. <Property Name="id_Post" Type="Int32" Nullable="false" />
  341. <NavigationProperty Name="Car" Relationship="Self.FK_Car_Teem" FromRole="Teem" ToRole="Car" />
  342. <NavigationProperty Name="Post" Relationship="Self.FK_Teem_Post" FromRole="Teem" ToRole="Post" />
  343. </EntityType>
  344. <EntityType Name="Record">
  345. <Key>
  346. <PropertyRef Name="id_Record" />
  347. <PropertyRef Name="id_Client" />
  348. </Key>
  349. <Property Name="id_Record" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  350. <Property Name="id_Car" Type="Int32" />
  351. <Property Name="id_Client" Type="Int32" Nullable="false" />
  352. <NavigationProperty Name="Car" Relationship="Self.FK_Record_Car" FromRole="Record" ToRole="Car" />
  353. <NavigationProperty Name="Client" Relationship="Self.FK_Record_Client" FromRole="Record" ToRole="Client" />
  354. </EntityType>
  355. <Association Name="FK_Car_CarBrand">
  356. <End Role="CarBrand" Type="Self.CarBrand" Multiplicity="1" />
  357. <End Role="Car" Type="Self.Car" Multiplicity="*" />
  358. <ReferentialConstraint>
  359. <Principal Role="CarBrand">
  360. <PropertyRef Name="id_CarBrand" />
  361. </Principal>
  362. <Dependent Role="Car">
  363. <PropertyRef Name="id_CarBrand" />
  364. </Dependent>
  365. </ReferentialConstraint>
  366. </Association>
  367. <Association Name="FK_Car_Service">
  368. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  369. <End Role="Car" Type="Self.Car" Multiplicity="*" />
  370. <ReferentialConstraint>
  371. <Principal Role="Service">
  372. <PropertyRef Name="id_Service" />
  373. </Principal>
  374. <Dependent Role="Car">
  375. <PropertyRef Name="id_Service" />
  376. </Dependent>
  377. </ReferentialConstraint>
  378. </Association>
  379. <Association Name="FK_Car_Teem">
  380. <End Role="Teem" Type="Self.Teem" Multiplicity="1" />
  381. <End Role="Car" Type="Self.Car" Multiplicity="*" />
  382. <ReferentialConstraint>
  383. <Principal Role="Teem">
  384. <PropertyRef Name="id_Teem" />
  385. </Principal>
  386. <Dependent Role="Car">
  387. <PropertyRef Name="id_Teem" />
  388. </Dependent>
  389. </ReferentialConstraint>
  390. </Association>
  391. <Association Name="FK_Record_Car">
  392. <End Role="Car" Type="Self.Car" Multiplicity="0..1" />
  393. <End Role="Record" Type="Self.Record" Multiplicity="*" />
  394. <ReferentialConstraint>
  395. <Principal Role="Car">
  396. <PropertyRef Name="id_Car" />
  397. </Principal>
  398. <Dependent Role="Record">
  399. <PropertyRef Name="id_Car" />
  400. </Dependent>
  401. </ReferentialConstraint>
  402. </Association>
  403. <Association Name="FK_Record_Client">
  404. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  405. <End Role="Record" Type="Self.Record" Multiplicity="*" />
  406. <ReferentialConstraint>
  407. <Principal Role="Client">
  408. <PropertyRef Name="id_Client" />
  409. </Principal>
  410. <Dependent Role="Record">
  411. <PropertyRef Name="id_Client" />
  412. </Dependent>
  413. </ReferentialConstraint>
  414. </Association>
  415. <Association Name="FK_Table_1_Table_2">
  416. <End Role="Gender" Type="Self.Gender" Multiplicity="0..1" />
  417. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  418. <ReferentialConstraint>
  419. <Principal Role="Gender">
  420. <PropertyRef Name="id_Gender" />
  421. </Principal>
  422. <Dependent Role="Client">
  423. <PropertyRef Name="id_Gender" />
  424. </Dependent>
  425. </ReferentialConstraint>
  426. </Association>
  427. <Association Name="FK_Table_1_Table_3">
  428. <End Role="Role" Type="Self.Role" Multiplicity="0..1" />
  429. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  430. <ReferentialConstraint>
  431. <Principal Role="Role">
  432. <PropertyRef Name="id" />
  433. </Principal>
  434. <Dependent Role="Client">
  435. <PropertyRef Name="id_Role" />
  436. </Dependent>
  437. </ReferentialConstraint>
  438. </Association>
  439. <Association Name="FK_Teem_Post">
  440. <End Role="Post" Type="Self.Post" Multiplicity="1" />
  441. <End Role="Teem" Type="Self.Teem" Multiplicity="*" />
  442. <ReferentialConstraint>
  443. <Principal Role="Post">
  444. <PropertyRef Name="id_Post" />
  445. </Principal>
  446. <Dependent Role="Teem">
  447. <PropertyRef Name="id_Post" />
  448. </Dependent>
  449. </ReferentialConstraint>
  450. </Association>
  451. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  452. <EntitySet Name="Car" EntityType="Self.Car" />
  453. <EntitySet Name="CarBrand" EntityType="Self.CarBrand" />
  454. <EntitySet Name="Client" EntityType="Self.Client" />
  455. <EntitySet Name="Gender" EntityType="Self.Gender" />
  456. <EntitySet Name="Post" EntityType="Self.Post" />
  457. <EntitySet Name="Role" EntityType="Self.Role" />
  458. <EntitySet Name="Service" EntityType="Self.Service" />
  459. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  460. <EntitySet Name="Teem" EntityType="Self.Teem" />
  461. <EntitySet Name="Record" EntityType="Self.Record" />
  462. <AssociationSet Name="FK_Car_CarBrand" Association="Self.FK_Car_CarBrand">
  463. <End Role="CarBrand" EntitySet="CarBrand" />
  464. <End Role="Car" EntitySet="Car" />
  465. </AssociationSet>
  466. <AssociationSet Name="FK_Car_Service" Association="Self.FK_Car_Service">
  467. <End Role="Service" EntitySet="Service" />
  468. <End Role="Car" EntitySet="Car" />
  469. </AssociationSet>
  470. <AssociationSet Name="FK_Car_Teem" Association="Self.FK_Car_Teem">
  471. <End Role="Teem" EntitySet="Teem" />
  472. <End Role="Car" EntitySet="Car" />
  473. </AssociationSet>
  474. <AssociationSet Name="FK_Record_Car" Association="Self.FK_Record_Car">
  475. <End Role="Car" EntitySet="Car" />
  476. <End Role="Record" EntitySet="Record" />
  477. </AssociationSet>
  478. <AssociationSet Name="FK_Record_Client" Association="Self.FK_Record_Client">
  479. <End Role="Client" EntitySet="Client" />
  480. <End Role="Record" EntitySet="Record" />
  481. </AssociationSet>
  482. <AssociationSet Name="FK_Table_1_Table_2" Association="Self.FK_Table_1_Table_2">
  483. <End Role="Gender" EntitySet="Gender" />
  484. <End Role="Client" EntitySet="Client" />
  485. </AssociationSet>
  486. <AssociationSet Name="FK_Table_1_Table_3" Association="Self.FK_Table_1_Table_3">
  487. <End Role="Role" EntitySet="Role" />
  488. <End Role="Client" EntitySet="Client" />
  489. </AssociationSet>
  490. <AssociationSet Name="FK_Teem_Post" Association="Self.FK_Teem_Post">
  491. <End Role="Post" EntitySet="Post" />
  492. <End Role="Teem" EntitySet="Teem" />
  493. </AssociationSet>
  494. </EntityContainer>
  495. </Schema>
  496. </edmx:ConceptualModels>
  497. <!-- C-S mapping content -->
  498. <edmx:Mappings>
  499. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  500. <EntityContainerMapping StorageEntityContainer="Хранилище ModelContainer" CdmEntityContainer="Entities">
  501. <EntitySetMapping Name="Car">
  502. <EntityTypeMapping TypeName="Model.Car">
  503. <MappingFragment StoreEntitySet="Car">
  504. <ScalarProperty Name="id_Car" ColumnName="id_Car" />
  505. <ScalarProperty Name="id_Teem" ColumnName="id_Teem" />
  506. <ScalarProperty Name="id_Service" ColumnName="id_Service" />
  507. <ScalarProperty Name="id_Client" ColumnName="id_Client" />
  508. <ScalarProperty Name="id_CarBrand" ColumnName="id_CarBrand" />
  509. <ScalarProperty Name="Car_mileage" ColumnName="Car_mileage" />
  510. </MappingFragment>
  511. </EntityTypeMapping>
  512. </EntitySetMapping>
  513. <EntitySetMapping Name="CarBrand">
  514. <EntityTypeMapping TypeName="Model.CarBrand">
  515. <MappingFragment StoreEntitySet="CarBrand">
  516. <ScalarProperty Name="id_CarBrand" ColumnName="id_CarBrand" />
  517. <ScalarProperty Name="CarBrand1" ColumnName="CarBrand" />
  518. </MappingFragment>
  519. </EntityTypeMapping>
  520. </EntitySetMapping>
  521. <EntitySetMapping Name="Client">
  522. <EntityTypeMapping TypeName="Model.Client">
  523. <MappingFragment StoreEntitySet="Client">
  524. <ScalarProperty Name="id_Client" ColumnName="id_Client" />
  525. <ScalarProperty Name="Surname" ColumnName="Surname" />
  526. <ScalarProperty Name="Name" ColumnName="Name" />
  527. <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
  528. <ScalarProperty Name="Login" ColumnName="Login" />
  529. <ScalarProperty Name="Password" ColumnName="Password" />
  530. <ScalarProperty Name="id_Gender" ColumnName="id_Gender" />
  531. <ScalarProperty Name="BirthDate" ColumnName="BirthDate" />
  532. <ScalarProperty Name="id_Role" ColumnName="id_Role" />
  533. </MappingFragment>
  534. </EntityTypeMapping>
  535. </EntitySetMapping>
  536. <EntitySetMapping Name="Gender">
  537. <EntityTypeMapping TypeName="Model.Gender">
  538. <MappingFragment StoreEntitySet="Gender">
  539. <ScalarProperty Name="id_Gender" ColumnName="id_Gender" />
  540. <ScalarProperty Name="Gender1" ColumnName="Gender" />
  541. </MappingFragment>
  542. </EntityTypeMapping>
  543. </EntitySetMapping>
  544. <EntitySetMapping Name="Post">
  545. <EntityTypeMapping TypeName="Model.Post">
  546. <MappingFragment StoreEntitySet="Post">
  547. <ScalarProperty Name="id_Post" ColumnName="id_Post" />
  548. <ScalarProperty Name="Name_Post" ColumnName="Name_Post" />
  549. </MappingFragment>
  550. </EntityTypeMapping>
  551. </EntitySetMapping>
  552. <EntitySetMapping Name="Role">
  553. <EntityTypeMapping TypeName="Model.Role">
  554. <MappingFragment StoreEntitySet="Role">
  555. <ScalarProperty Name="id" ColumnName="id" />
  556. <ScalarProperty Name="Role1" ColumnName="Role" />
  557. </MappingFragment>
  558. </EntityTypeMapping>
  559. </EntitySetMapping>
  560. <EntitySetMapping Name="Service">
  561. <EntityTypeMapping TypeName="Model.Service">
  562. <MappingFragment StoreEntitySet="Service">
  563. <ScalarProperty Name="id_Service" ColumnName="id_Service" />
  564. <ScalarProperty Name="name_Service" ColumnName="name_Service" />
  565. <ScalarProperty Name="Prise" ColumnName="Prise" />
  566. </MappingFragment>
  567. </EntityTypeMapping>
  568. </EntitySetMapping>
  569. <EntitySetMapping Name="sysdiagrams">
  570. <EntityTypeMapping TypeName="Model.sysdiagrams">
  571. <MappingFragment StoreEntitySet="sysdiagrams">
  572. <ScalarProperty Name="name" ColumnName="name" />
  573. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  574. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  575. <ScalarProperty Name="version" ColumnName="version" />
  576. <ScalarProperty Name="definition" ColumnName="definition" />
  577. </MappingFragment>
  578. </EntityTypeMapping>
  579. </EntitySetMapping>
  580. <EntitySetMapping Name="Teem">
  581. <EntityTypeMapping TypeName="Model.Teem">
  582. <MappingFragment StoreEntitySet="Teem">
  583. <ScalarProperty Name="id_Teem" ColumnName="id_Teem" />
  584. <ScalarProperty Name="Surname_Teem" ColumnName="Surname_Teem" />
  585. <ScalarProperty Name="Neme_Teem" ColumnName="Neme_Teem" />
  586. <ScalarProperty Name="id_Post" ColumnName="id_Post" />
  587. </MappingFragment>
  588. </EntityTypeMapping>
  589. </EntitySetMapping>
  590. <EntitySetMapping Name="Record">
  591. <EntityTypeMapping TypeName="Model.Record">
  592. <MappingFragment StoreEntitySet="Record">
  593. <ScalarProperty Name="id_Record" ColumnName="id_Record" />
  594. <ScalarProperty Name="id_Car" ColumnName="id_Car" />
  595. <ScalarProperty Name="id_Client" ColumnName="id_Client" />
  596. </MappingFragment>
  597. </EntityTypeMapping>
  598. </EntitySetMapping>
  599. </EntityContainerMapping>
  600. </Mapping>
  601. </edmx:Mappings>
  602. </edmx:Runtime>
  603. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  604. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  605. <Connection>
  606. <DesignerInfoPropertySet>
  607. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  608. </DesignerInfoPropertySet>
  609. </Connection>
  610. <Options>
  611. <DesignerInfoPropertySet>
  612. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  613. <DesignerProperty Name="EnablePluralization" Value="false" />
  614. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  615. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  616. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  617. </DesignerInfoPropertySet>
  618. </Options>
  619. <!-- Diagram content (shape and connector positions) -->
  620. <Diagrams></Diagrams>
  621. </Designer>
  622. </edmx:Edmx>