|
@@ -0,0 +1,519 @@
|
|
|
+<?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="gr672_pgvModel.Store" 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="Cashier">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="CashierID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="CashierID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="IDStore" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Employee">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="EmployeeID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="EmployeeID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="MiddleName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Code" Type="nvarchar" MaxLength="5" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Order">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Date" Type="date" Nullable="false" />
|
|
|
+ <Property Name="IDWorkShift" Type="int" Nullable="false" />
|
|
|
+ <Property Name="State" Type="bit" Nullable="false" />
|
|
|
+ <Property Name="IDPaymentMetod" Type="int" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="PaymentMetod">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="PaymentMetodID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="PaymentMetodID" Type="int" Nullable="false" />
|
|
|
+ <Property Name="PaymentMetodName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Product">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ProductID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ProductID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="NameProduct" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ <Property Name="Weight" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Packaging" Type="int" Nullable="false" />
|
|
|
+ <Property Name="PriceOfOne" Type="money" Nullable="false" />
|
|
|
+ <Property Name="BarCode" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="ProductInOrder">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IDOrder" />
|
|
|
+ <PropertyRef Name="IDProduct" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IDOrder" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IDProduct" Type="int" Nullable="false" />
|
|
|
+ <Property Name="AmountProduct" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Store">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="StoreID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="StoreID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Address" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="WorkShift">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="WorkShiftID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="WorkShiftID" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IDCashier" Type="int" Nullable="false" />
|
|
|
+ <Property Name="IDEmployee" Type="int" Nullable="false" />
|
|
|
+ <Property Name="StartDateAndTimeWork" Type="datetime" Nullable="false" />
|
|
|
+ <Property Name="EndDateAndTimeWork" Type="datetime" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_Cashier_Store">
|
|
|
+ <End Role="Store" Type="Self.Store" Multiplicity="1" />
|
|
|
+ <End Role="Cashier" Type="Self.Cashier" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Store">
|
|
|
+ <PropertyRef Name="StoreID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Cashier">
|
|
|
+ <PropertyRef Name="IDStore" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Order_PaymentMetod">
|
|
|
+ <End Role="PaymentMetod" Type="Self.PaymentMetod" Multiplicity="0..1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="PaymentMetod">
|
|
|
+ <PropertyRef Name="PaymentMetodID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="IDPaymentMetod" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Order_WorkShift">
|
|
|
+ <End Role="WorkShift" Type="Self.WorkShift" Multiplicity="1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="WorkShift">
|
|
|
+ <PropertyRef Name="WorkShiftID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="IDWorkShift" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_ProductInOrder_Order">
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="1" />
|
|
|
+ <End Role="ProductInOrder" Type="Self.ProductInOrder" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Order">
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="ProductInOrder">
|
|
|
+ <PropertyRef Name="IDOrder" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_ProductInOrder_Product">
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="1" />
|
|
|
+ <End Role="ProductInOrder" Type="Self.ProductInOrder" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Product">
|
|
|
+ <PropertyRef Name="ProductID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="ProductInOrder">
|
|
|
+ <PropertyRef Name="IDProduct" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_WorkShift_Cashier">
|
|
|
+ <End Role="Cashier" Type="Self.Cashier" Multiplicity="1" />
|
|
|
+ <End Role="WorkShift" Type="Self.WorkShift" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Cashier">
|
|
|
+ <PropertyRef Name="CashierID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="WorkShift">
|
|
|
+ <PropertyRef Name="IDCashier" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_WorkShift_Employee">
|
|
|
+ <End Role="Employee" Type="Self.Employee" Multiplicity="1" />
|
|
|
+ <End Role="WorkShift" Type="Self.WorkShift" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Employee">
|
|
|
+ <PropertyRef Name="EmployeeID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="WorkShift">
|
|
|
+ <PropertyRef Name="IDEmployee" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <EntityContainer Name="gr672_pgvModelStoreContainer">
|
|
|
+ <EntitySet Name="Cashier" EntityType="Self.Cashier" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Employee" EntityType="Self.Employee" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="PaymentMetod" EntityType="Self.PaymentMetod" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="ProductInOrder" EntityType="Self.ProductInOrder" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Store" EntityType="Self.Store" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="WorkShift" EntityType="Self.WorkShift" Schema="dbo" store:Type="Tables" />
|
|
|
+ <AssociationSet Name="FK_Cashier_Store" Association="Self.FK_Cashier_Store">
|
|
|
+ <End Role="Store" EntitySet="Store" />
|
|
|
+ <End Role="Cashier" EntitySet="Cashier" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_PaymentMetod" Association="Self.FK_Order_PaymentMetod">
|
|
|
+ <End Role="PaymentMetod" EntitySet="PaymentMetod" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_WorkShift" Association="Self.FK_Order_WorkShift">
|
|
|
+ <End Role="WorkShift" EntitySet="WorkShift" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ProductInOrder_Order" Association="Self.FK_ProductInOrder_Order">
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ <End Role="ProductInOrder" EntitySet="ProductInOrder" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ProductInOrder_Product" Association="Self.FK_ProductInOrder_Product">
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ <End Role="ProductInOrder" EntitySet="ProductInOrder" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_WorkShift_Cashier" Association="Self.FK_WorkShift_Cashier">
|
|
|
+ <End Role="Cashier" EntitySet="Cashier" />
|
|
|
+ <End Role="WorkShift" EntitySet="WorkShift" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_WorkShift_Employee" Association="Self.FK_WorkShift_Employee">
|
|
|
+ <End Role="Employee" EntitySet="Employee" />
|
|
|
+ <End Role="WorkShift" EntitySet="WorkShift" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
+ </Schema></edmx:StorageModels>
|
|
|
+ <!-- CSDL content -->
|
|
|
+ <edmx:ConceptualModels>
|
|
|
+ <Schema Namespace="gr672_pgvModel" 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">
|
|
|
+ <EntityContainer Name="gr672_pgvEntities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Employees" EntityType="gr672_pgvModel.Employee" />
|
|
|
+ <EntitySet Name="Orders" EntityType="gr672_pgvModel.Order" />
|
|
|
+ <EntitySet Name="PaymentMetods" EntityType="gr672_pgvModel.PaymentMetod" />
|
|
|
+ <EntitySet Name="Products" EntityType="gr672_pgvModel.Product" />
|
|
|
+ <EntitySet Name="ProductInOrders" EntityType="gr672_pgvModel.ProductInOrder" />
|
|
|
+ <EntitySet Name="Stores" EntityType="gr672_pgvModel.Store" />
|
|
|
+ <EntitySet Name="WorkShifts" EntityType="gr672_pgvModel.WorkShift" />
|
|
|
+ <AssociationSet Name="FK_WorkShift_Employee" Association="gr672_pgvModel.FK_WorkShift_Employee">
|
|
|
+ <End Role="Employee" EntitySet="Employees" />
|
|
|
+ <End Role="WorkShift" EntitySet="WorkShifts" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_PaymentMetod" Association="gr672_pgvModel.FK_Order_PaymentMetod">
|
|
|
+ <End Role="PaymentMetod" EntitySet="PaymentMetods" />
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_WorkShift" Association="gr672_pgvModel.FK_Order_WorkShift">
|
|
|
+ <End Role="WorkShift" EntitySet="WorkShifts" />
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ProductInOrder_Order" Association="gr672_pgvModel.FK_ProductInOrder_Order">
|
|
|
+ <End Role="Order" EntitySet="Orders" />
|
|
|
+ <End Role="ProductInOrder" EntitySet="ProductInOrders" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ProductInOrder_Product" Association="gr672_pgvModel.FK_ProductInOrder_Product">
|
|
|
+ <End Role="Product" EntitySet="Products" />
|
|
|
+ <End Role="ProductInOrder" EntitySet="ProductInOrders" />
|
|
|
+ </AssociationSet>
|
|
|
+ <EntitySet Name="Cashiers" EntityType="gr672_pgvModel.Cashier" />
|
|
|
+ <AssociationSet Name="FK_Cashier_Store" Association="gr672_pgvModel.FK_Cashier_Store">
|
|
|
+ <End Role="Store" EntitySet="Stores" />
|
|
|
+ <End Role="Cashier" EntitySet="Cashiers" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_WorkShift_Cashier" Association="gr672_pgvModel.FK_WorkShift_Cashier">
|
|
|
+ <End Role="Cashier" EntitySet="Cashiers" />
|
|
|
+ <End Role="WorkShift" EntitySet="WorkShifts" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
+ <EntityType Name="Employee">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="EmployeeID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="EmployeeID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="LastName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="MiddleName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Code" Type="String" Nullable="false" MaxLength="5" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="WorkShifts" Relationship="gr672_pgvModel.FK_WorkShift_Employee" FromRole="Employee" ToRole="WorkShift" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Order">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Date" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
+ <Property Name="IDWorkShift" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="State" Type="Boolean" Nullable="false" />
|
|
|
+ <Property Name="IDPaymentMetod" Type="Int32" />
|
|
|
+ <NavigationProperty Name="PaymentMetod" Relationship="gr672_pgvModel.FK_Order_PaymentMetod" FromRole="Order" ToRole="PaymentMetod" />
|
|
|
+ <NavigationProperty Name="WorkShift" Relationship="gr672_pgvModel.FK_Order_WorkShift" FromRole="Order" ToRole="WorkShift" />
|
|
|
+ <NavigationProperty Name="ProductInOrders" Relationship="gr672_pgvModel.FK_ProductInOrder_Order" FromRole="Order" ToRole="ProductInOrder" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="PaymentMetod">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="PaymentMetodID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="PaymentMetodID" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="PaymentMetodName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="Orders" Relationship="gr672_pgvModel.FK_Order_PaymentMetod" FromRole="PaymentMetod" ToRole="Order" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Product">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ProductID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ProductID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="NameProduct" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Weight" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Packaging" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="PriceOfOne" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
|
|
|
+ <Property Name="BarCode" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="ProductInOrders" Relationship="gr672_pgvModel.FK_ProductInOrder_Product" FromRole="Product" ToRole="ProductInOrder" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="ProductInOrder">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="IDOrder" />
|
|
|
+ <PropertyRef Name="IDProduct" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="IDOrder" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IDProduct" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="AmountProduct" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="gr672_pgvModel.FK_ProductInOrder_Order" FromRole="ProductInOrder" ToRole="Order" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="gr672_pgvModel.FK_ProductInOrder_Product" FromRole="ProductInOrder" ToRole="Product" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Store">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="StoreID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="StoreID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Address" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="Cashiers" Relationship="gr672_pgvModel.FK_Cashier_Store" FromRole="Store" ToRole="Cashier" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="WorkShift">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="WorkShiftID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="WorkShiftID" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IDCashier" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="IDEmployee" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="StartDateAndTimeWork" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
+ <Property Name="EndDateAndTimeWork" Type="DateTime" Precision="3" />
|
|
|
+ <NavigationProperty Name="Employee" Relationship="gr672_pgvModel.FK_WorkShift_Employee" FromRole="WorkShift" ToRole="Employee" />
|
|
|
+ <NavigationProperty Name="Orders" Relationship="gr672_pgvModel.FK_Order_WorkShift" FromRole="WorkShift" ToRole="Order" />
|
|
|
+ <NavigationProperty Name="Cashier" Relationship="gr672_pgvModel.FK_WorkShift_Cashier" FromRole="WorkShift" ToRole="Cashier" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_WorkShift_Employee">
|
|
|
+ <End Type="gr672_pgvModel.Employee" Role="Employee" Multiplicity="1" />
|
|
|
+ <End Type="gr672_pgvModel.WorkShift" Role="WorkShift" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Employee">
|
|
|
+ <PropertyRef Name="EmployeeID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="WorkShift">
|
|
|
+ <PropertyRef Name="IDEmployee" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Order_PaymentMetod">
|
|
|
+ <End Type="gr672_pgvModel.PaymentMetod" Role="PaymentMetod" Multiplicity="0..1" />
|
|
|
+ <End Type="gr672_pgvModel.Order" Role="Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="PaymentMetod">
|
|
|
+ <PropertyRef Name="PaymentMetodID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="IDPaymentMetod" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Order_WorkShift">
|
|
|
+ <End Type="gr672_pgvModel.WorkShift" Role="WorkShift" Multiplicity="1" />
|
|
|
+ <End Type="gr672_pgvModel.Order" Role="Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="WorkShift">
|
|
|
+ <PropertyRef Name="WorkShiftID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="IDWorkShift" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_ProductInOrder_Order">
|
|
|
+ <End Type="gr672_pgvModel.Order" Role="Order" Multiplicity="1" />
|
|
|
+ <End Type="gr672_pgvModel.ProductInOrder" Role="ProductInOrder" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Order">
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="ProductInOrder">
|
|
|
+ <PropertyRef Name="IDOrder" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_ProductInOrder_Product">
|
|
|
+ <End Type="gr672_pgvModel.Product" Role="Product" Multiplicity="1" />
|
|
|
+ <End Type="gr672_pgvModel.ProductInOrder" Role="ProductInOrder" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Product">
|
|
|
+ <PropertyRef Name="ProductID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="ProductInOrder">
|
|
|
+ <PropertyRef Name="IDProduct" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <EntityType Name="Cashier">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="CashierID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="CashierID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="IDStore" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Store" Relationship="gr672_pgvModel.FK_Cashier_Store" FromRole="Cashier" ToRole="Store" />
|
|
|
+ <NavigationProperty Name="WorkShifts" Relationship="gr672_pgvModel.FK_WorkShift_Cashier" FromRole="Cashier" ToRole="WorkShift" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_Cashier_Store">
|
|
|
+ <End Type="gr672_pgvModel.Store" Role="Store" Multiplicity="1" />
|
|
|
+ <End Type="gr672_pgvModel.Cashier" Role="Cashier" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Store">
|
|
|
+ <PropertyRef Name="StoreID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Cashier">
|
|
|
+ <PropertyRef Name="IDStore" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_WorkShift_Cashier">
|
|
|
+ <End Type="gr672_pgvModel.Cashier" Role="Cashier" Multiplicity="1" />
|
|
|
+ <End Type="gr672_pgvModel.WorkShift" Role="WorkShift" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Cashier">
|
|
|
+ <PropertyRef Name="CashierID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="WorkShift">
|
|
|
+ <PropertyRef Name="IDCashier" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ </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="gr672_pgvModelStoreContainer" CdmEntityContainer="gr672_pgvEntities">
|
|
|
+ <EntitySetMapping Name="Employees">
|
|
|
+ <EntityTypeMapping TypeName="gr672_pgvModel.Employee">
|
|
|
+ <MappingFragment StoreEntitySet="Employee">
|
|
|
+ <ScalarProperty Name="Code" ColumnName="Code" />
|
|
|
+ <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="LastName" ColumnName="LastName" />
|
|
|
+ <ScalarProperty Name="EmployeeID" ColumnName="EmployeeID" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Orders">
|
|
|
+ <EntityTypeMapping TypeName="gr672_pgvModel.Order">
|
|
|
+ <MappingFragment StoreEntitySet="Order">
|
|
|
+ <ScalarProperty Name="IDPaymentMetod" ColumnName="IDPaymentMetod" />
|
|
|
+ <ScalarProperty Name="State" ColumnName="State" />
|
|
|
+ <ScalarProperty Name="IDWorkShift" ColumnName="IDWorkShift" />
|
|
|
+ <ScalarProperty Name="Date" ColumnName="Date" />
|
|
|
+ <ScalarProperty Name="OrderID" ColumnName="OrderID" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="PaymentMetods">
|
|
|
+ <EntityTypeMapping TypeName="gr672_pgvModel.PaymentMetod">
|
|
|
+ <MappingFragment StoreEntitySet="PaymentMetod">
|
|
|
+ <ScalarProperty Name="PaymentMetodName" ColumnName="PaymentMetodName" />
|
|
|
+ <ScalarProperty Name="PaymentMetodID" ColumnName="PaymentMetodID" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Products">
|
|
|
+ <EntityTypeMapping TypeName="gr672_pgvModel.Product">
|
|
|
+ <MappingFragment StoreEntitySet="Product">
|
|
|
+ <ScalarProperty Name="BarCode" ColumnName="BarCode" />
|
|
|
+ <ScalarProperty Name="PriceOfOne" ColumnName="PriceOfOne" />
|
|
|
+ <ScalarProperty Name="Packaging" ColumnName="Packaging" />
|
|
|
+ <ScalarProperty Name="Weight" ColumnName="Weight" />
|
|
|
+ <ScalarProperty Name="NameProduct" ColumnName="NameProduct" />
|
|
|
+ <ScalarProperty Name="ProductID" ColumnName="ProductID" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="ProductInOrders">
|
|
|
+ <EntityTypeMapping TypeName="gr672_pgvModel.ProductInOrder">
|
|
|
+ <MappingFragment StoreEntitySet="ProductInOrder">
|
|
|
+ <ScalarProperty Name="AmountProduct" ColumnName="AmountProduct" />
|
|
|
+ <ScalarProperty Name="IDProduct" ColumnName="IDProduct" />
|
|
|
+ <ScalarProperty Name="IDOrder" ColumnName="IDOrder" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Stores">
|
|
|
+ <EntityTypeMapping TypeName="gr672_pgvModel.Store">
|
|
|
+ <MappingFragment StoreEntitySet="Store">
|
|
|
+ <ScalarProperty Name="Address" ColumnName="Address" />
|
|
|
+ <ScalarProperty Name="StoreID" ColumnName="StoreID" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="WorkShifts">
|
|
|
+ <EntityTypeMapping TypeName="gr672_pgvModel.WorkShift">
|
|
|
+ <MappingFragment StoreEntitySet="WorkShift">
|
|
|
+ <ScalarProperty Name="EndDateAndTimeWork" ColumnName="EndDateAndTimeWork" />
|
|
|
+ <ScalarProperty Name="StartDateAndTimeWork" ColumnName="StartDateAndTimeWork" />
|
|
|
+ <ScalarProperty Name="IDEmployee" ColumnName="IDEmployee" />
|
|
|
+ <ScalarProperty Name="IDCashier" ColumnName="IDCashier" />
|
|
|
+ <ScalarProperty Name="WorkShiftID" ColumnName="WorkShiftID" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Cashiers">
|
|
|
+ <EntityTypeMapping TypeName="gr672_pgvModel.Cashier">
|
|
|
+ <MappingFragment StoreEntitySet="Cashier">
|
|
|
+ <ScalarProperty Name="IDStore" ColumnName="IDStore" />
|
|
|
+ <ScalarProperty Name="CashierID" ColumnName="CashierID" />
|
|
|
+ </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="true" />
|
|
|
+ <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
|
|
+ <DesignerProperty Name="UseLegacyProvider" Value="false" />
|
|
|
+ <DesignerProperty Name="CodeGenerationStrategy" Value="None" />
|
|
|
+ </DesignerInfoPropertySet>
|
|
|
+ </Options>
|
|
|
+ <!-- Diagram content (shape and connector positions) -->
|
|
|
+ <Diagrams></Diagrams>
|
|
|
+ </Designer>
|
|
|
+</edmx:Edmx>
|