123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <?xml version="1.0" encoding="utf-8"?>
- <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">
- <EntityType Name="Basket">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Price" Type="float" Nullable="false" />
- <Property Name="CountProduct" Type="int" Nullable="false" />
- <Property Name="IdPickPoint" Type="int" Nullable="false" />
- <Property Name="Date" Type="date" />
- </EntityType>
- <EntityType Name="PickPoint">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Kind" Type="nvarchar(max)" Nullable="false" />
- </EntityType>
- <EntityType Name="Product">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ProductName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="ProductDescription" Type="nvarchar(max)" />
- <Property Name="ProductPhoto" Type="nvarchar(max)" />
- <Property Name="ProductCost" Type="float" Nullable="false" />
- <Property Name="ProductDiscount" Type="int" />
- </EntityType>
- <EntityType Name="ProductBaskets">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="IdProduct" Type="int" Nullable="false" />
- <Property Name="IdBasket" Type="int" Nullable="false" />
- </EntityType>
- <Association Name="FK_Basket_PickPoint">
- <End Role="PickPoint" Type="Self.PickPoint" Multiplicity="1" />
- <End Role="Basket" Type="Self.Basket" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="PickPoint">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="Basket">
- <PropertyRef Name="IdPickPoint" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductBaskets_Basket">
- <End Role="Basket" Type="Self.Basket" Multiplicity="1" />
- <End Role="ProductBaskets" Type="Self.ProductBaskets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Basket">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="ProductBaskets">
- <PropertyRef Name="IdBasket" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductBaskets_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductBaskets" Type="Self.ProductBaskets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="ProductBaskets">
- <PropertyRef Name="IdProduct" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище TestProductModelContainer">
- <EntitySet Name="Basket" EntityType="Self.Basket" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="PickPoint" EntityType="Self.PickPoint" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ProductBaskets" EntityType="Self.ProductBaskets" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Basket_PickPoint" Association="Self.FK_Basket_PickPoint">
- <End Role="PickPoint" EntitySet="PickPoint" />
- <End Role="Basket" EntitySet="Basket" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductBaskets_Basket" Association="Self.FK_ProductBaskets_Basket">
- <End Role="Basket" EntitySet="Basket" />
- <End Role="ProductBaskets" EntitySet="ProductBaskets" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductBaskets_Product" Association="Self.FK_ProductBaskets_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductBaskets" EntitySet="ProductBaskets" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
|