|
@@ -10,16 +10,16 @@
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
- <Property Name="Title" Type="nvarchar" MaxLength="50" />
|
|
|
|
|
|
+ <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Dish">
|
|
<EntityType Name="Dish">
|
|
<Key>
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
- <Property Name="Title" Type="nvarchar" MaxLength="50" />
|
|
|
|
- <Property Name="Cost" Type="float" />
|
|
|
|
- <Property Name="CookTime" Type="int" />
|
|
|
|
|
|
+ <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="Cost" Type="float" Nullable="false" />
|
|
|
|
+ <Property Name="CookTime" Type="int" Nullable="false" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="DishOrder">
|
|
<EntityType Name="DishOrder">
|
|
<Key>
|
|
<Key>
|
|
@@ -28,45 +28,45 @@
|
|
</Key>
|
|
</Key>
|
|
<Property Name="OrderID" Type="int" Nullable="false" />
|
|
<Property Name="OrderID" Type="int" Nullable="false" />
|
|
<Property Name="DishID" Type="int" Nullable="false" />
|
|
<Property Name="DishID" Type="int" Nullable="false" />
|
|
- <Property Name="Count" Type="int" />
|
|
|
|
|
|
+ <Property Name="Count" Type="int" Nullable="false" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Employee">
|
|
<EntityType Name="Employee">
|
|
<Key>
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
- <Property Name="LastName" Type="nvarchar" MaxLength="50" />
|
|
|
|
- <Property Name="FirstName" Type="nvarchar" MaxLength="50" />
|
|
|
|
|
|
+ <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
<Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
|
|
<Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
|
|
- <Property Name="PostitonID" Type="int" />
|
|
|
|
- <Property Name="Login" Type="nvarchar" MaxLength="50" />
|
|
|
|
- <Property Name="Password" Type="nvarchar" MaxLength="50" />
|
|
|
|
- <Property Name="StatusID" Type="int" />
|
|
|
|
|
|
+ <Property Name="PositionID" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="StatusID" Type="int" Nullable="false" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Order">
|
|
<EntityType Name="Order">
|
|
<Key>
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
- <Property Name="CookStatusID" Type="int" />
|
|
|
|
- <Property Name="PayStatysID" Type="int" />
|
|
|
|
- <Property Name="EmployeeID" Type="int" />
|
|
|
|
- <Property Name="TableNumber" Type="int" />
|
|
|
|
- <Property Name="ClientCount" Type="int" />
|
|
|
|
|
|
+ <Property Name="CookStatusID" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="PayStatysID" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="EmployeeID" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="TableNumber" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="ClientCount" Type="int" Nullable="false" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="PayStatus">
|
|
<EntityType Name="PayStatus">
|
|
<Key>
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
- <Property Name="Title" Type="nvarchar" MaxLength="50" />
|
|
|
|
|
|
+ <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Position">
|
|
<EntityType Name="Position">
|
|
<Key>
|
|
<Key>
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
- <Property Name="Title" Type="nvarchar" MaxLength="50" />
|
|
|
|
|
|
+ <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Shift">
|
|
<EntityType Name="Shift">
|
|
<Key>
|
|
<Key>
|
|
@@ -81,7 +81,7 @@
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
- <Property Name="Title" Type="nvarchar" MaxLength="50" />
|
|
|
|
|
|
+ <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<Association Name="FK_DishOrder_Dish">
|
|
<Association Name="FK_DishOrder_Dish">
|
|
<End Role="Dish" Type="Self.Dish" Multiplicity="1">
|
|
<End Role="Dish" Type="Self.Dish" Multiplicity="1">
|
|
@@ -112,7 +112,7 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Employee_Position">
|
|
<Association Name="FK_Employee_Position">
|
|
- <End Role="Position" Type="Self.Position" Multiplicity="0..1">
|
|
|
|
|
|
+ <End Role="Position" Type="Self.Position" Multiplicity="1">
|
|
<OnDelete Action="Cascade" />
|
|
<OnDelete Action="Cascade" />
|
|
</End>
|
|
</End>
|
|
<End Role="Employee" Type="Self.Employee" Multiplicity="*" />
|
|
<End Role="Employee" Type="Self.Employee" Multiplicity="*" />
|
|
@@ -121,12 +121,12 @@
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
</Principal>
|
|
<Dependent Role="Employee">
|
|
<Dependent Role="Employee">
|
|
- <PropertyRef Name="PostitonID" />
|
|
|
|
|
|
+ <PropertyRef Name="PositionID" />
|
|
</Dependent>
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Employee_Status">
|
|
<Association Name="FK_Employee_Status">
|
|
- <End Role="Status" Type="Self.Status" Multiplicity="0..1">
|
|
|
|
|
|
+ <End Role="Status" Type="Self.Status" Multiplicity="1">
|
|
<OnDelete Action="Cascade" />
|
|
<OnDelete Action="Cascade" />
|
|
</End>
|
|
</End>
|
|
<End Role="Employee" Type="Self.Employee" Multiplicity="*" />
|
|
<End Role="Employee" Type="Self.Employee" Multiplicity="*" />
|
|
@@ -140,7 +140,7 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Order_CookStatus">
|
|
<Association Name="FK_Order_CookStatus">
|
|
- <End Role="CookStatus" Type="Self.CookStatus" Multiplicity="0..1">
|
|
|
|
|
|
+ <End Role="CookStatus" Type="Self.CookStatus" Multiplicity="1">
|
|
<OnDelete Action="Cascade" />
|
|
<OnDelete Action="Cascade" />
|
|
</End>
|
|
</End>
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
@@ -154,7 +154,7 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Order_Employee">
|
|
<Association Name="FK_Order_Employee">
|
|
- <End Role="Employee" Type="Self.Employee" Multiplicity="0..1">
|
|
|
|
|
|
+ <End Role="Employee" Type="Self.Employee" Multiplicity="1">
|
|
<OnDelete Action="Cascade" />
|
|
<OnDelete Action="Cascade" />
|
|
</End>
|
|
</End>
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
@@ -168,7 +168,7 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Order_PayStatus">
|
|
<Association Name="FK_Order_PayStatus">
|
|
- <End Role="PayStatus" Type="Self.PayStatus" Multiplicity="0..1">
|
|
|
|
|
|
+ <End Role="PayStatus" Type="Self.PayStatus" Multiplicity="1">
|
|
<OnDelete Action="Cascade" />
|
|
<OnDelete Action="Cascade" />
|
|
</End>
|
|
</End>
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
@@ -248,7 +248,7 @@
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
- <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
|
|
+ <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<NavigationProperty Name="Order" Relationship="Self.FK_Order_CookStatus" FromRole="CookStatus" ToRole="Order" />
|
|
<NavigationProperty Name="Order" Relationship="Self.FK_Order_CookStatus" FromRole="CookStatus" ToRole="Order" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Dish">
|
|
<EntityType Name="Dish">
|
|
@@ -256,9 +256,9 @@
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
- <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <Property Name="Cost" Type="Double" />
|
|
|
|
- <Property Name="CookTime" Type="Int32" />
|
|
|
|
|
|
+ <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="Cost" Type="Double" Nullable="false" />
|
|
|
|
+ <Property Name="CookTime" Type="Int32" Nullable="false" />
|
|
<NavigationProperty Name="DishOrder" Relationship="Self.FK_DishOrder_Dish" FromRole="Dish" ToRole="DishOrder" />
|
|
<NavigationProperty Name="DishOrder" Relationship="Self.FK_DishOrder_Dish" FromRole="Dish" ToRole="DishOrder" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="DishOrder">
|
|
<EntityType Name="DishOrder">
|
|
@@ -268,7 +268,7 @@
|
|
</Key>
|
|
</Key>
|
|
<Property Name="OrderID" Type="Int32" Nullable="false" />
|
|
<Property Name="OrderID" Type="Int32" Nullable="false" />
|
|
<Property Name="DishID" Type="Int32" Nullable="false" />
|
|
<Property Name="DishID" Type="Int32" Nullable="false" />
|
|
- <Property Name="Count" Type="Int32" />
|
|
|
|
|
|
+ <Property Name="Count" Type="Int32" Nullable="false" />
|
|
<NavigationProperty Name="Dish" Relationship="Self.FK_DishOrder_Dish" FromRole="DishOrder" ToRole="Dish" />
|
|
<NavigationProperty Name="Dish" Relationship="Self.FK_DishOrder_Dish" FromRole="DishOrder" ToRole="Dish" />
|
|
<NavigationProperty Name="Order" Relationship="Self.FK_DishOrder_Order" FromRole="DishOrder" ToRole="Order" />
|
|
<NavigationProperty Name="Order" Relationship="Self.FK_DishOrder_Order" FromRole="DishOrder" ToRole="Order" />
|
|
</EntityType>
|
|
</EntityType>
|
|
@@ -277,13 +277,13 @@
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
- <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
|
|
+ <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
<Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
- <Property Name="PostitonID" Type="Int32" />
|
|
|
|
- <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
- <Property Name="StatusID" Type="Int32" />
|
|
|
|
|
|
+ <Property Name="PositionID" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="StatusID" Type="Int32" Nullable="false" />
|
|
<NavigationProperty Name="Position" Relationship="Self.FK_Employee_Position" FromRole="Employee" ToRole="Position" />
|
|
<NavigationProperty Name="Position" Relationship="Self.FK_Employee_Position" FromRole="Employee" ToRole="Position" />
|
|
<NavigationProperty Name="Status" Relationship="Self.FK_Employee_Status" FromRole="Employee" ToRole="Status" />
|
|
<NavigationProperty Name="Status" Relationship="Self.FK_Employee_Status" FromRole="Employee" ToRole="Status" />
|
|
<NavigationProperty Name="Order" Relationship="Self.FK_Order_Employee" FromRole="Employee" ToRole="Order" />
|
|
<NavigationProperty Name="Order" Relationship="Self.FK_Order_Employee" FromRole="Employee" ToRole="Order" />
|
|
@@ -294,11 +294,11 @@
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
- <Property Name="CookStatusID" Type="Int32" />
|
|
|
|
- <Property Name="PayStatysID" Type="Int32" />
|
|
|
|
- <Property Name="EmployeeID" Type="Int32" />
|
|
|
|
- <Property Name="TableNumber" Type="Int32" />
|
|
|
|
- <Property Name="ClientCount" Type="Int32" />
|
|
|
|
|
|
+ <Property Name="CookStatusID" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="PayStatysID" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="EmployeeID" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="TableNumber" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="ClientCount" Type="Int32" Nullable="false" />
|
|
<NavigationProperty Name="CookStatus" Relationship="Self.FK_Order_CookStatus" FromRole="Order" ToRole="CookStatus" />
|
|
<NavigationProperty Name="CookStatus" Relationship="Self.FK_Order_CookStatus" FromRole="Order" ToRole="CookStatus" />
|
|
<NavigationProperty Name="DishOrder" Relationship="Self.FK_DishOrder_Order" FromRole="Order" ToRole="DishOrder" />
|
|
<NavigationProperty Name="DishOrder" Relationship="Self.FK_DishOrder_Order" FromRole="Order" ToRole="DishOrder" />
|
|
<NavigationProperty Name="Employee" Relationship="Self.FK_Order_Employee" FromRole="Order" ToRole="Employee" />
|
|
<NavigationProperty Name="Employee" Relationship="Self.FK_Order_Employee" FromRole="Order" ToRole="Employee" />
|
|
@@ -309,7 +309,7 @@
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
- <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
|
|
+ <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<NavigationProperty Name="Order" Relationship="Self.FK_Order_PayStatus" FromRole="PayStatus" ToRole="Order" />
|
|
<NavigationProperty Name="Order" Relationship="Self.FK_Order_PayStatus" FromRole="PayStatus" ToRole="Order" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Position">
|
|
<EntityType Name="Position">
|
|
@@ -317,7 +317,7 @@
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
- <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
|
|
+ <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<NavigationProperty Name="Employee" Relationship="Self.FK_Employee_Position" FromRole="Position" ToRole="Employee" />
|
|
<NavigationProperty Name="Employee" Relationship="Self.FK_Employee_Position" FromRole="Position" ToRole="Employee" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<EntityType Name="Shift">
|
|
<EntityType Name="Shift">
|
|
@@ -334,11 +334,11 @@
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Key>
|
|
</Key>
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
- <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
|
|
+ <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<NavigationProperty Name="Employee" Relationship="Self.FK_Employee_Status" FromRole="Status" ToRole="Employee" />
|
|
<NavigationProperty Name="Employee" Relationship="Self.FK_Employee_Status" FromRole="Status" ToRole="Employee" />
|
|
</EntityType>
|
|
</EntityType>
|
|
<Association Name="FK_Order_CookStatus">
|
|
<Association Name="FK_Order_CookStatus">
|
|
- <End Role="CookStatus" Type="Self.CookStatus" Multiplicity="0..1">
|
|
|
|
|
|
+ <End Role="CookStatus" Type="Self.CookStatus" Multiplicity="1">
|
|
<OnDelete Action="Cascade" />
|
|
<OnDelete Action="Cascade" />
|
|
</End>
|
|
</End>
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
@@ -380,7 +380,7 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Employee_Position">
|
|
<Association Name="FK_Employee_Position">
|
|
- <End Role="Position" Type="Self.Position" Multiplicity="0..1">
|
|
|
|
|
|
+ <End Role="Position" Type="Self.Position" Multiplicity="1">
|
|
<OnDelete Action="Cascade" />
|
|
<OnDelete Action="Cascade" />
|
|
</End>
|
|
</End>
|
|
<End Role="Employee" Type="Self.Employee" Multiplicity="*" />
|
|
<End Role="Employee" Type="Self.Employee" Multiplicity="*" />
|
|
@@ -389,12 +389,12 @@
|
|
<PropertyRef Name="ID" />
|
|
<PropertyRef Name="ID" />
|
|
</Principal>
|
|
</Principal>
|
|
<Dependent Role="Employee">
|
|
<Dependent Role="Employee">
|
|
- <PropertyRef Name="PostitonID" />
|
|
|
|
|
|
+ <PropertyRef Name="PositionID" />
|
|
</Dependent>
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Employee_Status">
|
|
<Association Name="FK_Employee_Status">
|
|
- <End Role="Status" Type="Self.Status" Multiplicity="0..1">
|
|
|
|
|
|
+ <End Role="Status" Type="Self.Status" Multiplicity="1">
|
|
<OnDelete Action="Cascade" />
|
|
<OnDelete Action="Cascade" />
|
|
</End>
|
|
</End>
|
|
<End Role="Employee" Type="Self.Employee" Multiplicity="*" />
|
|
<End Role="Employee" Type="Self.Employee" Multiplicity="*" />
|
|
@@ -408,7 +408,7 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Order_Employee">
|
|
<Association Name="FK_Order_Employee">
|
|
- <End Role="Employee" Type="Self.Employee" Multiplicity="0..1">
|
|
|
|
|
|
+ <End Role="Employee" Type="Self.Employee" Multiplicity="1">
|
|
<OnDelete Action="Cascade" />
|
|
<OnDelete Action="Cascade" />
|
|
</End>
|
|
</End>
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
@@ -436,7 +436,7 @@
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
<Association Name="FK_Order_PayStatus">
|
|
<Association Name="FK_Order_PayStatus">
|
|
- <End Role="PayStatus" Type="Self.PayStatus" Multiplicity="0..1">
|
|
|
|
|
|
+ <End Role="PayStatus" Type="Self.PayStatus" Multiplicity="1">
|
|
<OnDelete Action="Cascade" />
|
|
<OnDelete Action="Cascade" />
|
|
</End>
|
|
</End>
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
@@ -449,7 +449,7 @@
|
|
</Dependent>
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
</Association>
|
|
- <EntityContainer Name="Kafe2Entities1" annotation:LazyLoadingEnabled="true">
|
|
|
|
|
|
+ <EntityContainer Name="Kafe2Entities" annotation:LazyLoadingEnabled="true">
|
|
<EntitySet Name="CookStatus" EntityType="Self.CookStatus" />
|
|
<EntitySet Name="CookStatus" EntityType="Self.CookStatus" />
|
|
<EntitySet Name="Dish" EntityType="Self.Dish" />
|
|
<EntitySet Name="Dish" EntityType="Self.Dish" />
|
|
<EntitySet Name="DishOrder" EntityType="Self.DishOrder" />
|
|
<EntitySet Name="DishOrder" EntityType="Self.DishOrder" />
|
|
@@ -497,7 +497,7 @@
|
|
<!-- C-S mapping content -->
|
|
<!-- C-S mapping content -->
|
|
<edmx:Mappings>
|
|
<edmx:Mappings>
|
|
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
|
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
|
- <EntityContainerMapping StorageEntityContainer="Хранилище Kafe2ModelContainer" CdmEntityContainer="Kafe2Entities1">
|
|
|
|
|
|
+ <EntityContainerMapping StorageEntityContainer="Хранилище Kafe2ModelContainer" CdmEntityContainer="Kafe2Entities">
|
|
<EntitySetMapping Name="CookStatus">
|
|
<EntitySetMapping Name="CookStatus">
|
|
<EntityTypeMapping TypeName="Kafe2Model.CookStatus">
|
|
<EntityTypeMapping TypeName="Kafe2Model.CookStatus">
|
|
<MappingFragment StoreEntitySet="CookStatus">
|
|
<MappingFragment StoreEntitySet="CookStatus">
|
|
@@ -532,7 +532,7 @@
|
|
<ScalarProperty Name="LastName" ColumnName="LastName" />
|
|
<ScalarProperty Name="LastName" ColumnName="LastName" />
|
|
<ScalarProperty Name="FirstName" ColumnName="FirstName" />
|
|
<ScalarProperty Name="FirstName" ColumnName="FirstName" />
|
|
<ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
|
|
<ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
|
|
- <ScalarProperty Name="PostitonID" ColumnName="PostitonID" />
|
|
|
|
|
|
+ <ScalarProperty Name="PositionID" ColumnName="PositionID" />
|
|
<ScalarProperty Name="Login" ColumnName="Login" />
|
|
<ScalarProperty Name="Login" ColumnName="Login" />
|
|
<ScalarProperty Name="Password" ColumnName="Password" />
|
|
<ScalarProperty Name="Password" ColumnName="Password" />
|
|
<ScalarProperty Name="StatusID" ColumnName="StatusID" />
|
|
<ScalarProperty Name="StatusID" ColumnName="StatusID" />
|