Model1.edmx 30 KB

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