|
@@ -0,0 +1,610 @@
|
|
|
+<?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="Хранилище Goiman_AAModel" 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="Dishes">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="DishesID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="DishesID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="DishesName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
+ <Property Name="Price" Type="decimal" Precision="18" Scale="2" Nullable="false" />
|
|
|
+ <Property Name="TimeCook" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="DishList">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="DishIListID" />
|
|
|
+ <PropertyRef Name="OrderIListID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="DishIListID" Type="int" Nullable="false" />
|
|
|
+ <Property Name="OrderIListID" Type="int" Nullable="false" />
|
|
|
+ <Property Name="CountDish" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Order">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="TableNumber" Type="int" Nullable="false" />
|
|
|
+ <Property Name="CountClient" Type="int" Nullable="false" />
|
|
|
+ <Property Name="OrdDishesid" Type="int" Nullable="false" />
|
|
|
+ <Property Name="StatusOrderid" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Walterid" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Post">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="PostID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="PostID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="PostName" Type="nvarchar" MaxLength="64" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Shifts">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ShiftsID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ShiftsID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="DateShifts" Type="date" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="ShiftUser">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ShiftUserID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ShiftUserID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Userid" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Shiftid" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="StatusOrder">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="StatusOrderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="StatusOrderID" Type="int" Nullable="false" />
|
|
|
+ <Property Name="StatusOrderName" Type="nvarchar" MaxLength="64" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="StatusWork">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="StatusWorkID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="StatusWorkID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="StatusWorkName" Type="nvarchar" MaxLength="64" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="User">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="UserID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Login" Type="nvarchar" MaxLength="64" Nullable="false" />
|
|
|
+ <Property Name="SurName" Type="nvarchar" MaxLength="64" Nullable="false" />
|
|
|
+ <Property Name="FirstName" Type="nvarchar" MaxLength="64" Nullable="false" />
|
|
|
+ <Property Name="MiddleName" Type="nvarchar" MaxLength="64" />
|
|
|
+ <Property Name="Postid" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Password" Type="nvarchar" MaxLength="64" Nullable="false" />
|
|
|
+ <Property Name="StatusUserid" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_DishList_Dishes">
|
|
|
+ <End Role="Dishes" Type="Self.Dishes" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="DishList" Type="Self.DishList" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Dishes">
|
|
|
+ <PropertyRef Name="DishesID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="DishList">
|
|
|
+ <PropertyRef Name="DishIListID" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_DishList_Order">
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="DishList" Type="Self.DishList" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Order">
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="DishList">
|
|
|
+ <PropertyRef Name="OrderIListID" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Order_StatusOrder">
|
|
|
+ <End Role="StatusOrder" Type="Self.StatusOrder" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="StatusOrder">
|
|
|
+ <PropertyRef Name="StatusOrderID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="StatusOrderid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Order_User">
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="User">
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="Walterid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_ShiftUser_Shifts">
|
|
|
+ <End Role="Shifts" Type="Self.Shifts" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="ShiftUser" Type="Self.ShiftUser" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Shifts">
|
|
|
+ <PropertyRef Name="ShiftsID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="ShiftUser">
|
|
|
+ <PropertyRef Name="Shiftid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_ShiftUser_User">
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="ShiftUser" Type="Self.ShiftUser" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="User">
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="ShiftUser">
|
|
|
+ <PropertyRef Name="Userid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_User_Post">
|
|
|
+ <End Role="Post" Type="Self.Post" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Post">
|
|
|
+ <PropertyRef Name="PostID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="User">
|
|
|
+ <PropertyRef Name="Postid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_User_StatusWork">
|
|
|
+ <End Role="StatusWork" Type="Self.StatusWork" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="StatusWork">
|
|
|
+ <PropertyRef Name="StatusWorkID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="User">
|
|
|
+ <PropertyRef Name="StatusUserid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <EntityContainer Name="Хранилище Goiman_AAModelContainer">
|
|
|
+ <EntitySet Name="Dishes" EntityType="Self.Dishes" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="DishList" EntityType="Self.DishList" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Post" EntityType="Self.Post" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="Shifts" EntityType="Self.Shifts" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="ShiftUser" EntityType="Self.ShiftUser" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="StatusOrder" EntityType="Self.StatusOrder" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="StatusWork" EntityType="Self.StatusWork" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
|
|
|
+ <AssociationSet Name="FK_DishList_Dishes" Association="Self.FK_DishList_Dishes">
|
|
|
+ <End Role="Dishes" EntitySet="Dishes" />
|
|
|
+ <End Role="DishList" EntitySet="DishList" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_DishList_Order" Association="Self.FK_DishList_Order">
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ <End Role="DishList" EntitySet="DishList" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_StatusOrder" Association="Self.FK_Order_StatusOrder">
|
|
|
+ <End Role="StatusOrder" EntitySet="StatusOrder" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_User" Association="Self.FK_Order_User">
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ShiftUser_Shifts" Association="Self.FK_ShiftUser_Shifts">
|
|
|
+ <End Role="Shifts" EntitySet="Shifts" />
|
|
|
+ <End Role="ShiftUser" EntitySet="ShiftUser" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ShiftUser_User" Association="Self.FK_ShiftUser_User">
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ <End Role="ShiftUser" EntitySet="ShiftUser" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_User_Post" Association="Self.FK_User_Post">
|
|
|
+ <End Role="Post" EntitySet="Post" />
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_User_StatusWork" Association="Self.FK_User_StatusWork">
|
|
|
+ <End Role="StatusWork" EntitySet="StatusWork" />
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
+ </Schema>
|
|
|
+ </edmx:StorageModels>
|
|
|
+ <!-- CSDL content -->
|
|
|
+ <edmx:ConceptualModels>
|
|
|
+ <Schema Namespace="Goiman_AAModel" 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="Dishes">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="DishesID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="DishesID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="DishesName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Price" Type="Decimal" Precision="18" Scale="2" Nullable="false" />
|
|
|
+ <Property Name="TimeCook" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="DishList" Relationship="Self.FK_DishList_Dishes" FromRole="Dishes" ToRole="DishList" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="DishList">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="DishIListID" />
|
|
|
+ <PropertyRef Name="OrderIListID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="DishIListID" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="OrderIListID" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="CountDish" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Dishes" Relationship="Self.FK_DishList_Dishes" FromRole="DishList" ToRole="Dishes" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK_DishList_Order" FromRole="DishList" ToRole="Order" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Order">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="OrderID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="TableNumber" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="CountClient" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="OrdDishesid" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="StatusOrderid" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Walterid" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="DishList" Relationship="Self.FK_DishList_Order" FromRole="Order" ToRole="DishList" />
|
|
|
+ <NavigationProperty Name="StatusOrder" Relationship="Self.FK_Order_StatusOrder" FromRole="Order" ToRole="StatusOrder" />
|
|
|
+ <NavigationProperty Name="User" Relationship="Self.FK_Order_User" FromRole="Order" ToRole="User" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Post">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="PostID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="PostID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="PostName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="User" Relationship="Self.FK_User_Post" FromRole="Post" ToRole="User" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Shifts">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ShiftsID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ShiftsID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="DateShifts" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
+ <NavigationProperty Name="ShiftUser" Relationship="Self.FK_ShiftUser_Shifts" FromRole="Shifts" ToRole="ShiftUser" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="ShiftUser">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ShiftUserID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ShiftUserID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Userid" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Shiftid" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Shifts" Relationship="Self.FK_ShiftUser_Shifts" FromRole="ShiftUser" ToRole="Shifts" />
|
|
|
+ <NavigationProperty Name="User" Relationship="Self.FK_ShiftUser_User" FromRole="ShiftUser" ToRole="User" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="StatusOrder">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="StatusOrderID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="StatusOrderID" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="StatusOrderName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK_Order_StatusOrder" FromRole="StatusOrder" ToRole="Order" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="StatusWork">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="StatusWorkID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="StatusWorkID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="StatusWorkName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="User" Relationship="Self.FK_User_StatusWork" FromRole="StatusWork" ToRole="User" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="User">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="UserID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Login" Type="String" MaxLength="64" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="SurName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="FirstName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="MiddleName" Type="String" MaxLength="64" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Postid" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="Password" Type="String" MaxLength="64" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="StatusUserid" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK_Order_User" FromRole="User" ToRole="Order" />
|
|
|
+ <NavigationProperty Name="Post" Relationship="Self.FK_User_Post" FromRole="User" ToRole="Post" />
|
|
|
+ <NavigationProperty Name="ShiftUser" Relationship="Self.FK_ShiftUser_User" FromRole="User" ToRole="ShiftUser" />
|
|
|
+ <NavigationProperty Name="StatusWork" Relationship="Self.FK_User_StatusWork" FromRole="User" ToRole="StatusWork" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_DishList_Dishes">
|
|
|
+ <End Role="Dishes" Type="Self.Dishes" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="DishList" Type="Self.DishList" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Dishes">
|
|
|
+ <PropertyRef Name="DishesID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="DishList">
|
|
|
+ <PropertyRef Name="DishIListID" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_DishList_Order">
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="DishList" Type="Self.DishList" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Order">
|
|
|
+ <PropertyRef Name="OrderID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="DishList">
|
|
|
+ <PropertyRef Name="OrderIListID" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Order_StatusOrder">
|
|
|
+ <End Role="StatusOrder" Type="Self.StatusOrder" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="StatusOrder">
|
|
|
+ <PropertyRef Name="StatusOrderID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="StatusOrderid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_Order_User">
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="User">
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="Walterid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_User_Post">
|
|
|
+ <End Role="Post" Type="Self.Post" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Post">
|
|
|
+ <PropertyRef Name="PostID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="User">
|
|
|
+ <PropertyRef Name="Postid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_ShiftUser_Shifts">
|
|
|
+ <End Role="Shifts" Type="Self.Shifts" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="ShiftUser" Type="Self.ShiftUser" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Shifts">
|
|
|
+ <PropertyRef Name="ShiftsID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="ShiftUser">
|
|
|
+ <PropertyRef Name="Shiftid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_ShiftUser_User">
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="ShiftUser" Type="Self.ShiftUser" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="User">
|
|
|
+ <PropertyRef Name="UserID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="ShiftUser">
|
|
|
+ <PropertyRef Name="Userid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_User_StatusWork">
|
|
|
+ <End Role="StatusWork" Type="Self.StatusWork" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Role="User" Type="Self.User" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="StatusWork">
|
|
|
+ <PropertyRef Name="StatusWorkID" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="User">
|
|
|
+ <PropertyRef Name="StatusUserid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <EntityContainer Name="Goiman_AAEntities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Dishes" EntityType="Self.Dishes" />
|
|
|
+ <EntitySet Name="DishList" EntityType="Self.DishList" />
|
|
|
+ <EntitySet Name="Order" EntityType="Self.Order" />
|
|
|
+ <EntitySet Name="Post" EntityType="Self.Post" />
|
|
|
+ <EntitySet Name="Shifts" EntityType="Self.Shifts" />
|
|
|
+ <EntitySet Name="ShiftUser" EntityType="Self.ShiftUser" />
|
|
|
+ <EntitySet Name="StatusOrder" EntityType="Self.StatusOrder" />
|
|
|
+ <EntitySet Name="StatusWork" EntityType="Self.StatusWork" />
|
|
|
+ <EntitySet Name="User" EntityType="Self.User" />
|
|
|
+ <AssociationSet Name="FK_DishList_Dishes" Association="Self.FK_DishList_Dishes">
|
|
|
+ <End Role="Dishes" EntitySet="Dishes" />
|
|
|
+ <End Role="DishList" EntitySet="DishList" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_DishList_Order" Association="Self.FK_DishList_Order">
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ <End Role="DishList" EntitySet="DishList" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_StatusOrder" Association="Self.FK_Order_StatusOrder">
|
|
|
+ <End Role="StatusOrder" EntitySet="StatusOrder" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_User" Association="Self.FK_Order_User">
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_User_Post" Association="Self.FK_User_Post">
|
|
|
+ <End Role="Post" EntitySet="Post" />
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ShiftUser_Shifts" Association="Self.FK_ShiftUser_Shifts">
|
|
|
+ <End Role="Shifts" EntitySet="Shifts" />
|
|
|
+ <End Role="ShiftUser" EntitySet="ShiftUser" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ShiftUser_User" Association="Self.FK_ShiftUser_User">
|
|
|
+ <End Role="User" EntitySet="User" />
|
|
|
+ <End Role="ShiftUser" EntitySet="ShiftUser" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_User_StatusWork" Association="Self.FK_User_StatusWork">
|
|
|
+ <End Role="StatusWork" EntitySet="StatusWork" />
|
|
|
+ <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="Хранилище Goiman_AAModelContainer" CdmEntityContainer="Goiman_AAEntities">
|
|
|
+ <EntitySetMapping Name="Dishes">
|
|
|
+ <EntityTypeMapping TypeName="Goiman_AAModel.Dishes">
|
|
|
+ <MappingFragment StoreEntitySet="Dishes">
|
|
|
+ <ScalarProperty Name="DishesID" ColumnName="DishesID" />
|
|
|
+ <ScalarProperty Name="DishesName" ColumnName="DishesName" />
|
|
|
+ <ScalarProperty Name="Price" ColumnName="Price" />
|
|
|
+ <ScalarProperty Name="TimeCook" ColumnName="TimeCook" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="DishList">
|
|
|
+ <EntityTypeMapping TypeName="Goiman_AAModel.DishList">
|
|
|
+ <MappingFragment StoreEntitySet="DishList">
|
|
|
+ <ScalarProperty Name="DishIListID" ColumnName="DishIListID" />
|
|
|
+ <ScalarProperty Name="OrderIListID" ColumnName="OrderIListID" />
|
|
|
+ <ScalarProperty Name="CountDish" ColumnName="CountDish" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Order">
|
|
|
+ <EntityTypeMapping TypeName="Goiman_AAModel.Order">
|
|
|
+ <MappingFragment StoreEntitySet="Order">
|
|
|
+ <ScalarProperty Name="OrderID" ColumnName="OrderID" />
|
|
|
+ <ScalarProperty Name="TableNumber" ColumnName="TableNumber" />
|
|
|
+ <ScalarProperty Name="CountClient" ColumnName="CountClient" />
|
|
|
+ <ScalarProperty Name="OrdDishesid" ColumnName="OrdDishesid" />
|
|
|
+ <ScalarProperty Name="StatusOrderid" ColumnName="StatusOrderid" />
|
|
|
+ <ScalarProperty Name="Walterid" ColumnName="Walterid" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Post">
|
|
|
+ <EntityTypeMapping TypeName="Goiman_AAModel.Post">
|
|
|
+ <MappingFragment StoreEntitySet="Post">
|
|
|
+ <ScalarProperty Name="PostID" ColumnName="PostID" />
|
|
|
+ <ScalarProperty Name="PostName" ColumnName="PostName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Shifts">
|
|
|
+ <EntityTypeMapping TypeName="Goiman_AAModel.Shifts">
|
|
|
+ <MappingFragment StoreEntitySet="Shifts">
|
|
|
+ <ScalarProperty Name="ShiftsID" ColumnName="ShiftsID" />
|
|
|
+ <ScalarProperty Name="DateShifts" ColumnName="DateShifts" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="ShiftUser">
|
|
|
+ <EntityTypeMapping TypeName="Goiman_AAModel.ShiftUser">
|
|
|
+ <MappingFragment StoreEntitySet="ShiftUser">
|
|
|
+ <ScalarProperty Name="ShiftUserID" ColumnName="ShiftUserID" />
|
|
|
+ <ScalarProperty Name="Userid" ColumnName="Userid" />
|
|
|
+ <ScalarProperty Name="Shiftid" ColumnName="Shiftid" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="StatusOrder">
|
|
|
+ <EntityTypeMapping TypeName="Goiman_AAModel.StatusOrder">
|
|
|
+ <MappingFragment StoreEntitySet="StatusOrder">
|
|
|
+ <ScalarProperty Name="StatusOrderID" ColumnName="StatusOrderID" />
|
|
|
+ <ScalarProperty Name="StatusOrderName" ColumnName="StatusOrderName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="StatusWork">
|
|
|
+ <EntityTypeMapping TypeName="Goiman_AAModel.StatusWork">
|
|
|
+ <MappingFragment StoreEntitySet="StatusWork">
|
|
|
+ <ScalarProperty Name="StatusWorkID" ColumnName="StatusWorkID" />
|
|
|
+ <ScalarProperty Name="StatusWorkName" ColumnName="StatusWorkName" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="User">
|
|
|
+ <EntityTypeMapping TypeName="Goiman_AAModel.User">
|
|
|
+ <MappingFragment StoreEntitySet="User">
|
|
|
+ <ScalarProperty Name="UserID" ColumnName="UserID" />
|
|
|
+ <ScalarProperty Name="Login" ColumnName="Login" />
|
|
|
+ <ScalarProperty Name="SurName" ColumnName="SurName" />
|
|
|
+ <ScalarProperty Name="FirstName" ColumnName="FirstName" />
|
|
|
+ <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
|
|
|
+ <ScalarProperty Name="Postid" ColumnName="Postid" />
|
|
|
+ <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
+ <ScalarProperty Name="StatusUserid" ColumnName="StatusUserid" />
|
|
|
+ </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>
|