123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671 |
- <?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="Хранилище KotkovaModel" 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="Order">
- <Key>
- <PropertyRef Name="OrderID" />
- </Key>
- <Property Name="OrderID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="OrderStatus" Type="nvarchar(max)" Nullable="false" />
- <Property Name="OrderDeliveryDate" Type="datetime" />
- <Property Name="OrderPickupPoint" Type="int" Nullable="false" />
- <Property Name="OrderDate" Type="datetime" Nullable="false" />
- <Property Name="OrderCode" Type="int" Nullable="false" />
- <Property Name="OrderClienr" Type="varchar" MaxLength="100" />
- </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="PickupPointId" />
- </Key>
- <Property Name="PickupPointId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="PickupPointAdress" Type="varchar(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="CategoryId" Type="int" Nullable="false" />
- <Property Name="ProductPhoto" Type="image" />
- <Property Name="ManufacturerId" Type="int" Nullable="false" />
- <Property Name="ProductCost" Type="decimal" Precision="19" Scale="4" Nullable="false" />
- <Property Name="ProductDiscountAmount" Type="float" />
- <Property Name="ProductQuantityInStock" Type="int" Nullable="false" />
- <Property Name="ProductStatus" Type="nvarchar(max)" Nullable="false" />
- <Property Name="ProductDiscountMax" Type="float" Nullable="false" />
- <Property Name="SuplierId" Type="int" Nullable="false" />
- <Property Name="UnitId" Type="int" />
- </EntityType>
- <EntityType Name="ProductCategory">
- <Key>
- <PropertyRef Name="CategoryId" />
- </Key>
- <Property Name="CategoryId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="CategoryName" Type="varchar" MaxLength="100" Nullable="false" />
- </EntityType>
- <EntityType Name="ProductManufacturer">
- <Key>
- <PropertyRef Name="ManufacturerID" />
- </Key>
- <Property Name="ManufacturerID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ManufacturerName" Type="varchar" MaxLength="100" Nullable="false" />
- </EntityType>
- <EntityType Name="ProductSuplier">
- <Key>
- <PropertyRef Name="SuplierId" />
- </Key>
- <Property Name="SuplierId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="SuplierName" Type="varchar" MaxLength="100" Nullable="false" />
- </EntityType>
- <EntityType Name="ProductUnit">
- <Key>
- <PropertyRef Name="UnitID" />
- </Key>
- <Property Name="UnitID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="UnitName" Type="varchar" MaxLength="50" 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="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="principal_id" Type="int" Nullable="false" />
- <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="version" Type="int" />
- <Property Name="definition" Type="varbinary(max)" />
- </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__OrderProd__Order__403A8C7D">
- <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__412EB0B6">
- <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__User__UserRole__398D8EEE">
- <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>
- <Association Name="FK_Order_PickupPoint">
- <End Role="PickupPoint" Type="Self.PickupPoint" Multiplicity="1" />
- <End Role="Order" Type="Self.Order" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="PickupPoint">
- <PropertyRef Name="PickupPointId" />
- </Principal>
- <Dependent Role="Order">
- <PropertyRef Name="OrderPickupPoint" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Product_ProductCategory">
- <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="CategoryId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Product_ProductManufacturer">
- <End Role="ProductManufacturer" Type="Self.ProductManufacturer" Multiplicity="1" />
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ProductManufacturer">
- <PropertyRef Name="ManufacturerID" />
- </Principal>
- <Dependent Role="Product">
- <PropertyRef Name="CategoryId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Product_ProductSuplier">
- <End Role="ProductSuplier" Type="Self.ProductSuplier" Multiplicity="1" />
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ProductSuplier">
- <PropertyRef Name="SuplierId" />
- </Principal>
- <Dependent Role="Product">
- <PropertyRef Name="SuplierId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Product_ProductUnit">
- <End Role="ProductUnit" Type="Self.ProductUnit" Multiplicity="0..1" />
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ProductUnit">
- <PropertyRef Name="UnitID" />
- </Principal>
- <Dependent Role="Product">
- <PropertyRef Name="UnitId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище KotkovaModelContainer">
- <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="ProductManufacturer" EntityType="Self.ProductManufacturer" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ProductSuplier" EntityType="Self.ProductSuplier" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ProductUnit" EntityType="Self.ProductUnit" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK__OrderProd__Order__403A8C7D" Association="Self.FK__OrderProd__Order__403A8C7D">
- <End Role="Order" EntitySet="Order" />
- <End Role="OrderProduct" EntitySet="OrderProduct" />
- </AssociationSet>
- <AssociationSet Name="FK__OrderProd__Produ__412EB0B6" Association="Self.FK__OrderProd__Produ__412EB0B6">
- <End Role="Product" EntitySet="Product" />
- <End Role="OrderProduct" EntitySet="OrderProduct" />
- </AssociationSet>
- <AssociationSet Name="FK__User__UserRole__398D8EEE" Association="Self.FK__User__UserRole__398D8EEE">
- <End Role="Role" EntitySet="Role" />
- <End Role="User" EntitySet="User" />
- </AssociationSet>
- <AssociationSet Name="FK_Order_PickupPoint" Association="Self.FK_Order_PickupPoint">
- <End Role="PickupPoint" EntitySet="PickupPoint" />
- <End Role="Order" EntitySet="Order" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_ProductCategory" Association="Self.FK_Product_ProductCategory">
- <End Role="ProductCategory" EntitySet="ProductCategory" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_ProductManufacturer" Association="Self.FK_Product_ProductManufacturer">
- <End Role="ProductManufacturer" EntitySet="ProductManufacturer" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_ProductSuplier" Association="Self.FK_Product_ProductSuplier">
- <End Role="ProductSuplier" EntitySet="ProductSuplier" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_ProductUnit" Association="Self.FK_Product_ProductUnit">
- <End Role="ProductUnit" EntitySet="ProductUnit" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- </EntityContainer>
- </Schema></edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="KotkovaModel" 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="Order">
- <Key>
- <PropertyRef Name="OrderID" />
- </Key>
- <Property Name="OrderID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="OrderStatus" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="OrderDeliveryDate" Type="DateTime" Precision="3" />
- <Property Name="OrderPickupPoint" Type="Int32" Nullable="false" />
- <Property Name="OrderDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="OrderCode" Type="Int32" Nullable="false" />
- <Property Name="OrderClienr" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="OrderProduct" Relationship="Self.FK__OrderProd__Order__403A8C7D" FromRole="Order" ToRole="OrderProduct" />
- <NavigationProperty Name="PickupPoint" Relationship="Self.FK_Order_PickupPoint" FromRole="Order" ToRole="PickupPoint" />
- </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__403A8C7D" FromRole="OrderProduct" ToRole="Order" />
- <NavigationProperty Name="Product" Relationship="Self.FK__OrderProd__Produ__412EB0B6" FromRole="OrderProduct" ToRole="Product" />
- </EntityType>
- <EntityType Name="PickupPoint">
- <Key>
- <PropertyRef Name="PickupPointId" />
- </Key>
- <Property Name="PickupPointId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="PickupPointAdress" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Order" Relationship="Self.FK_Order_PickupPoint" 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="CategoryId" Type="Int32" Nullable="false" />
- <Property Name="ProductPhoto" Type="Binary" MaxLength="Max" FixedLength="false" />
- <Property Name="ManufacturerId" Type="Int32" Nullable="false" />
- <Property Name="ProductCost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
- <Property Name="ProductDiscountAmount" Type="Double" />
- <Property Name="ProductQuantityInStock" Type="Int32" Nullable="false" />
- <Property Name="ProductStatus" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ProductDiscountMax" Type="Double" Nullable="false" />
- <Property Name="SuplierId" Type="Int32" Nullable="false" />
- <Property Name="UnitId" Type="Int32" />
- <NavigationProperty Name="OrderProduct" Relationship="Self.FK__OrderProd__Produ__412EB0B6" FromRole="Product" ToRole="OrderProduct" />
- <NavigationProperty Name="ProductCategory" Relationship="Self.FK_Product_ProductCategory" FromRole="Product" ToRole="ProductCategory" />
- <NavigationProperty Name="ProductManufacturer" Relationship="Self.FK_Product_ProductManufacturer" FromRole="Product" ToRole="ProductManufacturer" />
- <NavigationProperty Name="ProductSuplier" Relationship="Self.FK_Product_ProductSuplier" FromRole="Product" ToRole="ProductSuplier" />
- <NavigationProperty Name="ProductUnit" Relationship="Self.FK_Product_ProductUnit" FromRole="Product" ToRole="ProductUnit" />
- </EntityType>
- <EntityType Name="ProductCategory">
- <Key>
- <PropertyRef Name="CategoryId" />
- </Key>
- <Property Name="CategoryId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="CategoryName" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Product" Relationship="Self.FK_Product_ProductCategory" FromRole="ProductCategory" ToRole="Product" />
- </EntityType>
- <EntityType Name="ProductManufacturer">
- <Key>
- <PropertyRef Name="ManufacturerID" />
- </Key>
- <Property Name="ManufacturerID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ManufacturerName" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Product" Relationship="Self.FK_Product_ProductManufacturer" FromRole="ProductManufacturer" ToRole="Product" />
- </EntityType>
- <EntityType Name="ProductSuplier">
- <Key>
- <PropertyRef Name="SuplierId" />
- </Key>
- <Property Name="SuplierId" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="SuplierName" Type="String" MaxLength="100" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Product" Relationship="Self.FK_Product_ProductSuplier" FromRole="ProductSuplier" ToRole="Product" />
- </EntityType>
- <EntityType Name="ProductUnit">
- <Key>
- <PropertyRef Name="UnitID" />
- </Key>
- <Property Name="UnitID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="UnitName" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
- <NavigationProperty Name="Product" Relationship="Self.FK_Product_ProductUnit" FromRole="ProductUnit" 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__398D8EEE" FromRole="Role" ToRole="User" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="principal_id" Type="Int32" Nullable="false" />
- <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="version" Type="Int32" />
- <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
- </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="Role" Relationship="Self.FK__User__UserRole__398D8EEE" FromRole="User" ToRole="Role" />
- </EntityType>
- <Association Name="FK__OrderProd__Order__403A8C7D">
- <End Role="Order" Type="Self.Order" Multiplicity="1" >
- <OnDelete Action="Cascade" />
- </End>
- <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_Order_PickupPoint">
- <End Role="PickupPoint" Type="Self.PickupPoint" Multiplicity="1" />
- <End Role="Order" Type="Self.Order" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="PickupPoint">
- <PropertyRef Name="PickupPointId" />
- </Principal>
- <Dependent Role="Order">
- <PropertyRef Name="OrderPickupPoint" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__OrderProd__Produ__412EB0B6">
- <End Role="Product" Type="Self.Product" Multiplicity="1" >
- <OnDelete Action="Cascade" />
- </End>
- <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_ProductCategory">
- <End Role="ProductCategory" Type="Self.ProductCategory" Multiplicity="1" >
- <OnDelete Action="Cascade" />
- </End>
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ProductCategory">
- <PropertyRef Name="CategoryId" />
- </Principal>
- <Dependent Role="Product">
- <PropertyRef Name="CategoryId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Product_ProductManufacturer">
- <End Role="ProductManufacturer" Type="Self.ProductManufacturer" Multiplicity="1" >
- <OnDelete Action="Cascade" />
- </End>
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ProductManufacturer">
- <PropertyRef Name="ManufacturerID" />
- </Principal>
- <Dependent Role="Product">
- <PropertyRef Name="CategoryId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Product_ProductSuplier">
- <End Role="ProductSuplier" Type="Self.ProductSuplier" Multiplicity="1" >
- <OnDelete Action="Cascade" />
- </End>
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ProductSuplier">
- <PropertyRef Name="SuplierId" />
- </Principal>
- <Dependent Role="Product">
- <PropertyRef Name="SuplierId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Product_ProductUnit">
- <End Role="ProductUnit" Type="Self.ProductUnit" Multiplicity="0..1" >
- <OnDelete Action="Cascade" />
- </End>
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ProductUnit">
- <PropertyRef Name="UnitID" />
- </Principal>
- <Dependent Role="Product">
- <PropertyRef Name="UnitId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK__User__UserRole__398D8EEE">
- <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="KotBase" annotation:LazyLoadingEnabled="true">
- <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="ProductManufacturer" EntityType="Self.ProductManufacturer" />
- <EntitySet Name="ProductSuplier" EntityType="Self.ProductSuplier" />
- <EntitySet Name="ProductUnit" EntityType="Self.ProductUnit" />
- <EntitySet Name="Role" EntityType="Self.Role" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
- <EntitySet Name="User" EntityType="Self.User" />
- <AssociationSet Name="FK__OrderProd__Order__403A8C7D" Association="Self.FK__OrderProd__Order__403A8C7D">
- <End Role="Order" EntitySet="Order" />
- <End Role="OrderProduct" EntitySet="OrderProduct" />
- </AssociationSet>
- <AssociationSet Name="FK_Order_PickupPoint" Association="Self.FK_Order_PickupPoint">
- <End Role="PickupPoint" EntitySet="PickupPoint" />
- <End Role="Order" EntitySet="Order" />
- </AssociationSet>
- <AssociationSet Name="FK__OrderProd__Produ__412EB0B6" Association="Self.FK__OrderProd__Produ__412EB0B6">
- <End Role="Product" EntitySet="Product" />
- <End Role="OrderProduct" EntitySet="OrderProduct" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_ProductCategory" Association="Self.FK_Product_ProductCategory">
- <End Role="ProductCategory" EntitySet="ProductCategory" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_ProductManufacturer" Association="Self.FK_Product_ProductManufacturer">
- <End Role="ProductManufacturer" EntitySet="ProductManufacturer" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_ProductSuplier" Association="Self.FK_Product_ProductSuplier">
- <End Role="ProductSuplier" EntitySet="ProductSuplier" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_ProductUnit" Association="Self.FK_Product_ProductUnit">
- <End Role="ProductUnit" EntitySet="ProductUnit" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK__User__UserRole__398D8EEE" Association="Self.FK__User__UserRole__398D8EEE">
- <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="Хранилище KotkovaModelContainer" CdmEntityContainer="KotBase">
- <EntitySetMapping Name="Order">
- <EntityTypeMapping TypeName="KotkovaModel.Order">
- <MappingFragment StoreEntitySet="Order">
- <ScalarProperty Name="OrderID" ColumnName="OrderID" />
- <ScalarProperty Name="OrderStatus" ColumnName="OrderStatus" />
- <ScalarProperty Name="OrderDeliveryDate" ColumnName="OrderDeliveryDate" />
- <ScalarProperty Name="OrderPickupPoint" ColumnName="OrderPickupPoint" />
- <ScalarProperty Name="OrderDate" ColumnName="OrderDate" />
- <ScalarProperty Name="OrderCode" ColumnName="OrderCode" />
- <ScalarProperty Name="OrderClienr" ColumnName="OrderClienr" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="OrderProduct">
- <EntityTypeMapping TypeName="KotkovaModel.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="KotkovaModel.PickupPoint">
- <MappingFragment StoreEntitySet="PickupPoint">
- <ScalarProperty Name="PickupPointId" ColumnName="PickupPointId" />
- <ScalarProperty Name="PickupPointAdress" ColumnName="PickupPointAdress" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Product">
- <EntityTypeMapping TypeName="KotkovaModel.Product">
- <MappingFragment StoreEntitySet="Product">
- <ScalarProperty Name="ProductArticleNumber" ColumnName="ProductArticleNumber" />
- <ScalarProperty Name="ProductName" ColumnName="ProductName" />
- <ScalarProperty Name="ProductDescription" ColumnName="ProductDescription" />
- <ScalarProperty Name="CategoryId" ColumnName="CategoryId" />
- <ScalarProperty Name="ProductPhoto" ColumnName="ProductPhoto" />
- <ScalarProperty Name="ManufacturerId" ColumnName="ManufacturerId" />
- <ScalarProperty Name="ProductCost" ColumnName="ProductCost" />
- <ScalarProperty Name="ProductDiscountAmount" ColumnName="ProductDiscountAmount" />
- <ScalarProperty Name="ProductQuantityInStock" ColumnName="ProductQuantityInStock" />
- <ScalarProperty Name="ProductStatus" ColumnName="ProductStatus" />
- <ScalarProperty Name="ProductDiscountMax" ColumnName="ProductDiscountMax" />
- <ScalarProperty Name="SuplierId" ColumnName="SuplierId" />
- <ScalarProperty Name="UnitId" ColumnName="UnitId" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductCategory">
- <EntityTypeMapping TypeName="KotkovaModel.ProductCategory">
- <MappingFragment StoreEntitySet="ProductCategory">
- <ScalarProperty Name="CategoryId" ColumnName="CategoryId" />
- <ScalarProperty Name="CategoryName" ColumnName="CategoryName" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductManufacturer">
- <EntityTypeMapping TypeName="KotkovaModel.ProductManufacturer">
- <MappingFragment StoreEntitySet="ProductManufacturer">
- <ScalarProperty Name="ManufacturerID" ColumnName="ManufacturerID" />
- <ScalarProperty Name="ManufacturerName" ColumnName="ManufacturerName" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductSuplier">
- <EntityTypeMapping TypeName="KotkovaModel.ProductSuplier">
- <MappingFragment StoreEntitySet="ProductSuplier">
- <ScalarProperty Name="SuplierId" ColumnName="SuplierId" />
- <ScalarProperty Name="SuplierName" ColumnName="SuplierName" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductUnit">
- <EntityTypeMapping TypeName="KotkovaModel.ProductUnit">
- <MappingFragment StoreEntitySet="ProductUnit">
- <ScalarProperty Name="UnitID" ColumnName="UnitID" />
- <ScalarProperty Name="UnitName" ColumnName="UnitName" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Role">
- <EntityTypeMapping TypeName="KotkovaModel.Role">
- <MappingFragment StoreEntitySet="Role">
- <ScalarProperty Name="RoleID" ColumnName="RoleID" />
- <ScalarProperty Name="RoleName" ColumnName="RoleName" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="sysdiagrams">
- <EntityTypeMapping TypeName="KotkovaModel.sysdiagrams">
- <MappingFragment StoreEntitySet="sysdiagrams">
- <ScalarProperty Name="name" ColumnName="name" />
- <ScalarProperty Name="principal_id" ColumnName="principal_id" />
- <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="definition" ColumnName="definition" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="User">
- <EntityTypeMapping TypeName="KotkovaModel.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>
|