Model1.edmx 18 KB

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