|
@@ -0,0 +1,652 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
|
|
|
+ <!-- EF Runtime content -->
|
|
|
+ <edmx:Runtime>
|
|
|
+ <!-- SSDL content -->
|
|
|
+ <edmx:StorageModels>
|
|
|
+ <Schema Namespace="Хранилище PP_PISIModel" 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="Manufacturer">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ManufacturerID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ManufacturerID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Manufacturer" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Order">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="OrderStatus" Type="int" Nullable="false" />
|
|
|
+ <Property Name="OrderDate" Type="datetime" Nullable="false" />
|
|
|
+ <Property Name="OrderDeliveryDate" Type="datetime" Nullable="false" />
|
|
|
+ <Property Name="OrderPickUpPoint" Type="int" Nullable="false" />
|
|
|
+ <Property Name="UserID" Type="int" />
|
|
|
+ <Property Name="Code" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="OrderProduct">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderProductID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderProductID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="OrderID" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ProductArticleNumber" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="ProductCount" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="PickUpPoint">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="PointID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="PointID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="PointName" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Product">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ProductArticleNumber" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ProductArticleNumber" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="ProductName" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ <Property Name="ProductDescription" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ <Property Name="ProductCategory" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ProductPhoto" Type="nvarchar(max)" />
|
|
|
+ <Property Name="ProductManufacturer" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ProductProvider" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ProductCost" Type="decimal" Precision="19" Scale="4" Nullable="false" />
|
|
|
+ <Property Name="ProductDiscountAmount" Type="tinyint" />
|
|
|
+ <Property Name="ProductQuantityInStock" Type="int" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="ProductCategory">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="CategoryID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="CategoryID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="CategoryTitle" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Provider">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ProviderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ProviderID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Provider" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Role">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="RoleID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="RoleID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="RoleName" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="StatusOrder">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="StatusID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="StatusID" Type="int" Nullable="false" />
|
|
|
+ <Property Name="StatusTitle" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="User">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="UserID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="UserSurname" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="UserName" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="UserPatronymic" Type="nvarchar" MaxLength="100" />
|
|
|
+ <Property Name="UserLogin" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ <Property Name="UserPassword" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ <Property Name="UserRole" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK__Order__OrderPick__48CFD27E">
|
|
|
+ <End Role="PickUpPoint" Type="Self.PickUpPoint" Multiplicity="1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="PickUpPoint">
|
|
|
+ <PropertyRef Name="PointID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="OrderPickUpPoint" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Order__OrderStat__49C3F6B7">
|
|
|
+ <End Role="StatusOrder" Type="Self.StatusOrder" Multiplicity="1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="StatusOrder">
|
|
|
+ <PropertyRef Name="StatusID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="OrderStatus" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Order__UserID__4AB81AF0">
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="0..1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="User">
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__OrderProd__Order__4BAC3F29">
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="1" />
|
|
|
+ <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Order">
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="OrderProduct">
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__OrderProd__Produ__4CA06362">
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="1" />
|
|
|
+ <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Product">
|
|
|
+ <PropertyRef Name="ProductArticleNumber" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="OrderProduct">
|
|
|
+ <PropertyRef Name="ProductArticleNumber" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Product__Product__4D94879B">
|
|
|
+ <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Manufacturer">
|
|
|
+ <PropertyRef Name="ManufacturerID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="ProductManufacturer" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Product__Product__4E88ABD4">
|
|
|
+ <End Role="Provider" Type="Self.Provider" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Provider">
|
|
|
+ <PropertyRef Name="ProviderID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="ProductProvider" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Product__Product__4F7CD00D">
|
|
|
+ <End Role="ProductCategory" Type="Self.ProductCategory" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="ProductCategory">
|
|
|
+ <PropertyRef Name="CategoryID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="ProductCategory" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__User__UserRole__5070F446">
|
|
|
+ <End Role="Role" Type="Self.Role" Multiplicity="1" />
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Role">
|
|
|
+ <PropertyRef Name="RoleID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="User">
|
|
|
+ <PropertyRef Name="UserRole" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <EntityContainer Name="Хранилище PP_PISIModelContainer">
|
|
|
+ <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="OrderProduct" EntityType="Self.OrderProduct" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="PickUpPoint" EntityType="Self.PickUpPoint" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="ProductCategory" EntityType="Self.ProductCategory" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Provider" EntityType="Self.Provider" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="StatusOrder" EntityType="Self.StatusOrder" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
|
|
|
+ <AssociationSet Name="FK__Order__OrderPick__48CFD27E" Association="Self.FK__Order__OrderPick__48CFD27E">
|
|
|
+ <End Role="PickUpPoint" EntitySet="PickUpPoint" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Order__OrderStat__49C3F6B7" Association="Self.FK__Order__OrderStat__49C3F6B7">
|
|
|
+ <End Role="StatusOrder" EntitySet="StatusOrder" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Order__UserID__4AB81AF0" Association="Self.FK__Order__UserID__4AB81AF0">
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__OrderProd__Order__4BAC3F29" Association="Self.FK__OrderProd__Order__4BAC3F29">
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ <End Role="OrderProduct" EntitySet="OrderProduct" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__OrderProd__Produ__4CA06362" Association="Self.FK__OrderProd__Produ__4CA06362">
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ <End Role="OrderProduct" EntitySet="OrderProduct" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Product__4D94879B" Association="Self.FK__Product__Product__4D94879B">
|
|
|
+ <End Role="Manufacturer" EntitySet="Manufacturer" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Product__4E88ABD4" Association="Self.FK__Product__Product__4E88ABD4">
|
|
|
+ <End Role="Provider" EntitySet="Provider" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Product__4F7CD00D" Association="Self.FK__Product__Product__4F7CD00D">
|
|
|
+ <End Role="ProductCategory" EntitySet="ProductCategory" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__User__UserRole__5070F446" Association="Self.FK__User__UserRole__5070F446">
|
|
|
+ <End Role="Role" EntitySet="Role" />
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
+ </Schema>
|
|
|
+ </edmx:StorageModels>
|
|
|
+ <!-- CSDL content -->
|
|
|
+ <edmx:ConceptualModels>
|
|
|
+ <Schema Namespace="PP_PISIModel" 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">
|
|
|
+ <EntityType Name="Manufacturer">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ManufacturerID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ManufacturerID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Manufacturer1" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Self.FK__Product__Product__4D94879B" FromRole="Manufacturer" ToRole="Product" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Order">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="OrderStatus" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
+ <Property Name="OrderDeliveryDate" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
+ <Property Name="OrderPickUpPoint" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="UserID" Type="Int32" />
|
|
|
+ <Property Name="Code" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="PickUpPoint" Relationship="Self.FK__Order__OrderPick__48CFD27E" FromRole="Order" ToRole="PickUpPoint" />
|
|
|
+ <NavigationProperty Name="StatusOrder" Relationship="Self.FK__Order__OrderStat__49C3F6B7" FromRole="Order" ToRole="StatusOrder" />
|
|
|
+ <NavigationProperty Name="User" Relationship="Self.FK__Order__UserID__4AB81AF0" FromRole="Order" ToRole="User" />
|
|
|
+ <NavigationProperty Name="OrderProduct" Relationship="Self.FK__OrderProd__Order__4BAC3F29" FromRole="Order" ToRole="OrderProduct" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="OrderProduct">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderProductID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderProductID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="OrderID" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="ProductArticleNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="ProductCount" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK__OrderProd__Order__4BAC3F29" FromRole="OrderProduct" ToRole="Order" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Self.FK__OrderProd__Produ__4CA06362" FromRole="OrderProduct" ToRole="Product" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="PickUpPoint">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="PointID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="PointID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="PointName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK__Order__OrderPick__48CFD27E" FromRole="PickUpPoint" ToRole="Order" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Product">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ProductArticleNumber" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ProductArticleNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="ProductName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="ProductDescription" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="ProductCategory" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="ProductPhoto" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="ProductManufacturer" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="ProductProvider" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="ProductCost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
|
|
|
+ <Property Name="ProductDiscountAmount" Type="Byte" />
|
|
|
+ <Property Name="ProductQuantityInStock" Type="Int32" />
|
|
|
+ <NavigationProperty Name="Manufacturer" Relationship="Self.FK__Product__Product__4D94879B" FromRole="Product" ToRole="Manufacturer" />
|
|
|
+ <NavigationProperty Name="OrderProduct" Relationship="Self.FK__OrderProd__Produ__4CA06362" FromRole="Product" ToRole="OrderProduct" />
|
|
|
+ <NavigationProperty Name="Provider" Relationship="Self.FK__Product__Product__4E88ABD4" FromRole="Product" ToRole="Provider" />
|
|
|
+ <NavigationProperty Name="ProductCategory1" Relationship="Self.FK__Product__Product__4F7CD00D" FromRole="Product" ToRole="ProductCategory" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="ProductCategory">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="CategoryID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="CategoryID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="CategoryTitle" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Self.FK__Product__Product__4F7CD00D" FromRole="ProductCategory" ToRole="Product" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Provider">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ProviderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ProviderID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Provider1" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Self.FK__Product__Product__4E88ABD4" FromRole="Provider" ToRole="Product" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Role">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="RoleID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="RoleID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="RoleName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="User" Relationship="Self.FK__User__UserRole__5070F446" FromRole="Role" ToRole="User" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="StatusOrder">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="StatusID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="StatusID" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="StatusTitle" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK__Order__OrderStat__49C3F6B7" FromRole="StatusOrder" ToRole="Order" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="User">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="UserID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="UserSurname" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="UserName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="UserPatronymic" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="UserLogin" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="UserPassword" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="UserRole" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK__Order__UserID__4AB81AF0" FromRole="User" ToRole="Order" />
|
|
|
+ <NavigationProperty Name="Role" Relationship="Self.FK__User__UserRole__5070F446" FromRole="User" ToRole="Role" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK__Product__Product__4D94879B">
|
|
|
+ <End Role="Manufacturer" Type="Self.Manufacturer" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Manufacturer">
|
|
|
+ <PropertyRef Name="ManufacturerID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="ProductManufacturer" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Order__OrderPick__48CFD27E">
|
|
|
+ <End Role="PickUpPoint" Type="Self.PickUpPoint" Multiplicity="1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="PickUpPoint">
|
|
|
+ <PropertyRef Name="PointID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="OrderPickUpPoint" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Order__OrderStat__49C3F6B7">
|
|
|
+ <End Role="StatusOrder" Type="Self.StatusOrder" Multiplicity="1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="StatusOrder">
|
|
|
+ <PropertyRef Name="StatusID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="OrderStatus" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Order__UserID__4AB81AF0">
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="0..1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="User">
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__OrderProd__Order__4BAC3F29">
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="1" />
|
|
|
+ <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Order">
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="OrderProduct">
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__OrderProd__Produ__4CA06362">
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="1" />
|
|
|
+ <End Role="OrderProduct" Type="Self.OrderProduct" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Product">
|
|
|
+ <PropertyRef Name="ProductArticleNumber" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="OrderProduct">
|
|
|
+ <PropertyRef Name="ProductArticleNumber" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Product__Product__4E88ABD4">
|
|
|
+ <End Role="Provider" Type="Self.Provider" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Provider">
|
|
|
+ <PropertyRef Name="ProviderID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="ProductProvider" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Product__Product__4F7CD00D">
|
|
|
+ <End Role="ProductCategory" Type="Self.ProductCategory" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="ProductCategory">
|
|
|
+ <PropertyRef Name="CategoryID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="ProductCategory" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__User__UserRole__5070F446">
|
|
|
+ <End Role="Role" Type="Self.Role" Multiplicity="1" />
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Role">
|
|
|
+ <PropertyRef Name="RoleID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="User">
|
|
|
+ <PropertyRef Name="UserRole" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <EntityContainer Name="PP_PISIEntities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Manufacturer" EntityType="Self.Manufacturer" />
|
|
|
+ <EntitySet Name="Order" EntityType="Self.Order" />
|
|
|
+ <EntitySet Name="OrderProduct" EntityType="Self.OrderProduct" />
|
|
|
+ <EntitySet Name="PickUpPoint" EntityType="Self.PickUpPoint" />
|
|
|
+ <EntitySet Name="Product" EntityType="Self.Product" />
|
|
|
+ <EntitySet Name="ProductCategory" EntityType="Self.ProductCategory" />
|
|
|
+ <EntitySet Name="Provider" EntityType="Self.Provider" />
|
|
|
+ <EntitySet Name="Role" EntityType="Self.Role" />
|
|
|
+ <EntitySet Name="StatusOrder" EntityType="Self.StatusOrder" />
|
|
|
+ <EntitySet Name="User" EntityType="Self.User" />
|
|
|
+ <AssociationSet Name="FK__Product__Product__4D94879B" Association="Self.FK__Product__Product__4D94879B">
|
|
|
+ <End Role="Manufacturer" EntitySet="Manufacturer" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Order__OrderPick__48CFD27E" Association="Self.FK__Order__OrderPick__48CFD27E">
|
|
|
+ <End Role="PickUpPoint" EntitySet="PickUpPoint" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Order__OrderStat__49C3F6B7" Association="Self.FK__Order__OrderStat__49C3F6B7">
|
|
|
+ <End Role="StatusOrder" EntitySet="StatusOrder" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Order__UserID__4AB81AF0" Association="Self.FK__Order__UserID__4AB81AF0">
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__OrderProd__Order__4BAC3F29" Association="Self.FK__OrderProd__Order__4BAC3F29">
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ <End Role="OrderProduct" EntitySet="OrderProduct" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__OrderProd__Produ__4CA06362" Association="Self.FK__OrderProd__Produ__4CA06362">
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ <End Role="OrderProduct" EntitySet="OrderProduct" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Product__4E88ABD4" Association="Self.FK__Product__Product__4E88ABD4">
|
|
|
+ <End Role="Provider" EntitySet="Provider" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Product__4F7CD00D" Association="Self.FK__Product__Product__4F7CD00D">
|
|
|
+ <End Role="ProductCategory" EntitySet="ProductCategory" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__User__UserRole__5070F446" Association="Self.FK__User__UserRole__5070F446">
|
|
|
+ <End Role="Role" EntitySet="Role" />
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
+ </Schema>
|
|
|
+ </edmx:ConceptualModels>
|
|
|
+ <!-- C-S mapping content -->
|
|
|
+ <edmx:Mappings>
|
|
|
+ <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
|
|
+ <EntityContainerMapping StorageEntityContainer="Хранилище PP_PISIModelContainer" CdmEntityContainer="PP_PISIEntities">
|
|
|
+ <EntitySetMapping Name="Manufacturer">
|
|
|
+ <EntityTypeMapping TypeName="PP_PISIModel.Manufacturer">
|
|
|
+ <MappingFragment StoreEntitySet="Manufacturer">
|
|
|
+ <ScalarProperty Name="ManufacturerID" ColumnName="ManufacturerID" />
|
|
|
+ <ScalarProperty Name="Manufacturer1" ColumnName="Manufacturer" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Order">
|
|
|
+ <EntityTypeMapping TypeName="PP_PISIModel.Order">
|
|
|
+ <MappingFragment StoreEntitySet="Order">
|
|
|
+ <ScalarProperty Name="OrderID" ColumnName="OrderID" />
|
|
|
+ <ScalarProperty Name="OrderStatus" ColumnName="OrderStatus" />
|
|
|
+ <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
|
|
|
+ <ScalarProperty Name="OrderDeliveryDate" ColumnName="OrderDeliveryDate" />
|
|
|
+ <ScalarProperty Name="OrderPickUpPoint" ColumnName="OrderPickUpPoint" />
|
|
|
+ <ScalarProperty Name="UserID" ColumnName="UserID" />
|
|
|
+ <ScalarProperty Name="Code" ColumnName="Code" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="OrderProduct">
|
|
|
+ <EntityTypeMapping TypeName="PP_PISIModel.OrderProduct">
|
|
|
+ <MappingFragment StoreEntitySet="OrderProduct">
|
|
|
+ <ScalarProperty Name="OrderProductID" ColumnName="OrderProductID" />
|
|
|
+ <ScalarProperty Name="OrderID" ColumnName="OrderID" />
|
|
|
+ <ScalarProperty Name="ProductArticleNumber" ColumnName="ProductArticleNumber" />
|
|
|
+ <ScalarProperty Name="ProductCount" ColumnName="ProductCount" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="PickUpPoint">
|
|
|
+ <EntityTypeMapping TypeName="PP_PISIModel.PickUpPoint">
|
|
|
+ <MappingFragment StoreEntitySet="PickUpPoint">
|
|
|
+ <ScalarProperty Name="PointID" ColumnName="PointID" />
|
|
|
+ <ScalarProperty Name="PointName" ColumnName="PointName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Product">
|
|
|
+ <EntityTypeMapping TypeName="PP_PISIModel.Product">
|
|
|
+ <MappingFragment StoreEntitySet="Product">
|
|
|
+ <ScalarProperty Name="ProductArticleNumber" ColumnName="ProductArticleNumber" />
|
|
|
+ <ScalarProperty Name="ProductName" ColumnName="ProductName" />
|
|
|
+ <ScalarProperty Name="ProductDescription" ColumnName="ProductDescription" />
|
|
|
+ <ScalarProperty Name="ProductCategory" ColumnName="ProductCategory" />
|
|
|
+ <ScalarProperty Name="ProductPhoto" ColumnName="ProductPhoto" />
|
|
|
+ <ScalarProperty Name="ProductManufacturer" ColumnName="ProductManufacturer" />
|
|
|
+ <ScalarProperty Name="ProductProvider" ColumnName="ProductProvider" />
|
|
|
+ <ScalarProperty Name="ProductCost" ColumnName="ProductCost" />
|
|
|
+ <ScalarProperty Name="ProductDiscountAmount" ColumnName="ProductDiscountAmount" />
|
|
|
+ <ScalarProperty Name="ProductQuantityInStock" ColumnName="ProductQuantityInStock" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="ProductCategory">
|
|
|
+ <EntityTypeMapping TypeName="PP_PISIModel.ProductCategory">
|
|
|
+ <MappingFragment StoreEntitySet="ProductCategory">
|
|
|
+ <ScalarProperty Name="CategoryID" ColumnName="CategoryID" />
|
|
|
+ <ScalarProperty Name="CategoryTitle" ColumnName="CategoryTitle" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Provider">
|
|
|
+ <EntityTypeMapping TypeName="PP_PISIModel.Provider">
|
|
|
+ <MappingFragment StoreEntitySet="Provider">
|
|
|
+ <ScalarProperty Name="ProviderID" ColumnName="ProviderID" />
|
|
|
+ <ScalarProperty Name="Provider1" ColumnName="Provider" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Role">
|
|
|
+ <EntityTypeMapping TypeName="PP_PISIModel.Role">
|
|
|
+ <MappingFragment StoreEntitySet="Role">
|
|
|
+ <ScalarProperty Name="RoleID" ColumnName="RoleID" />
|
|
|
+ <ScalarProperty Name="RoleName" ColumnName="RoleName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="StatusOrder">
|
|
|
+ <EntityTypeMapping TypeName="PP_PISIModel.StatusOrder">
|
|
|
+ <MappingFragment StoreEntitySet="StatusOrder">
|
|
|
+ <ScalarProperty Name="StatusID" ColumnName="StatusID" />
|
|
|
+ <ScalarProperty Name="StatusTitle" ColumnName="StatusTitle" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="User">
|
|
|
+ <EntityTypeMapping TypeName="PP_PISIModel.User">
|
|
|
+ <MappingFragment StoreEntitySet="User">
|
|
|
+ <ScalarProperty Name="UserID" ColumnName="UserID" />
|
|
|
+ <ScalarProperty Name="UserSurname" ColumnName="UserSurname" />
|
|
|
+ <ScalarProperty Name="UserName" ColumnName="UserName" />
|
|
|
+ <ScalarProperty Name="UserPatronymic" ColumnName="UserPatronymic" />
|
|
|
+ <ScalarProperty Name="UserLogin" ColumnName="UserLogin" />
|
|
|
+ <ScalarProperty Name="UserPassword" ColumnName="UserPassword" />
|
|
|
+ <ScalarProperty Name="UserRole" ColumnName="UserRole" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ </EntityContainerMapping>
|
|
|
+ </Mapping>
|
|
|
+ </edmx:Mappings>
|
|
|
+ </edmx:Runtime>
|
|
|
+ <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|
|
|
+ <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
|
|
+ <Connection>
|
|
|
+ <DesignerInfoPropertySet>
|
|
|
+ <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
|
|
|
+ </DesignerInfoPropertySet>
|
|
|
+ </Connection>
|
|
|
+ <Options>
|
|
|
+ <DesignerInfoPropertySet>
|
|
|
+ <DesignerProperty Name="ValidateOnBuild" Value="true" />
|
|
|
+ <DesignerProperty Name="EnablePluralization" Value="false" />
|
|
|
+ <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
|
|
+ <DesignerProperty Name="UseLegacyProvider" Value="false" />
|
|
|
+ <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
|
|
|
+ </DesignerInfoPropertySet>
|
|
|
+ </Options>
|
|
|
+ <!-- Diagram content (shape and connector positions) -->
|
|
|
+ <Diagrams></Diagrams>
|
|
|
+ </Designer>
|
|
|
+</edmx:Edmx>
|