Model1.ssdl 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="Хранилище TestProductModel" 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">
  3. <EntityType Name="Basket">
  4. <Key>
  5. <PropertyRef Name="Id" />
  6. </Key>
  7. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  8. <Property Name="Price" Type="float" Nullable="false" />
  9. <Property Name="CountProduct" Type="int" Nullable="false" />
  10. <Property Name="IdPickPoint" Type="int" Nullable="false" />
  11. <Property Name="Date" Type="date" />
  12. </EntityType>
  13. <EntityType Name="PickPoint">
  14. <Key>
  15. <PropertyRef Name="Id" />
  16. </Key>
  17. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  18. <Property Name="Kind" Type="nvarchar(max)" Nullable="false" />
  19. </EntityType>
  20. <EntityType Name="Product">
  21. <Key>
  22. <PropertyRef Name="Id" />
  23. </Key>
  24. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  25. <Property Name="ProductName" Type="nvarchar" MaxLength="50" Nullable="false" />
  26. <Property Name="ProductDescription" Type="nvarchar(max)" />
  27. <Property Name="ProductPhoto" Type="nvarchar(max)" />
  28. <Property Name="ProductCost" Type="float" Nullable="false" />
  29. <Property Name="ProductDiscount" Type="int" />
  30. </EntityType>
  31. <EntityType Name="ProductBaskets">
  32. <Key>
  33. <PropertyRef Name="Id" />
  34. </Key>
  35. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  36. <Property Name="IdProduct" Type="int" Nullable="false" />
  37. <Property Name="IdBasket" Type="int" Nullable="false" />
  38. </EntityType>
  39. <Association Name="FK_Basket_PickPoint">
  40. <End Role="PickPoint" Type="Self.PickPoint" Multiplicity="1" />
  41. <End Role="Basket" Type="Self.Basket" Multiplicity="*" />
  42. <ReferentialConstraint>
  43. <Principal Role="PickPoint">
  44. <PropertyRef Name="Id" />
  45. </Principal>
  46. <Dependent Role="Basket">
  47. <PropertyRef Name="IdPickPoint" />
  48. </Dependent>
  49. </ReferentialConstraint>
  50. </Association>
  51. <Association Name="FK_ProductBaskets_Basket">
  52. <End Role="Basket" Type="Self.Basket" Multiplicity="1" />
  53. <End Role="ProductBaskets" Type="Self.ProductBaskets" Multiplicity="*" />
  54. <ReferentialConstraint>
  55. <Principal Role="Basket">
  56. <PropertyRef Name="Id" />
  57. </Principal>
  58. <Dependent Role="ProductBaskets">
  59. <PropertyRef Name="IdBasket" />
  60. </Dependent>
  61. </ReferentialConstraint>
  62. </Association>
  63. <Association Name="FK_ProductBaskets_Product">
  64. <End Role="Product" Type="Self.Product" Multiplicity="1" />
  65. <End Role="ProductBaskets" Type="Self.ProductBaskets" Multiplicity="*" />
  66. <ReferentialConstraint>
  67. <Principal Role="Product">
  68. <PropertyRef Name="Id" />
  69. </Principal>
  70. <Dependent Role="ProductBaskets">
  71. <PropertyRef Name="IdProduct" />
  72. </Dependent>
  73. </ReferentialConstraint>
  74. </Association>
  75. <EntityContainer Name="Хранилище TestProductModelContainer">
  76. <EntitySet Name="Basket" EntityType="Self.Basket" Schema="dbo" store:Type="Tables" />
  77. <EntitySet Name="PickPoint" EntityType="Self.PickPoint" Schema="dbo" store:Type="Tables" />
  78. <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
  79. <EntitySet Name="ProductBaskets" EntityType="Self.ProductBaskets" Schema="dbo" store:Type="Tables" />
  80. <AssociationSet Name="FK_Basket_PickPoint" Association="Self.FK_Basket_PickPoint">
  81. <End Role="PickPoint" EntitySet="PickPoint" />
  82. <End Role="Basket" EntitySet="Basket" />
  83. </AssociationSet>
  84. <AssociationSet Name="FK_ProductBaskets_Basket" Association="Self.FK_ProductBaskets_Basket">
  85. <End Role="Basket" EntitySet="Basket" />
  86. <End Role="ProductBaskets" EntitySet="ProductBaskets" />
  87. </AssociationSet>
  88. <AssociationSet Name="FK_ProductBaskets_Product" Association="Self.FK_ProductBaskets_Product">
  89. <End Role="Product" EntitySet="Product" />
  90. <End Role="ProductBaskets" EntitySet="ProductBaskets" />
  91. </AssociationSet>
  92. </EntityContainer>
  93. </Schema>