dbDE.edmx 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  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="Хранилище gr601_kayualModel" 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="Fire">
  9. <Key>
  10. <PropertyRef Name="Fire_ID" />
  11. </Key>
  12. <Property Name="Fire_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="Area" Type="int" Nullable="false" />
  14. <Property Name="StartDate" Type="date" Nullable="false" />
  15. <Property Name="EndDate" Type="date" />
  16. <Property Name="FirePower" Type="int" Nullable="false" />
  17. <Property Name="FKForestID" Type="int" />
  18. <Property Name="FKFirehouseID" Type="int" />
  19. </EntityType>
  20. <EntityType Name="Firehouse">
  21. <Key>
  22. <PropertyRef Name="Firehouse_ID" />
  23. </Key>
  24. <Property Name="Firehouse_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  25. <Property Name="FirehouseTitle" Type="nvarchar" MaxLength="50" Nullable="false" />
  26. </EntityType>
  27. <EntityType Name="Fireman">
  28. <Key>
  29. <PropertyRef Name="Fireman_ID" />
  30. </Key>
  31. <Property Name="Fireman_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  32. <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
  33. <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
  34. <Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
  35. <Property Name="FKTeamID" Type="int" />
  36. </EntityType>
  37. <EntityType Name="Forest">
  38. <Key>
  39. <PropertyRef Name="Forest_ID" />
  40. </Key>
  41. <Property Name="Forest_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  42. <Property Name="ForestTitle" Type="nvarchar" MaxLength="50" Nullable="false" />
  43. <Property Name="Area" Type="int" Nullable="false" />
  44. </EntityType>
  45. <EntityType Name="StaffIS">
  46. <Key>
  47. <PropertyRef Name="StaffIS_ID" />
  48. </Key>
  49. <Property Name="StaffIS_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  50. <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
  51. <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
  52. <Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
  53. <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
  54. <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
  55. </EntityType>
  56. <EntityType Name="Team">
  57. <Key>
  58. <PropertyRef Name="Team_ID" />
  59. </Key>
  60. <Property Name="Team_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  61. <Property Name="TeamTitle" Type="nvarchar" MaxLength="50" Nullable="false" />
  62. <Property Name="FKFirehouseID" Type="int" />
  63. </EntityType>
  64. <Association Name="FK_Firehouse_ID">
  65. <End Role="Firehouse" Type="Self.Firehouse" Multiplicity="0..1" />
  66. <End Role="Team" Type="Self.Team" Multiplicity="*" />
  67. <ReferentialConstraint>
  68. <Principal Role="Firehouse">
  69. <PropertyRef Name="Firehouse_ID" />
  70. </Principal>
  71. <Dependent Role="Team">
  72. <PropertyRef Name="FKFirehouseID" />
  73. </Dependent>
  74. </ReferentialConstraint>
  75. </Association>
  76. <Association Name="FK_Firehousee_ID">
  77. <End Role="Firehouse" Type="Self.Firehouse" Multiplicity="0..1" />
  78. <End Role="Fire" Type="Self.Fire" Multiplicity="*" />
  79. <ReferentialConstraint>
  80. <Principal Role="Firehouse">
  81. <PropertyRef Name="Firehouse_ID" />
  82. </Principal>
  83. <Dependent Role="Fire">
  84. <PropertyRef Name="FKFirehouseID" />
  85. </Dependent>
  86. </ReferentialConstraint>
  87. </Association>
  88. <Association Name="FK_Forest_ID">
  89. <End Role="Forest" Type="Self.Forest" Multiplicity="0..1" />
  90. <End Role="Fire" Type="Self.Fire" Multiplicity="*" />
  91. <ReferentialConstraint>
  92. <Principal Role="Forest">
  93. <PropertyRef Name="Forest_ID" />
  94. </Principal>
  95. <Dependent Role="Fire">
  96. <PropertyRef Name="FKForestID" />
  97. </Dependent>
  98. </ReferentialConstraint>
  99. </Association>
  100. <Association Name="FK_Team_ID">
  101. <End Role="Team" Type="Self.Team" Multiplicity="0..1" />
  102. <End Role="Fireman" Type="Self.Fireman" Multiplicity="*" />
  103. <ReferentialConstraint>
  104. <Principal Role="Team">
  105. <PropertyRef Name="Team_ID" />
  106. </Principal>
  107. <Dependent Role="Fireman">
  108. <PropertyRef Name="FKTeamID" />
  109. </Dependent>
  110. </ReferentialConstraint>
  111. </Association>
  112. <EntityContainer Name="Хранилище gr601_kayualModelContainer">
  113. <EntitySet Name="Fire" EntityType="Self.Fire" Schema="dbo" store:Type="Tables" />
  114. <EntitySet Name="Firehouse" EntityType="Self.Firehouse" Schema="dbo" store:Type="Tables" />
  115. <EntitySet Name="Fireman" EntityType="Self.Fireman" Schema="dbo" store:Type="Tables" />
  116. <EntitySet Name="Forest" EntityType="Self.Forest" Schema="dbo" store:Type="Tables" />
  117. <EntitySet Name="StaffIS" EntityType="Self.StaffIS" Schema="dbo" store:Type="Tables" />
  118. <EntitySet Name="Team" EntityType="Self.Team" Schema="dbo" store:Type="Tables" />
  119. <AssociationSet Name="FK_Firehouse_ID" Association="Self.FK_Firehouse_ID">
  120. <End Role="Firehouse" EntitySet="Firehouse" />
  121. <End Role="Team" EntitySet="Team" />
  122. </AssociationSet>
  123. <AssociationSet Name="FK_Firehousee_ID" Association="Self.FK_Firehousee_ID">
  124. <End Role="Firehouse" EntitySet="Firehouse" />
  125. <End Role="Fire" EntitySet="Fire" />
  126. </AssociationSet>
  127. <AssociationSet Name="FK_Forest_ID" Association="Self.FK_Forest_ID">
  128. <End Role="Forest" EntitySet="Forest" />
  129. <End Role="Fire" EntitySet="Fire" />
  130. </AssociationSet>
  131. <AssociationSet Name="FK_Team_ID" Association="Self.FK_Team_ID">
  132. <End Role="Team" EntitySet="Team" />
  133. <End Role="Fireman" EntitySet="Fireman" />
  134. </AssociationSet>
  135. </EntityContainer>
  136. </Schema>
  137. </edmx:StorageModels>
  138. <!-- CSDL content -->
  139. <edmx:ConceptualModels>
  140. <Schema Namespace="gr601_kayualModel" 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">
  141. <EntityType Name="Fire">
  142. <Key>
  143. <PropertyRef Name="Fire_ID" />
  144. </Key>
  145. <Property Name="Fire_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  146. <Property Name="Area" Type="Int32" Nullable="false" />
  147. <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="0" />
  148. <Property Name="EndDate" Type="DateTime" Precision="0" />
  149. <Property Name="FirePower" Type="Int32" Nullable="false" />
  150. <Property Name="FKForestID" Type="Int32" />
  151. <Property Name="FKFirehouseID" Type="Int32" />
  152. <NavigationProperty Name="Firehouse" Relationship="Self.FK_Firehousee_ID" FromRole="Fire" ToRole="Firehouse" />
  153. <NavigationProperty Name="Forest" Relationship="Self.FK_Forest_ID" FromRole="Fire" ToRole="Forest" />
  154. </EntityType>
  155. <EntityType Name="Firehouse">
  156. <Key>
  157. <PropertyRef Name="Firehouse_ID" />
  158. </Key>
  159. <Property Name="Firehouse_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  160. <Property Name="FirehouseTitle" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  161. <NavigationProperty Name="Fire" Relationship="Self.FK_Firehousee_ID" FromRole="Firehouse" ToRole="Fire" />
  162. <NavigationProperty Name="Team" Relationship="Self.FK_Firehouse_ID" FromRole="Firehouse" ToRole="Team" />
  163. </EntityType>
  164. <EntityType Name="Fireman">
  165. <Key>
  166. <PropertyRef Name="Fireman_ID" />
  167. </Key>
  168. <Property Name="Fireman_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  169. <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  170. <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  171. <Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  172. <Property Name="FKTeamID" Type="Int32" />
  173. <NavigationProperty Name="Team" Relationship="Self.FK_Team_ID" FromRole="Fireman" ToRole="Team" />
  174. </EntityType>
  175. <EntityType Name="Forest">
  176. <Key>
  177. <PropertyRef Name="Forest_ID" />
  178. </Key>
  179. <Property Name="Forest_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  180. <Property Name="ForestTitle" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  181. <Property Name="Area" Type="Int32" Nullable="false" />
  182. <NavigationProperty Name="Fire" Relationship="Self.FK_Forest_ID" FromRole="Forest" ToRole="Fire" />
  183. </EntityType>
  184. <EntityType Name="StaffIS">
  185. <Key>
  186. <PropertyRef Name="StaffIS_ID" />
  187. </Key>
  188. <Property Name="StaffIS_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  189. <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  190. <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  191. <Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  192. <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  193. <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  194. </EntityType>
  195. <EntityType Name="Team">
  196. <Key>
  197. <PropertyRef Name="Team_ID" />
  198. </Key>
  199. <Property Name="Team_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  200. <Property Name="TeamTitle" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  201. <Property Name="FKFirehouseID" Type="Int32" />
  202. <NavigationProperty Name="Firehouse" Relationship="Self.FK_Firehouse_ID" FromRole="Team" ToRole="Firehouse" />
  203. <NavigationProperty Name="Fireman" Relationship="Self.FK_Team_ID" FromRole="Team" ToRole="Fireman" />
  204. </EntityType>
  205. <Association Name="FK_Firehousee_ID">
  206. <End Role="Firehouse" Type="Self.Firehouse" Multiplicity="0..1" />
  207. <End Role="Fire" Type="Self.Fire" Multiplicity="*" />
  208. <ReferentialConstraint>
  209. <Principal Role="Firehouse">
  210. <PropertyRef Name="Firehouse_ID" />
  211. </Principal>
  212. <Dependent Role="Fire">
  213. <PropertyRef Name="FKFirehouseID" />
  214. </Dependent>
  215. </ReferentialConstraint>
  216. </Association>
  217. <Association Name="FK_Forest_ID">
  218. <End Role="Forest" Type="Self.Forest" Multiplicity="0..1" />
  219. <End Role="Fire" Type="Self.Fire" Multiplicity="*" />
  220. <ReferentialConstraint>
  221. <Principal Role="Forest">
  222. <PropertyRef Name="Forest_ID" />
  223. </Principal>
  224. <Dependent Role="Fire">
  225. <PropertyRef Name="FKForestID" />
  226. </Dependent>
  227. </ReferentialConstraint>
  228. </Association>
  229. <Association Name="FK_Firehouse_ID">
  230. <End Role="Firehouse" Type="Self.Firehouse" Multiplicity="0..1" />
  231. <End Role="Team" Type="Self.Team" Multiplicity="*" />
  232. <ReferentialConstraint>
  233. <Principal Role="Firehouse">
  234. <PropertyRef Name="Firehouse_ID" />
  235. </Principal>
  236. <Dependent Role="Team">
  237. <PropertyRef Name="FKFirehouseID" />
  238. </Dependent>
  239. </ReferentialConstraint>
  240. </Association>
  241. <Association Name="FK_Team_ID">
  242. <End Role="Team" Type="Self.Team" Multiplicity="0..1" />
  243. <End Role="Fireman" Type="Self.Fireman" Multiplicity="*" />
  244. <ReferentialConstraint>
  245. <Principal Role="Team">
  246. <PropertyRef Name="Team_ID" />
  247. </Principal>
  248. <Dependent Role="Fireman">
  249. <PropertyRef Name="FKTeamID" />
  250. </Dependent>
  251. </ReferentialConstraint>
  252. </Association>
  253. <EntityContainer Name="dbData" annotation:LazyLoadingEnabled="true">
  254. <EntitySet Name="Fires" EntityType="Self.Fire" />
  255. <EntitySet Name="Firehouses" EntityType="Self.Firehouse" />
  256. <EntitySet Name="Firemans" EntityType="Self.Fireman" />
  257. <EntitySet Name="Forests" EntityType="Self.Forest" />
  258. <EntitySet Name="StaffISs" EntityType="Self.StaffIS" />
  259. <EntitySet Name="Teams" EntityType="Self.Team" />
  260. <AssociationSet Name="FK_Firehousee_ID" Association="Self.FK_Firehousee_ID">
  261. <End Role="Firehouse" EntitySet="Firehouses" />
  262. <End Role="Fire" EntitySet="Fires" />
  263. </AssociationSet>
  264. <AssociationSet Name="FK_Forest_ID" Association="Self.FK_Forest_ID">
  265. <End Role="Forest" EntitySet="Forests" />
  266. <End Role="Fire" EntitySet="Fires" />
  267. </AssociationSet>
  268. <AssociationSet Name="FK_Firehouse_ID" Association="Self.FK_Firehouse_ID">
  269. <End Role="Firehouse" EntitySet="Firehouses" />
  270. <End Role="Team" EntitySet="Teams" />
  271. </AssociationSet>
  272. <AssociationSet Name="FK_Team_ID" Association="Self.FK_Team_ID">
  273. <End Role="Team" EntitySet="Teams" />
  274. <End Role="Fireman" EntitySet="Firemans" />
  275. </AssociationSet>
  276. </EntityContainer>
  277. </Schema>
  278. </edmx:ConceptualModels>
  279. <!-- C-S mapping content -->
  280. <edmx:Mappings>
  281. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  282. <EntityContainerMapping StorageEntityContainer="Хранилище gr601_kayualModelContainer" CdmEntityContainer="dbData">
  283. <EntitySetMapping Name="Fires">
  284. <EntityTypeMapping TypeName="gr601_kayualModel.Fire">
  285. <MappingFragment StoreEntitySet="Fire">
  286. <ScalarProperty Name="Fire_ID" ColumnName="Fire_ID" />
  287. <ScalarProperty Name="Area" ColumnName="Area" />
  288. <ScalarProperty Name="StartDate" ColumnName="StartDate" />
  289. <ScalarProperty Name="EndDate" ColumnName="EndDate" />
  290. <ScalarProperty Name="FirePower" ColumnName="FirePower" />
  291. <ScalarProperty Name="FKForestID" ColumnName="FKForestID" />
  292. <ScalarProperty Name="FKFirehouseID" ColumnName="FKFirehouseID" />
  293. </MappingFragment>
  294. </EntityTypeMapping>
  295. </EntitySetMapping>
  296. <EntitySetMapping Name="Firehouses">
  297. <EntityTypeMapping TypeName="gr601_kayualModel.Firehouse">
  298. <MappingFragment StoreEntitySet="Firehouse">
  299. <ScalarProperty Name="Firehouse_ID" ColumnName="Firehouse_ID" />
  300. <ScalarProperty Name="FirehouseTitle" ColumnName="FirehouseTitle" />
  301. </MappingFragment>
  302. </EntityTypeMapping>
  303. </EntitySetMapping>
  304. <EntitySetMapping Name="Firemans">
  305. <EntityTypeMapping TypeName="gr601_kayualModel.Fireman">
  306. <MappingFragment StoreEntitySet="Fireman">
  307. <ScalarProperty Name="Fireman_ID" ColumnName="Fireman_ID" />
  308. <ScalarProperty Name="LastName" ColumnName="LastName" />
  309. <ScalarProperty Name="FirstName" ColumnName="FirstName" />
  310. <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
  311. <ScalarProperty Name="FKTeamID" ColumnName="FKTeamID" />
  312. </MappingFragment>
  313. </EntityTypeMapping>
  314. </EntitySetMapping>
  315. <EntitySetMapping Name="Forests">
  316. <EntityTypeMapping TypeName="gr601_kayualModel.Forest">
  317. <MappingFragment StoreEntitySet="Forest">
  318. <ScalarProperty Name="Forest_ID" ColumnName="Forest_ID" />
  319. <ScalarProperty Name="ForestTitle" ColumnName="ForestTitle" />
  320. <ScalarProperty Name="Area" ColumnName="Area" />
  321. </MappingFragment>
  322. </EntityTypeMapping>
  323. </EntitySetMapping>
  324. <EntitySetMapping Name="StaffISs">
  325. <EntityTypeMapping TypeName="gr601_kayualModel.StaffIS">
  326. <MappingFragment StoreEntitySet="StaffIS">
  327. <ScalarProperty Name="StaffIS_ID" ColumnName="StaffIS_ID" />
  328. <ScalarProperty Name="LastName" ColumnName="LastName" />
  329. <ScalarProperty Name="FirstName" ColumnName="FirstName" />
  330. <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
  331. <ScalarProperty Name="Login" ColumnName="Login" />
  332. <ScalarProperty Name="Password" ColumnName="Password" />
  333. </MappingFragment>
  334. </EntityTypeMapping>
  335. </EntitySetMapping>
  336. <EntitySetMapping Name="Teams">
  337. <EntityTypeMapping TypeName="gr601_kayualModel.Team">
  338. <MappingFragment StoreEntitySet="Team">
  339. <ScalarProperty Name="Team_ID" ColumnName="Team_ID" />
  340. <ScalarProperty Name="TeamTitle" ColumnName="TeamTitle" />
  341. <ScalarProperty Name="FKFirehouseID" ColumnName="FKFirehouseID" />
  342. </MappingFragment>
  343. </EntityTypeMapping>
  344. </EntitySetMapping>
  345. </EntityContainerMapping>
  346. </Mapping>
  347. </edmx:Mappings>
  348. </edmx:Runtime>
  349. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  350. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  351. <Connection>
  352. <DesignerInfoPropertySet>
  353. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  354. </DesignerInfoPropertySet>
  355. </Connection>
  356. <Options>
  357. <DesignerInfoPropertySet>
  358. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  359. <DesignerProperty Name="EnablePluralization" Value="false" />
  360. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  361. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  362. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  363. </DesignerInfoPropertySet>
  364. </Options>
  365. <!-- Diagram content (shape and connector positions) -->
  366. <Diagrams></Diagrams>
  367. </Designer>
  368. </edmx:Edmx>