|
@@ -0,0 +1,714 @@
|
|
|
+<?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="Хранилище TradeErmolinModel" 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="Categories">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="CategoryID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="CategoryID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="CategoryName" Type="nvarchar(max)" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Manufacturers">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ManufacturerID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ManufacturerID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="ManufacturerName" Type="nvarchar(max)" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Order">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="OrderCreateDate" Type="datetime" Nullable="false" />
|
|
|
+ <Property Name="OrderDeliveryDate" Type="datetime" Nullable="false" />
|
|
|
+ <Property Name="OrderPickupPoint" Type="int" Nullable="false" />
|
|
|
+ <Property Name="OrderCustomer" Type="nvarchar(max)" />
|
|
|
+ <Property Name="OrderReceivingCode" Type="int" Nullable="false" />
|
|
|
+ <Property Name="OrderStatus" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="OrderProduct">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ <PropertyRef Name="ProductArticleNumber" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderID" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ProductArticleNumber" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="ProductAmount" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="OrderStatus">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="StatusID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="StatusID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="StatusName" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="PickupPoints">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="PickupID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="PickupID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="PuckupAddress" 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="ProductUnitMeasurement" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ProductCost" Type="decimal" Precision="19" Scale="4" Nullable="false" />
|
|
|
+ <Property Name="ProductMaxDiscountAmount" Type="int" />
|
|
|
+ <Property Name="Manufacturer" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Supplier" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ProductCategory" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ProductQuantityInStock" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ProductDescription" Type="nvarchar(max)" />
|
|
|
+ <Property Name="ProductPhoto" Type="nvarchar(max)" />
|
|
|
+ <Property Name="ProductActualDiscount" Type="decimal" Precision="10" Scale="2" />
|
|
|
+ </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="Suppliers">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="SupplierID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="SupplierID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="SupllierName" Type="nvarchar(max)" />
|
|
|
+ </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="UnitsOfMeasurement">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="UnitID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="UnitID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="UnitName" Type="nvarchar(max)" 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" Nullable="false" />
|
|
|
+ <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__403A8C7D">
|
|
|
+ <End Role="PickupPoints" Type="Self.PickupPoints" Multiplicity="1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="PickupPoints">
|
|
|
+ <PropertyRef Name="PickupID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="OrderPickupPoint" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Order__OrderStat__412EB0B6">
|
|
|
+ <End Role="OrderStatus" Type="Self.OrderStatus" Multiplicity="1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="OrderStatus">
|
|
|
+ <PropertyRef Name="StatusID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="OrderStatus" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__OrderProd__Order__5165187F">
|
|
|
+ <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__52593CB8">
|
|
|
+ <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__Manufac__4CA06362">
|
|
|
+ <End Role="Manufacturers" Type="Self.Manufacturers" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Manufacturers">
|
|
|
+ <PropertyRef Name="ManufacturerID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="Manufacturer" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Product__Product__4BAC3F29">
|
|
|
+ <End Role="UnitsOfMeasurement" Type="Self.UnitsOfMeasurement" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="UnitsOfMeasurement">
|
|
|
+ <PropertyRef Name="UnitID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="ProductUnitMeasurement" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Product__Product__4E88ABD4">
|
|
|
+ <End Role="Categories" Type="Self.Categories" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Categories">
|
|
|
+ <PropertyRef Name="CategoryID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="ProductCategory" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Product__Supplie__4D94879B">
|
|
|
+ <End Role="Suppliers" Type="Self.Suppliers" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Suppliers">
|
|
|
+ <PropertyRef Name="SupplierID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="Supplier" />
|
|
|
+ </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="Хранилище TradeErmolinModelContainer">
|
|
|
+ <EntitySet Name="Categories" EntityType="Self.Categories" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Manufacturers" EntityType="Self.Manufacturers" 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="OrderStatus" EntityType="Self.OrderStatus" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="PickupPoints" EntityType="Self.PickupPoints" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Suppliers" EntityType="Self.Suppliers" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="UnitsOfMeasurement" EntityType="Self.UnitsOfMeasurement" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
|
|
|
+ <AssociationSet Name="FK__Order__OrderPick__403A8C7D" Association="Self.FK__Order__OrderPick__403A8C7D">
|
|
|
+ <End Role="PickupPoints" EntitySet="PickupPoints" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Order__OrderStat__412EB0B6" Association="Self.FK__Order__OrderStat__412EB0B6">
|
|
|
+ <End Role="OrderStatus" EntitySet="OrderStatus" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__OrderProd__Order__5165187F" Association="Self.FK__OrderProd__Order__5165187F">
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ <End Role="OrderProduct" EntitySet="OrderProduct" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__OrderProd__Produ__52593CB8" Association="Self.FK__OrderProd__Produ__52593CB8">
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ <End Role="OrderProduct" EntitySet="OrderProduct" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Manufac__4CA06362" Association="Self.FK__Product__Manufac__4CA06362">
|
|
|
+ <End Role="Manufacturers" EntitySet="Manufacturers" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Product__4BAC3F29" Association="Self.FK__Product__Product__4BAC3F29">
|
|
|
+ <End Role="UnitsOfMeasurement" EntitySet="UnitsOfMeasurement" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Product__4E88ABD4" Association="Self.FK__Product__Product__4E88ABD4">
|
|
|
+ <End Role="Categories" EntitySet="Categories" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Supplie__4D94879B" Association="Self.FK__Product__Supplie__4D94879B">
|
|
|
+ <End Role="Suppliers" EntitySet="Suppliers" />
|
|
|
+ <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:StorageModels>
|
|
|
+ <!-- CSDL content -->
|
|
|
+ <edmx:ConceptualModels>
|
|
|
+ <Schema Namespace="TradeErmolinModel" 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="Categories">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="CategoryID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="CategoryID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="CategoryName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Self.FK__Product__Product__4E88ABD4" FromRole="Categories" ToRole="Product" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Manufacturers">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ManufacturerID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ManufacturerID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="ManufacturerName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Self.FK__Product__Manufac__4CA06362" FromRole="Manufacturers" ToRole="Product" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Order">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="OrderCreateDate" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
+ <Property Name="OrderDeliveryDate" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
+ <Property Name="OrderPickupPoint" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="OrderCustomer" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="OrderReceivingCode" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="OrderStatus" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="PickupPoints" Relationship="Self.FK__Order__OrderPick__403A8C7D" FromRole="Order" ToRole="PickupPoints" />
|
|
|
+ <NavigationProperty Name="OrderStatus1" Relationship="Self.FK__Order__OrderStat__412EB0B6" FromRole="Order" ToRole="OrderStatus" />
|
|
|
+ <NavigationProperty Name="OrderProduct" Relationship="Self.FK__OrderProd__Order__5165187F" FromRole="Order" ToRole="OrderProduct" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="OrderProduct">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ <PropertyRef Name="ProductArticleNumber" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderID" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="ProductArticleNumber" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="ProductAmount" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK__OrderProd__Order__5165187F" FromRole="OrderProduct" ToRole="Order" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Self.FK__OrderProd__Produ__52593CB8" FromRole="OrderProduct" ToRole="Product" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="OrderStatus">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="StatusID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="StatusID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="StatusName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK__Order__OrderStat__412EB0B6" FromRole="OrderStatus" ToRole="Order" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="PickupPoints">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="PickupID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="PickupID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="PuckupAddress" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK__Order__OrderPick__403A8C7D" FromRole="PickupPoints" 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="ProductUnitMeasurement" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="ProductCost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
|
|
|
+ <Property Name="ProductMaxDiscountAmount" Type="Int32" />
|
|
|
+ <Property Name="Manufacturer" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Supplier" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="ProductCategory" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="ProductQuantityInStock" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="ProductDescription" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="ProductPhoto" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="ProductActualDiscount" Type="Decimal" Precision="10" Scale="2" />
|
|
|
+ <NavigationProperty Name="Categories" Relationship="Self.FK__Product__Product__4E88ABD4" FromRole="Product" ToRole="Categories" />
|
|
|
+ <NavigationProperty Name="Manufacturers" Relationship="Self.FK__Product__Manufac__4CA06362" FromRole="Product" ToRole="Manufacturers" />
|
|
|
+ <NavigationProperty Name="OrderProduct" Relationship="Self.FK__OrderProd__Produ__52593CB8" FromRole="Product" ToRole="OrderProduct" />
|
|
|
+ <NavigationProperty Name="UnitsOfMeasurement" Relationship="Self.FK__Product__Product__4BAC3F29" FromRole="Product" ToRole="UnitsOfMeasurement" />
|
|
|
+ <NavigationProperty Name="Suppliers" Relationship="Self.FK__Product__Supplie__4D94879B" FromRole="Product" ToRole="Suppliers" />
|
|
|
+ </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="Suppliers">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="SupplierID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="SupplierID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="SupllierName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Self.FK__Product__Supplie__4D94879B" FromRole="Suppliers" ToRole="Product" />
|
|
|
+ </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="UnitsOfMeasurement">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="UnitID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="UnitID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="UnitName" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Self.FK__Product__Product__4BAC3F29" FromRole="UnitsOfMeasurement" ToRole="Product" />
|
|
|
+ </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" Nullable="false" />
|
|
|
+ <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__Product__Product__4E88ABD4">
|
|
|
+ <End Role="Categories" Type="Self.Categories" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Categories">
|
|
|
+ <PropertyRef Name="CategoryID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="ProductCategory" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Product__Manufac__4CA06362">
|
|
|
+ <End Role="Manufacturers" Type="Self.Manufacturers" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Manufacturers">
|
|
|
+ <PropertyRef Name="ManufacturerID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="Manufacturer" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Order__OrderPick__403A8C7D">
|
|
|
+ <End Role="PickupPoints" Type="Self.PickupPoints" Multiplicity="1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="PickupPoints">
|
|
|
+ <PropertyRef Name="PickupID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="OrderPickupPoint" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Order__OrderStat__412EB0B6">
|
|
|
+ <End Role="OrderStatus" Type="Self.OrderStatus" Multiplicity="1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="OrderStatus">
|
|
|
+ <PropertyRef Name="StatusID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="OrderStatus" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__OrderProd__Order__5165187F">
|
|
|
+ <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__52593CB8">
|
|
|
+ <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__4BAC3F29">
|
|
|
+ <End Role="UnitsOfMeasurement" Type="Self.UnitsOfMeasurement" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="UnitsOfMeasurement">
|
|
|
+ <PropertyRef Name="UnitID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="ProductUnitMeasurement" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK__Product__Supplie__4D94879B">
|
|
|
+ <End Role="Suppliers" Type="Self.Suppliers" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Suppliers">
|
|
|
+ <PropertyRef Name="SupplierID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Product">
|
|
|
+ <PropertyRef Name="Supplier" />
|
|
|
+ </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="Trade" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Categories" EntityType="Self.Categories" />
|
|
|
+ <EntitySet Name="Manufacturers" EntityType="Self.Manufacturers" />
|
|
|
+ <EntitySet Name="Order" EntityType="Self.Order" />
|
|
|
+ <EntitySet Name="OrderProduct" EntityType="Self.OrderProduct" />
|
|
|
+ <EntitySet Name="OrderStatus" EntityType="Self.OrderStatus" />
|
|
|
+ <EntitySet Name="PickupPoints" EntityType="Self.PickupPoints" />
|
|
|
+ <EntitySet Name="Product" EntityType="Self.Product" />
|
|
|
+ <EntitySet Name="Role" EntityType="Self.Role" />
|
|
|
+ <EntitySet Name="Suppliers" EntityType="Self.Suppliers" />
|
|
|
+ <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
|
|
|
+ <EntitySet Name="UnitsOfMeasurement" EntityType="Self.UnitsOfMeasurement" />
|
|
|
+ <EntitySet Name="User" EntityType="Self.User" />
|
|
|
+ <AssociationSet Name="FK__Product__Product__4E88ABD4" Association="Self.FK__Product__Product__4E88ABD4">
|
|
|
+ <End Role="Categories" EntitySet="Categories" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Manufac__4CA06362" Association="Self.FK__Product__Manufac__4CA06362">
|
|
|
+ <End Role="Manufacturers" EntitySet="Manufacturers" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Order__OrderPick__403A8C7D" Association="Self.FK__Order__OrderPick__403A8C7D">
|
|
|
+ <End Role="PickupPoints" EntitySet="PickupPoints" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Order__OrderStat__412EB0B6" Association="Self.FK__Order__OrderStat__412EB0B6">
|
|
|
+ <End Role="OrderStatus" EntitySet="OrderStatus" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__OrderProd__Order__5165187F" Association="Self.FK__OrderProd__Order__5165187F">
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ <End Role="OrderProduct" EntitySet="OrderProduct" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__OrderProd__Produ__52593CB8" Association="Self.FK__OrderProd__Produ__52593CB8">
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ <End Role="OrderProduct" EntitySet="OrderProduct" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Product__4BAC3F29" Association="Self.FK__Product__Product__4BAC3F29">
|
|
|
+ <End Role="UnitsOfMeasurement" EntitySet="UnitsOfMeasurement" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK__Product__Supplie__4D94879B" Association="Self.FK__Product__Supplie__4D94879B">
|
|
|
+ <End Role="Suppliers" EntitySet="Suppliers" />
|
|
|
+ <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="Хранилище TradeErmolinModelContainer" CdmEntityContainer="Trade">
|
|
|
+ <EntitySetMapping Name="Categories">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.Categories">
|
|
|
+ <MappingFragment StoreEntitySet="Categories">
|
|
|
+ <ScalarProperty Name="CategoryID" ColumnName="CategoryID" />
|
|
|
+ <ScalarProperty Name="CategoryName" ColumnName="CategoryName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Manufacturers">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.Manufacturers">
|
|
|
+ <MappingFragment StoreEntitySet="Manufacturers">
|
|
|
+ <ScalarProperty Name="ManufacturerID" ColumnName="ManufacturerID" />
|
|
|
+ <ScalarProperty Name="ManufacturerName" ColumnName="ManufacturerName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Order">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.Order">
|
|
|
+ <MappingFragment StoreEntitySet="Order">
|
|
|
+ <ScalarProperty Name="OrderID" ColumnName="OrderID" />
|
|
|
+ <ScalarProperty Name="OrderCreateDate" ColumnName="OrderCreateDate" />
|
|
|
+ <ScalarProperty Name="OrderDeliveryDate" ColumnName="OrderDeliveryDate" />
|
|
|
+ <ScalarProperty Name="OrderPickupPoint" ColumnName="OrderPickupPoint" />
|
|
|
+ <ScalarProperty Name="OrderCustomer" ColumnName="OrderCustomer" />
|
|
|
+ <ScalarProperty Name="OrderReceivingCode" ColumnName="OrderReceivingCode" />
|
|
|
+ <ScalarProperty Name="OrderStatus" ColumnName="OrderStatus" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="OrderProduct">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.OrderProduct">
|
|
|
+ <MappingFragment StoreEntitySet="OrderProduct">
|
|
|
+ <ScalarProperty Name="OrderID" ColumnName="OrderID" />
|
|
|
+ <ScalarProperty Name="ProductArticleNumber" ColumnName="ProductArticleNumber" />
|
|
|
+ <ScalarProperty Name="ProductAmount" ColumnName="ProductAmount" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="OrderStatus">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.OrderStatus">
|
|
|
+ <MappingFragment StoreEntitySet="OrderStatus">
|
|
|
+ <ScalarProperty Name="StatusID" ColumnName="StatusID" />
|
|
|
+ <ScalarProperty Name="StatusName" ColumnName="StatusName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="PickupPoints">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.PickupPoints">
|
|
|
+ <MappingFragment StoreEntitySet="PickupPoints">
|
|
|
+ <ScalarProperty Name="PickupID" ColumnName="PickupID" />
|
|
|
+ <ScalarProperty Name="PuckupAddress" ColumnName="PuckupAddress" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Product">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.Product">
|
|
|
+ <MappingFragment StoreEntitySet="Product">
|
|
|
+ <ScalarProperty Name="ProductArticleNumber" ColumnName="ProductArticleNumber" />
|
|
|
+ <ScalarProperty Name="ProductName" ColumnName="ProductName" />
|
|
|
+ <ScalarProperty Name="ProductUnitMeasurement" ColumnName="ProductUnitMeasurement" />
|
|
|
+ <ScalarProperty Name="ProductCost" ColumnName="ProductCost" />
|
|
|
+ <ScalarProperty Name="ProductMaxDiscountAmount" ColumnName="ProductMaxDiscountAmount" />
|
|
|
+ <ScalarProperty Name="Manufacturer" ColumnName="Manufacturer" />
|
|
|
+ <ScalarProperty Name="Supplier" ColumnName="Supplier" />
|
|
|
+ <ScalarProperty Name="ProductCategory" ColumnName="ProductCategory" />
|
|
|
+ <ScalarProperty Name="ProductQuantityInStock" ColumnName="ProductQuantityInStock" />
|
|
|
+ <ScalarProperty Name="ProductDescription" ColumnName="ProductDescription" />
|
|
|
+ <ScalarProperty Name="ProductPhoto" ColumnName="ProductPhoto" />
|
|
|
+ <ScalarProperty Name="ProductActualDiscount" ColumnName="ProductActualDiscount" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Role">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.Role">
|
|
|
+ <MappingFragment StoreEntitySet="Role">
|
|
|
+ <ScalarProperty Name="RoleID" ColumnName="RoleID" />
|
|
|
+ <ScalarProperty Name="RoleName" ColumnName="RoleName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Suppliers">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.Suppliers">
|
|
|
+ <MappingFragment StoreEntitySet="Suppliers">
|
|
|
+ <ScalarProperty Name="SupplierID" ColumnName="SupplierID" />
|
|
|
+ <ScalarProperty Name="SupllierName" ColumnName="SupllierName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="sysdiagrams">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.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="UnitsOfMeasurement">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.UnitsOfMeasurement">
|
|
|
+ <MappingFragment StoreEntitySet="UnitsOfMeasurement">
|
|
|
+ <ScalarProperty Name="UnitID" ColumnName="UnitID" />
|
|
|
+ <ScalarProperty Name="UnitName" ColumnName="UnitName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="User">
|
|
|
+ <EntityTypeMapping TypeName="TradeErmolinModel.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>
|