|
@@ -27,6 +27,14 @@
|
|
|
<Property Name="Id_Pay" Type="int" />
|
|
|
<Property Name="DateStart" Type="date" />
|
|
|
<Property Name="DateEnd" Type="nchar" MaxLength="10" />
|
|
|
+ <Property Name="Id_OrderStatus" Type="int" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="OrderStatus">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Pay">
|
|
|
<Key>
|
|
@@ -123,6 +131,18 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
+ <Association Name="FK_Order_OrderStatus">
|
|
|
+ <End Role="OrderStatus" Type="Self.OrderStatus" Multiplicity="0..1" />
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="OrderStatus">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="Id_OrderStatus" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
<Association Name="FK_Order_Pay">
|
|
|
<End Role="Pay" Type="Self.Pay" Multiplicity="0..1" />
|
|
|
<End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
@@ -210,6 +230,7 @@
|
|
|
<EntityContainer Name="Хранилище gr692_kovModelContainer">
|
|
|
<EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
|
|
|
+ <EntitySet Name="OrderStatus" EntityType="Self.OrderStatus" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="Pay" EntityType="Self.Pay" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="PayType" EntityType="Self.PayType" Schema="dbo" store:Type="Tables" />
|
|
|
<EntitySet Name="PersStasus" EntityType="Self.PersStasus" Schema="dbo" store:Type="Tables" />
|
|
@@ -226,6 +247,10 @@
|
|
|
<End Role="Client" EntitySet="Client" />
|
|
|
<End Role="Order" EntitySet="Order" />
|
|
|
</AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Order_OrderStatus" Association="Self.FK_Order_OrderStatus">
|
|
|
+ <End Role="OrderStatus" EntitySet="OrderStatus" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
<AssociationSet Name="FK_Order_Pay" Association="Self.FK_Order_Pay">
|
|
|
<End Role="Pay" EntitySet="Pay" />
|
|
|
<End Role="Order" EntitySet="Order" />
|
|
@@ -287,6 +312,8 @@
|
|
|
<NavigationProperty Name="Staff" Relationship="Self.FK_Order_Staff" FromRole="Order" ToRole="Staff" />
|
|
|
<Property Name="Id_Pay" Type="Int32" />
|
|
|
<NavigationProperty Name="Pay" Relationship="gr692_kovModel.FK_Order_Pay" FromRole="Order" ToRole="Pay" />
|
|
|
+ <Property Name="Id_OrderStatus" Type="Int32" />
|
|
|
+ <NavigationProperty Name="OrderStatus" Relationship="gr692_kovModel.FK_Order_OrderStatus" FromRole="Order" ToRole="OrderStatus" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Room">
|
|
|
<Key>
|
|
@@ -450,6 +477,11 @@
|
|
|
<End Role="PersStasus" EntitySet="PersStasus" />
|
|
|
<End Role="Staff" EntitySet="Staff" />
|
|
|
</AssociationSet>
|
|
|
+ <EntitySet Name="OrderStatus" EntityType="gr692_kovModel.OrderStatus" />
|
|
|
+ <AssociationSet Name="FK_Order_OrderStatus" Association="gr692_kovModel.FK_Order_OrderStatus">
|
|
|
+ <End Role="OrderStatus" EntitySet="OrderStatus" />
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
+ </AssociationSet>
|
|
|
</EntityContainer>
|
|
|
<EntityType Name="Pay">
|
|
|
<Key>
|
|
@@ -527,6 +559,26 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
+ <EntityType Name="OrderStatus">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="Order" Relationship="gr692_kovModel.FK_Order_OrderStatus" FromRole="OrderStatus" ToRole="Order" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_Order_OrderStatus">
|
|
|
+ <End Type="gr692_kovModel.OrderStatus" Role="OrderStatus" Multiplicity="0..1" />
|
|
|
+ <End Type="gr692_kovModel.Order" Role="Order" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="OrderStatus">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Order">
|
|
|
+ <PropertyRef Name="Id_OrderStatus" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
</Schema>
|
|
|
</edmx:ConceptualModels>
|
|
|
<!-- C-S mapping content -->
|
|
@@ -548,6 +600,7 @@
|
|
|
<EntitySetMapping Name="Order">
|
|
|
<EntityTypeMapping TypeName="gr692_kovModel.Order">
|
|
|
<MappingFragment StoreEntitySet="Order">
|
|
|
+ <ScalarProperty Name="Id_OrderStatus" ColumnName="Id_OrderStatus" />
|
|
|
<ScalarProperty Name="Id_Pay" ColumnName="Id_Pay" />
|
|
|
<ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
<ScalarProperty Name="Id_Staff" ColumnName="Id_Staff" />
|
|
@@ -637,6 +690,14 @@
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="OrderStatus">
|
|
|
+ <EntityTypeMapping TypeName="gr692_kovModel.OrderStatus">
|
|
|
+ <MappingFragment StoreEntitySet="OrderStatus">
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
</EntityContainerMapping>
|
|
|
</Mapping>
|
|
|
</edmx:Mappings>
|