Model_StankovitaDB.edmx 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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="Хранилище Stankovita_DBModel" 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="Admins">
  9. <Key>
  10. <PropertyRef Name="ID_admin" />
  11. </Key>
  12. <Property Name="ID_admin" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="login" Type="nvarchar" MaxLength="40" Nullable="false" />
  14. <Property Name="pass" Type="nvarchar" MaxLength="40" Nullable="false" />
  15. </EntityType>
  16. <EntityType Name="Customers">
  17. <Key>
  18. <PropertyRef Name="ID_customer" />
  19. </Key>
  20. <Property Name="ID_customer" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  21. <Property Name="nameOrganiz" Type="nvarchar" MaxLength="80" Nullable="false" />
  22. <Property Name="login" Type="nvarchar" MaxLength="40" Nullable="false" />
  23. <Property Name="pass" Type="varchar" MaxLength="40" Nullable="false" />
  24. <Property Name="email" Type="nvarchar" MaxLength="60" Nullable="false" />
  25. </EntityType>
  26. <EntityType Name="Logs">
  27. <Key>
  28. <PropertyRef Name="ID_log" />
  29. </Key>
  30. <Property Name="ID_log" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  31. <Property Name="loginUser" Type="nvarchar" MaxLength="40" Nullable="false" />
  32. <Property Name="timeLogin" Type="datetime" Nullable="false" />
  33. <Property Name="timeLogout" Type="datetime" Nullable="false" />
  34. <Property Name="timeWork" Type="nvarchar" MaxLength="20" Nullable="false" />
  35. </EntityType>
  36. <EntityType Name="Manufactures">
  37. <Key>
  38. <PropertyRef Name="ID_machine" />
  39. </Key>
  40. <Property Name="ID_machine" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  41. <Property Name="nameMachine" Type="nvarchar" MaxLength="80" Nullable="false" />
  42. <Property Name="photo" Type="nvarchar" MaxLength="1000" />
  43. <Property Name="dateProd" Type="date" Nullable="false" />
  44. <Property Name="cost" Type="money" Nullable="false" />
  45. <Property Name="discount" Type="int" />
  46. </EntityType>
  47. <EntityType Name="Orders">
  48. <Key>
  49. <PropertyRef Name="ID_order" />
  50. </Key>
  51. <Property Name="ID_order" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  52. <Property Name="ID_machine" Type="int" Nullable="false" />
  53. <Property Name="ID_customer" Type="int" Nullable="false" />
  54. <Property Name="dateOrder" Type="date" Nullable="false" />
  55. <Property Name="amount" Type="int" Nullable="false" />
  56. </EntityType>
  57. <Association Name="FK1_Orders">
  58. <End Role="Manufactures" Type="Self.Manufactures" Multiplicity="1" />
  59. <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
  60. <ReferentialConstraint>
  61. <Principal Role="Manufactures">
  62. <PropertyRef Name="ID_machine" />
  63. </Principal>
  64. <Dependent Role="Orders">
  65. <PropertyRef Name="ID_machine" />
  66. </Dependent>
  67. </ReferentialConstraint>
  68. </Association>
  69. <Association Name="FK2_Orders">
  70. <End Role="Customers" Type="Self.Customers" Multiplicity="1" />
  71. <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
  72. <ReferentialConstraint>
  73. <Principal Role="Customers">
  74. <PropertyRef Name="ID_customer" />
  75. </Principal>
  76. <Dependent Role="Orders">
  77. <PropertyRef Name="ID_customer" />
  78. </Dependent>
  79. </ReferentialConstraint>
  80. </Association>
  81. <EntityContainer Name="Хранилище Stankovita_DBModelContainer">
  82. <EntitySet Name="Admins" EntityType="Self.Admins" Schema="dbo" store:Type="Tables" />
  83. <EntitySet Name="Customers" EntityType="Self.Customers" Schema="dbo" store:Type="Tables" />
  84. <EntitySet Name="Logs" EntityType="Self.Logs" Schema="dbo" store:Type="Tables" />
  85. <EntitySet Name="Manufactures" EntityType="Self.Manufactures" Schema="dbo" store:Type="Tables" />
  86. <EntitySet Name="Orders" EntityType="Self.Orders" Schema="dbo" store:Type="Tables" />
  87. <AssociationSet Name="FK1_Orders" Association="Self.FK1_Orders">
  88. <End Role="Manufactures" EntitySet="Manufactures" />
  89. <End Role="Orders" EntitySet="Orders" />
  90. </AssociationSet>
  91. <AssociationSet Name="FK2_Orders" Association="Self.FK2_Orders">
  92. <End Role="Customers" EntitySet="Customers" />
  93. <End Role="Orders" EntitySet="Orders" />
  94. </AssociationSet>
  95. </EntityContainer>
  96. </Schema>
  97. </edmx:StorageModels>
  98. <!-- CSDL content -->
  99. <edmx:ConceptualModels>
  100. <Schema Namespace="Stankovita_DBModel" 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">
  101. <EntityType Name="Admins">
  102. <Key>
  103. <PropertyRef Name="ID_admin" />
  104. </Key>
  105. <Property Name="ID_admin" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  106. <Property Name="login" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  107. <Property Name="pass" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  108. </EntityType>
  109. <EntityType Name="Customers">
  110. <Key>
  111. <PropertyRef Name="ID_customer" />
  112. </Key>
  113. <Property Name="ID_customer" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  114. <Property Name="nameOrganiz" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  115. <Property Name="login" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  116. <Property Name="pass" Type="String" MaxLength="40" FixedLength="false" Unicode="false" Nullable="false" />
  117. <Property Name="email" Type="String" MaxLength="60" FixedLength="false" Unicode="true" Nullable="false" />
  118. <NavigationProperty Name="Orders" Relationship="Self.FK2_Orders" FromRole="Customers" ToRole="Orders" />
  119. </EntityType>
  120. <EntityType Name="Logs">
  121. <Key>
  122. <PropertyRef Name="ID_log" />
  123. </Key>
  124. <Property Name="ID_log" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  125. <Property Name="loginUser" Type="String" MaxLength="40" FixedLength="false" Unicode="true" Nullable="false" />
  126. <Property Name="timeLogin" Type="DateTime" Nullable="false" Precision="3" />
  127. <Property Name="timeLogout" Type="DateTime" Nullable="false" Precision="3" />
  128. <Property Name="timeWork" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  129. </EntityType>
  130. <EntityType Name="Manufactures">
  131. <Key>
  132. <PropertyRef Name="ID_machine" />
  133. </Key>
  134. <Property Name="ID_machine" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  135. <Property Name="nameMachine" Type="String" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false" />
  136. <Property Name="photo" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  137. <Property Name="dateProd" Type="DateTime" Nullable="false" Precision="0" />
  138. <Property Name="cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  139. <Property Name="discount" Type="Int32" />
  140. <NavigationProperty Name="Orders" Relationship="Self.FK1_Orders" FromRole="Manufactures" ToRole="Orders" />
  141. </EntityType>
  142. <EntityType Name="Orders">
  143. <Key>
  144. <PropertyRef Name="ID_order" />
  145. </Key>
  146. <Property Name="ID_order" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  147. <Property Name="ID_machine" Type="Int32" Nullable="false" />
  148. <Property Name="ID_customer" Type="Int32" Nullable="false" />
  149. <Property Name="dateOrder" Type="DateTime" Nullable="false" Precision="0" />
  150. <Property Name="amount" Type="Int32" Nullable="false" />
  151. <NavigationProperty Name="Customers" Relationship="Self.FK2_Orders" FromRole="Orders" ToRole="Customers" />
  152. <NavigationProperty Name="Manufactures" Relationship="Self.FK1_Orders" FromRole="Orders" ToRole="Manufactures" />
  153. </EntityType>
  154. <Association Name="FK2_Orders">
  155. <End Role="Customers" Type="Self.Customers" Multiplicity="1" />
  156. <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
  157. <ReferentialConstraint>
  158. <Principal Role="Customers">
  159. <PropertyRef Name="ID_customer" />
  160. </Principal>
  161. <Dependent Role="Orders">
  162. <PropertyRef Name="ID_customer" />
  163. </Dependent>
  164. </ReferentialConstraint>
  165. </Association>
  166. <Association Name="FK1_Orders">
  167. <End Role="Manufactures" Type="Self.Manufactures" Multiplicity="1" />
  168. <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
  169. <ReferentialConstraint>
  170. <Principal Role="Manufactures">
  171. <PropertyRef Name="ID_machine" />
  172. </Principal>
  173. <Dependent Role="Orders">
  174. <PropertyRef Name="ID_machine" />
  175. </Dependent>
  176. </ReferentialConstraint>
  177. </Association>
  178. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  179. <EntitySet Name="Admins" EntityType="Self.Admins" />
  180. <EntitySet Name="Customers" EntityType="Self.Customers" />
  181. <EntitySet Name="Logs" EntityType="Self.Logs" />
  182. <EntitySet Name="Manufactures" EntityType="Self.Manufactures" />
  183. <EntitySet Name="Orders" EntityType="Self.Orders" />
  184. <AssociationSet Name="FK2_Orders" Association="Self.FK2_Orders">
  185. <End Role="Customers" EntitySet="Customers" />
  186. <End Role="Orders" EntitySet="Orders" />
  187. </AssociationSet>
  188. <AssociationSet Name="FK1_Orders" Association="Self.FK1_Orders">
  189. <End Role="Manufactures" EntitySet="Manufactures" />
  190. <End Role="Orders" EntitySet="Orders" />
  191. </AssociationSet>
  192. </EntityContainer>
  193. </Schema>
  194. </edmx:ConceptualModels>
  195. <!-- C-S mapping content -->
  196. <edmx:Mappings>
  197. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  198. <EntityContainerMapping StorageEntityContainer="Хранилище Stankovita_DBModelContainer" CdmEntityContainer="Entities">
  199. <EntitySetMapping Name="Admins">
  200. <EntityTypeMapping TypeName="Stankovita_DBModel.Admins">
  201. <MappingFragment StoreEntitySet="Admins">
  202. <ScalarProperty Name="ID_admin" ColumnName="ID_admin" />
  203. <ScalarProperty Name="login" ColumnName="login" />
  204. <ScalarProperty Name="pass" ColumnName="pass" />
  205. </MappingFragment>
  206. </EntityTypeMapping>
  207. </EntitySetMapping>
  208. <EntitySetMapping Name="Customers">
  209. <EntityTypeMapping TypeName="Stankovita_DBModel.Customers">
  210. <MappingFragment StoreEntitySet="Customers">
  211. <ScalarProperty Name="ID_customer" ColumnName="ID_customer" />
  212. <ScalarProperty Name="nameOrganiz" ColumnName="nameOrganiz" />
  213. <ScalarProperty Name="login" ColumnName="login" />
  214. <ScalarProperty Name="pass" ColumnName="pass" />
  215. <ScalarProperty Name="email" ColumnName="email" />
  216. </MappingFragment>
  217. </EntityTypeMapping>
  218. </EntitySetMapping>
  219. <EntitySetMapping Name="Logs">
  220. <EntityTypeMapping TypeName="Stankovita_DBModel.Logs">
  221. <MappingFragment StoreEntitySet="Logs">
  222. <ScalarProperty Name="ID_log" ColumnName="ID_log" />
  223. <ScalarProperty Name="loginUser" ColumnName="loginUser" />
  224. <ScalarProperty Name="timeLogin" ColumnName="timeLogin" />
  225. <ScalarProperty Name="timeLogout" ColumnName="timeLogout" />
  226. <ScalarProperty Name="timeWork" ColumnName="timeWork" />
  227. </MappingFragment>
  228. </EntityTypeMapping>
  229. </EntitySetMapping>
  230. <EntitySetMapping Name="Manufactures">
  231. <EntityTypeMapping TypeName="Stankovita_DBModel.Manufactures">
  232. <MappingFragment StoreEntitySet="Manufactures">
  233. <ScalarProperty Name="ID_machine" ColumnName="ID_machine" />
  234. <ScalarProperty Name="nameMachine" ColumnName="nameMachine" />
  235. <ScalarProperty Name="photo" ColumnName="photo" />
  236. <ScalarProperty Name="dateProd" ColumnName="dateProd" />
  237. <ScalarProperty Name="cost" ColumnName="cost" />
  238. <ScalarProperty Name="discount" ColumnName="discount" />
  239. </MappingFragment>
  240. </EntityTypeMapping>
  241. </EntitySetMapping>
  242. <EntitySetMapping Name="Orders">
  243. <EntityTypeMapping TypeName="Stankovita_DBModel.Orders">
  244. <MappingFragment StoreEntitySet="Orders">
  245. <ScalarProperty Name="ID_order" ColumnName="ID_order" />
  246. <ScalarProperty Name="ID_machine" ColumnName="ID_machine" />
  247. <ScalarProperty Name="ID_customer" ColumnName="ID_customer" />
  248. <ScalarProperty Name="dateOrder" ColumnName="dateOrder" />
  249. <ScalarProperty Name="amount" ColumnName="amount" />
  250. </MappingFragment>
  251. </EntityTypeMapping>
  252. </EntitySetMapping>
  253. </EntityContainerMapping>
  254. </Mapping>
  255. </edmx:Mappings>
  256. </edmx:Runtime>
  257. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  258. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  259. <Connection>
  260. <DesignerInfoPropertySet>
  261. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  262. </DesignerInfoPropertySet>
  263. </Connection>
  264. <Options>
  265. <DesignerInfoPropertySet>
  266. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  267. <DesignerProperty Name="EnablePluralization" Value="false" />
  268. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  269. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  270. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  271. </DesignerInfoPropertySet>
  272. </Options>
  273. <!-- Diagram content (shape and connector positions) -->
  274. <Diagrams></Diagrams>
  275. </Designer>
  276. </edmx:Edmx>