Model1.edmx 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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="Хранилище aeroModel" 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="Company">
  9. <Key>
  10. <PropertyRef Name="ID_comp" />
  11. </Key>
  12. <Property Name="ID_comp" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="name" Type="char" MaxLength="10" Nullable="false" />
  14. </EntityType>
  15. <EntityType Name="Pass_in_trip">
  16. <Key>
  17. <PropertyRef Name="trip_no" />
  18. <PropertyRef Name="date" />
  19. <PropertyRef Name="ID_psg" />
  20. </Key>
  21. <Property Name="trip_no" Type="int" Nullable="false" />
  22. <Property Name="date" Type="datetime" Nullable="false" />
  23. <Property Name="ID_psg" Type="int" Nullable="false" />
  24. <Property Name="place" Type="char" MaxLength="10" Nullable="false" />
  25. </EntityType>
  26. <EntityType Name="Passenger">
  27. <Key>
  28. <PropertyRef Name="ID_psg" />
  29. </Key>
  30. <Property Name="ID_psg" Type="int" Nullable="false" />
  31. <Property Name="name" Type="char" MaxLength="20" Nullable="false" />
  32. </EntityType>
  33. <EntityType Name="sysdiagrams">
  34. <Key>
  35. <PropertyRef Name="diagram_id" />
  36. </Key>
  37. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  38. <Property Name="principal_id" Type="int" Nullable="false" />
  39. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  40. <Property Name="version" Type="int" />
  41. <Property Name="definition" Type="varbinary(max)" />
  42. </EntityType>
  43. <EntityType Name="Trip">
  44. <Key>
  45. <PropertyRef Name="trip_no" />
  46. </Key>
  47. <Property Name="trip_no" Type="int" Nullable="false" />
  48. <Property Name="ID_comp" Type="int" Nullable="false" />
  49. <Property Name="plane" Type="char" MaxLength="10" Nullable="false" />
  50. <Property Name="town_from" Type="char" MaxLength="25" Nullable="false" />
  51. <Property Name="town_to" Type="char" MaxLength="25" Nullable="false" />
  52. <Property Name="time_out" Type="datetime" Nullable="false" />
  53. <Property Name="time_in" Type="datetime" Nullable="false" />
  54. </EntityType>
  55. <EntityType Name="Users">
  56. <Key>
  57. <PropertyRef Name="id" />
  58. </Key>
  59. <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  60. <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
  61. <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
  62. </EntityType>
  63. <Association Name="FK_Pass_in_trip_Passenger">
  64. <End Role="Passenger" Type="Self.Passenger" Multiplicity="1" />
  65. <End Role="Pass_in_trip" Type="Self.Pass_in_trip" Multiplicity="*" />
  66. <ReferentialConstraint>
  67. <Principal Role="Passenger">
  68. <PropertyRef Name="ID_psg" />
  69. </Principal>
  70. <Dependent Role="Pass_in_trip">
  71. <PropertyRef Name="ID_psg" />
  72. </Dependent>
  73. </ReferentialConstraint>
  74. </Association>
  75. <Association Name="FK_Pass_in_trip_Trip">
  76. <End Role="Trip" Type="Self.Trip" Multiplicity="1" />
  77. <End Role="Pass_in_trip" Type="Self.Pass_in_trip" Multiplicity="*" />
  78. <ReferentialConstraint>
  79. <Principal Role="Trip">
  80. <PropertyRef Name="trip_no" />
  81. </Principal>
  82. <Dependent Role="Pass_in_trip">
  83. <PropertyRef Name="trip_no" />
  84. </Dependent>
  85. </ReferentialConstraint>
  86. </Association>
  87. <Association Name="FK_Trip_Company">
  88. <End Role="Company" Type="Self.Company" Multiplicity="1" />
  89. <End Role="Trip" Type="Self.Trip" Multiplicity="*" />
  90. <ReferentialConstraint>
  91. <Principal Role="Company">
  92. <PropertyRef Name="ID_comp" />
  93. </Principal>
  94. <Dependent Role="Trip">
  95. <PropertyRef Name="ID_comp" />
  96. </Dependent>
  97. </ReferentialConstraint>
  98. </Association>
  99. <EntityContainer Name="Хранилище aeroModelContainer">
  100. <EntitySet Name="Company" EntityType="Self.Company" Schema="dbo" store:Type="Tables" />
  101. <EntitySet Name="Pass_in_trip" EntityType="Self.Pass_in_trip" Schema="dbo" store:Type="Tables" />
  102. <EntitySet Name="Passenger" EntityType="Self.Passenger" Schema="dbo" store:Type="Tables" />
  103. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  104. <EntitySet Name="Trip" EntityType="Self.Trip" Schema="dbo" store:Type="Tables" />
  105. <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
  106. <AssociationSet Name="FK_Pass_in_trip_Passenger" Association="Self.FK_Pass_in_trip_Passenger">
  107. <End Role="Passenger" EntitySet="Passenger" />
  108. <End Role="Pass_in_trip" EntitySet="Pass_in_trip" />
  109. </AssociationSet>
  110. <AssociationSet Name="FK_Pass_in_trip_Trip" Association="Self.FK_Pass_in_trip_Trip">
  111. <End Role="Trip" EntitySet="Trip" />
  112. <End Role="Pass_in_trip" EntitySet="Pass_in_trip" />
  113. </AssociationSet>
  114. <AssociationSet Name="FK_Trip_Company" Association="Self.FK_Trip_Company">
  115. <End Role="Company" EntitySet="Company" />
  116. <End Role="Trip" EntitySet="Trip" />
  117. </AssociationSet>
  118. </EntityContainer>
  119. </Schema>
  120. </edmx:StorageModels>
  121. <!-- CSDL content -->
  122. <edmx:ConceptualModels>
  123. <Schema Namespace="aeroModel" 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">
  124. <EntityType Name="Company">
  125. <Key>
  126. <PropertyRef Name="ID_comp" />
  127. </Key>
  128. <Property Name="ID_comp" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  129. <Property Name="name" Type="String" MaxLength="10" FixedLength="true" Unicode="false" Nullable="false" />
  130. <NavigationProperty Name="Trip" Relationship="Self.FK_Trip_Company" FromRole="Company" ToRole="Trip" />
  131. </EntityType>
  132. <EntityType Name="Pass_in_trip">
  133. <Key>
  134. <PropertyRef Name="trip_no" />
  135. <PropertyRef Name="date" />
  136. <PropertyRef Name="ID_psg" />
  137. </Key>
  138. <Property Name="trip_no" Type="Int32" Nullable="false" />
  139. <Property Name="date" Type="DateTime" Nullable="false" Precision="3" />
  140. <Property Name="ID_psg" Type="Int32" Nullable="false" />
  141. <Property Name="place" Type="String" MaxLength="10" FixedLength="true" Unicode="false" Nullable="false" />
  142. <NavigationProperty Name="Passenger" Relationship="Self.FK_Pass_in_trip_Passenger" FromRole="Pass_in_trip" ToRole="Passenger" />
  143. <NavigationProperty Name="Trip" Relationship="Self.FK_Pass_in_trip_Trip" FromRole="Pass_in_trip" ToRole="Trip" />
  144. </EntityType>
  145. <EntityType Name="Passenger">
  146. <Key>
  147. <PropertyRef Name="ID_psg" />
  148. </Key>
  149. <Property Name="ID_psg" Type="Int32" Nullable="false" />
  150. <Property Name="name" Type="String" MaxLength="20" FixedLength="true" Unicode="false" Nullable="false" />
  151. <NavigationProperty Name="Pass_in_trip" Relationship="Self.FK_Pass_in_trip_Passenger" FromRole="Passenger" ToRole="Pass_in_trip" />
  152. </EntityType>
  153. <EntityType Name="sysdiagrams">
  154. <Key>
  155. <PropertyRef Name="diagram_id" />
  156. </Key>
  157. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  158. <Property Name="principal_id" Type="Int32" Nullable="false" />
  159. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  160. <Property Name="version" Type="Int32" />
  161. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  162. </EntityType>
  163. <EntityType Name="Trip">
  164. <Key>
  165. <PropertyRef Name="trip_no" />
  166. </Key>
  167. <Property Name="trip_no" Type="Int32" Nullable="false" />
  168. <Property Name="ID_comp" Type="Int32" Nullable="false" />
  169. <Property Name="plane" Type="String" MaxLength="10" FixedLength="true" Unicode="false" Nullable="false" />
  170. <Property Name="town_from" Type="String" MaxLength="25" FixedLength="true" Unicode="false" Nullable="false" />
  171. <Property Name="town_to" Type="String" MaxLength="25" FixedLength="true" Unicode="false" Nullable="false" />
  172. <Property Name="time_out" Type="DateTime" Nullable="false" Precision="3" />
  173. <Property Name="time_in" Type="DateTime" Nullable="false" Precision="3" />
  174. <NavigationProperty Name="Company" Relationship="Self.FK_Trip_Company" FromRole="Trip" ToRole="Company" />
  175. <NavigationProperty Name="Pass_in_trip" Relationship="Self.FK_Pass_in_trip_Trip" FromRole="Trip" ToRole="Pass_in_trip" />
  176. </EntityType>
  177. <EntityType Name="Users">
  178. <Key>
  179. <PropertyRef Name="id" />
  180. </Key>
  181. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  182. <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  183. <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  184. </EntityType>
  185. <Association Name="FK_Trip_Company">
  186. <End Role="Company" Type="Self.Company" Multiplicity="1" />
  187. <End Role="Trip" Type="Self.Trip" Multiplicity="*" />
  188. <ReferentialConstraint>
  189. <Principal Role="Company">
  190. <PropertyRef Name="ID_comp" />
  191. </Principal>
  192. <Dependent Role="Trip">
  193. <PropertyRef Name="ID_comp" />
  194. </Dependent>
  195. </ReferentialConstraint>
  196. </Association>
  197. <Association Name="FK_Pass_in_trip_Passenger">
  198. <End Role="Passenger" Type="Self.Passenger" Multiplicity="1" />
  199. <End Role="Pass_in_trip" Type="Self.Pass_in_trip" Multiplicity="*" />
  200. <ReferentialConstraint>
  201. <Principal Role="Passenger">
  202. <PropertyRef Name="ID_psg" />
  203. </Principal>
  204. <Dependent Role="Pass_in_trip">
  205. <PropertyRef Name="ID_psg" />
  206. </Dependent>
  207. </ReferentialConstraint>
  208. </Association>
  209. <Association Name="FK_Pass_in_trip_Trip">
  210. <End Role="Trip" Type="Self.Trip" Multiplicity="1" />
  211. <End Role="Pass_in_trip" Type="Self.Pass_in_trip" Multiplicity="*" />
  212. <ReferentialConstraint>
  213. <Principal Role="Trip">
  214. <PropertyRef Name="trip_no" />
  215. </Principal>
  216. <Dependent Role="Pass_in_trip">
  217. <PropertyRef Name="trip_no" />
  218. </Dependent>
  219. </ReferentialConstraint>
  220. </Association>
  221. <EntityContainer Name="aeroEntities" annotation:LazyLoadingEnabled="true">
  222. <EntitySet Name="Company" EntityType="Self.Company" />
  223. <EntitySet Name="Pass_in_trip" EntityType="Self.Pass_in_trip" />
  224. <EntitySet Name="Passenger" EntityType="Self.Passenger" />
  225. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  226. <EntitySet Name="Trip" EntityType="Self.Trip" />
  227. <EntitySet Name="Users" EntityType="Self.Users" />
  228. <AssociationSet Name="FK_Trip_Company" Association="Self.FK_Trip_Company">
  229. <End Role="Company" EntitySet="Company" />
  230. <End Role="Trip" EntitySet="Trip" />
  231. </AssociationSet>
  232. <AssociationSet Name="FK_Pass_in_trip_Passenger" Association="Self.FK_Pass_in_trip_Passenger">
  233. <End Role="Passenger" EntitySet="Passenger" />
  234. <End Role="Pass_in_trip" EntitySet="Pass_in_trip" />
  235. </AssociationSet>
  236. <AssociationSet Name="FK_Pass_in_trip_Trip" Association="Self.FK_Pass_in_trip_Trip">
  237. <End Role="Trip" EntitySet="Trip" />
  238. <End Role="Pass_in_trip" EntitySet="Pass_in_trip" />
  239. </AssociationSet>
  240. </EntityContainer>
  241. </Schema>
  242. </edmx:ConceptualModels>
  243. <!-- C-S mapping content -->
  244. <edmx:Mappings>
  245. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  246. <EntityContainerMapping StorageEntityContainer="Хранилище aeroModelContainer" CdmEntityContainer="aeroEntities">
  247. <EntitySetMapping Name="Company">
  248. <EntityTypeMapping TypeName="aeroModel.Company">
  249. <MappingFragment StoreEntitySet="Company">
  250. <ScalarProperty Name="ID_comp" ColumnName="ID_comp" />
  251. <ScalarProperty Name="name" ColumnName="name" />
  252. </MappingFragment>
  253. </EntityTypeMapping>
  254. </EntitySetMapping>
  255. <EntitySetMapping Name="Pass_in_trip">
  256. <EntityTypeMapping TypeName="aeroModel.Pass_in_trip">
  257. <MappingFragment StoreEntitySet="Pass_in_trip">
  258. <ScalarProperty Name="trip_no" ColumnName="trip_no" />
  259. <ScalarProperty Name="date" ColumnName="date" />
  260. <ScalarProperty Name="ID_psg" ColumnName="ID_psg" />
  261. <ScalarProperty Name="place" ColumnName="place" />
  262. </MappingFragment>
  263. </EntityTypeMapping>
  264. </EntitySetMapping>
  265. <EntitySetMapping Name="Passenger">
  266. <EntityTypeMapping TypeName="aeroModel.Passenger">
  267. <MappingFragment StoreEntitySet="Passenger">
  268. <ScalarProperty Name="ID_psg" ColumnName="ID_psg" />
  269. <ScalarProperty Name="name" ColumnName="name" />
  270. </MappingFragment>
  271. </EntityTypeMapping>
  272. </EntitySetMapping>
  273. <EntitySetMapping Name="sysdiagrams">
  274. <EntityTypeMapping TypeName="aeroModel.sysdiagrams">
  275. <MappingFragment StoreEntitySet="sysdiagrams">
  276. <ScalarProperty Name="name" ColumnName="name" />
  277. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  278. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  279. <ScalarProperty Name="version" ColumnName="version" />
  280. <ScalarProperty Name="definition" ColumnName="definition" />
  281. </MappingFragment>
  282. </EntityTypeMapping>
  283. </EntitySetMapping>
  284. <EntitySetMapping Name="Trip">
  285. <EntityTypeMapping TypeName="aeroModel.Trip">
  286. <MappingFragment StoreEntitySet="Trip">
  287. <ScalarProperty Name="trip_no" ColumnName="trip_no" />
  288. <ScalarProperty Name="ID_comp" ColumnName="ID_comp" />
  289. <ScalarProperty Name="plane" ColumnName="plane" />
  290. <ScalarProperty Name="town_from" ColumnName="town_from" />
  291. <ScalarProperty Name="town_to" ColumnName="town_to" />
  292. <ScalarProperty Name="time_out" ColumnName="time_out" />
  293. <ScalarProperty Name="time_in" ColumnName="time_in" />
  294. </MappingFragment>
  295. </EntityTypeMapping>
  296. </EntitySetMapping>
  297. <EntitySetMapping Name="Users">
  298. <EntityTypeMapping TypeName="aeroModel.Users">
  299. <MappingFragment StoreEntitySet="Users">
  300. <ScalarProperty Name="id" ColumnName="id" />
  301. <ScalarProperty Name="Login" ColumnName="Login" />
  302. <ScalarProperty Name="Password" ColumnName="Password" />
  303. </MappingFragment>
  304. </EntityTypeMapping>
  305. </EntitySetMapping>
  306. </EntityContainerMapping>
  307. </Mapping>
  308. </edmx:Mappings>
  309. </edmx:Runtime>
  310. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  311. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  312. <Connection>
  313. <DesignerInfoPropertySet>
  314. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  315. </DesignerInfoPropertySet>
  316. </Connection>
  317. <Options>
  318. <DesignerInfoPropertySet>
  319. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  320. <DesignerProperty Name="EnablePluralization" Value="false" />
  321. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  322. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  323. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  324. </DesignerInfoPropertySet>
  325. </Options>
  326. <!-- Diagram content (shape and connector positions) -->
  327. <Diagrams></Diagrams>
  328. </Designer>
  329. </edmx:Edmx>