|
@@ -0,0 +1,565 @@
|
|
|
|
+<?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="Хранилище gr692_kovModel" 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="Client">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="LName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="FName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="MName" Type="nchar" MaxLength="10" />
|
|
|
|
+ <Property Name="Passport" Type="image" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Order">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="Id_Staff" Type="int" />
|
|
|
|
+ <Property Name="Id_Client" Type="int" />
|
|
|
|
+ <Property Name="Id_Room" Type="int" />
|
|
|
|
+ <Property Name="Id_Pay" Type="int" />
|
|
|
|
+ <Property Name="DateStart" Type="date" />
|
|
|
|
+ <Property Name="DateEnd" Type="nchar" MaxLength="10" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Pay">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="EndSum" Type="money" Nullable="false" />
|
|
|
|
+ <Property Name="PayDate" Type="date" Nullable="false" />
|
|
|
|
+ <Property Name="Id_PayType" Type="int" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="PayType">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="50" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Room">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="NumRoom" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="CostPerDay" Type="money" />
|
|
|
|
+ <Property Name="CountOfseats" Type="int" />
|
|
|
|
+ <Property Name="Id_RoomStatus" Type="int" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="RoomStatus">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="int" Nullable="false" />
|
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Staff">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="LName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="FName" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="MName" Type="nchar" MaxLength="10" />
|
|
|
|
+ <Property Name="Id_StaffRole" Type="int" />
|
|
|
|
+ <Property Name="PhotoContract" Type="image" />
|
|
|
|
+ <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ <Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="StaffRole">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="50" />
|
|
|
|
+ </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>
|
|
|
|
+ <Association Name="FK_Order_Client">
|
|
|
|
+ <End Role="Client" Type="Self.Client" Multiplicity="0..1" />
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Client">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="Id_Client" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Order_Pay">
|
|
|
|
+ <End Role="Pay" Type="Self.Pay" Multiplicity="0..1" />
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Pay">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="Id_Pay" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Order_Room">
|
|
|
|
+ <End Role="Room" Type="Self.Room" Multiplicity="0..1" />
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Room">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="Id_Room" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Order_Staff">
|
|
|
|
+ <End Role="Staff" Type="Self.Staff" Multiplicity="0..1" />
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Staff">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="Id_Staff" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Pay_PayType">
|
|
|
|
+ <End Role="PayType" Type="Self.PayType" Multiplicity="1" />
|
|
|
|
+ <End Role="Pay" Type="Self.Pay" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="PayType">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Pay">
|
|
|
|
+ <PropertyRef Name="Id_PayType" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Room_RoomStatus">
|
|
|
|
+ <End Role="RoomStatus" Type="Self.RoomStatus" Multiplicity="0..1" />
|
|
|
|
+ <End Role="Room" Type="Self.Room" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="RoomStatus">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Room">
|
|
|
|
+ <PropertyRef Name="Id_RoomStatus" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Staff_StaffRole">
|
|
|
|
+ <End Role="StaffRole" Type="Self.StaffRole" Multiplicity="0..1" />
|
|
|
|
+ <End Role="Staff" Type="Self.Staff" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="StaffRole">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Staff">
|
|
|
|
+ <PropertyRef Name="Id_StaffRole" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <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="Pay" EntityType="Self.Pay" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="PayType" EntityType="Self.PayType" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="Room" EntityType="Self.Room" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="RoomStatus" EntityType="Self.RoomStatus" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="Staff" EntityType="Self.Staff" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="StaffRole" EntityType="Self.StaffRole" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
|
|
|
|
+ <AssociationSet Name="FK_Order_Client" Association="Self.FK_Order_Client">
|
|
|
|
+ <End Role="Client" EntitySet="Client" />
|
|
|
|
+ <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" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_Room" Association="Self.FK_Order_Room">
|
|
|
|
+ <End Role="Room" EntitySet="Room" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_Staff" Association="Self.FK_Order_Staff">
|
|
|
|
+ <End Role="Staff" EntitySet="Staff" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Pay_PayType" Association="Self.FK_Pay_PayType">
|
|
|
|
+ <End Role="PayType" EntitySet="PayType" />
|
|
|
|
+ <End Role="Pay" EntitySet="Pay" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Room_RoomStatus" Association="Self.FK_Room_RoomStatus">
|
|
|
|
+ <End Role="RoomStatus" EntitySet="RoomStatus" />
|
|
|
|
+ <End Role="Room" EntitySet="Room" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Staff_StaffRole" Association="Self.FK_Staff_StaffRole">
|
|
|
|
+ <End Role="StaffRole" EntitySet="StaffRole" />
|
|
|
|
+ <End Role="Staff" EntitySet="Staff" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ </EntityContainer>
|
|
|
|
+ </Schema></edmx:StorageModels>
|
|
|
|
+ <!-- CSDL content -->
|
|
|
|
+ <edmx:ConceptualModels>
|
|
|
|
+ <Schema Namespace="gr692_kovModel" 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="Client">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="LName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="FName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="MName" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
|
|
|
|
+ <Property Name="Passport" Type="Binary" MaxLength="Max" FixedLength="false" />
|
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK_Order_Client" FromRole="Client" ToRole="Order" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Order">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="Id_Staff" Type="Int32" />
|
|
|
|
+ <Property Name="Id_Client" Type="Int32" />
|
|
|
|
+ <Property Name="Id_Room" Type="Int32" />
|
|
|
|
+ <Property Name="DateStart" Type="DateTime" Precision="0" />
|
|
|
|
+ <Property Name="DateEnd" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
|
|
|
|
+ <NavigationProperty Name="Client" Relationship="Self.FK_Order_Client" FromRole="Order" ToRole="Client" />
|
|
|
|
+ <NavigationProperty Name="Room" Relationship="Self.FK_Order_Room" FromRole="Order" ToRole="Room" />
|
|
|
|
+ <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" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Room">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="NumRoom" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="CostPerDay" Type="Decimal" Precision="19" Scale="4" />
|
|
|
|
+ <Property Name="CountOfseats" Type="Int32" />
|
|
|
|
+ <Property Name="Id_RoomStatus" Type="Int32" />
|
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK_Order_Room" FromRole="Room" ToRole="Order" />
|
|
|
|
+ <NavigationProperty Name="RoomStatus" Relationship="Self.FK_Room_RoomStatus" FromRole="Room" ToRole="RoomStatus" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="RoomStatus">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" />
|
|
|
|
+ <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="Room" Relationship="Self.FK_Room_RoomStatus" FromRole="RoomStatus" ToRole="Room" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="Staff">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="LName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="FName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
|
+ <Property Name="MName" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
|
|
|
|
+ <Property Name="Id_StaffRole" Type="Int32" />
|
|
|
|
+ <Property Name="PhotoContract" Type="Binary" MaxLength="Max" FixedLength="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" />
|
|
|
|
+ <NavigationProperty Name="Order" Relationship="Self.FK_Order_Staff" FromRole="Staff" ToRole="Order" />
|
|
|
|
+ <NavigationProperty Name="StaffRole" Relationship="Self.FK_Staff_StaffRole" FromRole="Staff" ToRole="StaffRole" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="StaffRole">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
+ <NavigationProperty Name="Staff" Relationship="Self.FK_Staff_StaffRole" FromRole="StaffRole" ToRole="Staff" />
|
|
|
|
+ </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>
|
|
|
|
+ <Association Name="FK_Order_Client">
|
|
|
|
+ <End Role="Client" Type="Self.Client" Multiplicity="0..1" />
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Client">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="Id_Client" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Order_Room">
|
|
|
|
+ <End Role="Room" Type="Self.Room" Multiplicity="0..1" />
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Room">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="Id_Room" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Order_Staff">
|
|
|
|
+ <End Role="Staff" Type="Self.Staff" Multiplicity="0..1" />
|
|
|
|
+ <End Role="Order" Type="Self.Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Staff">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="Id_Staff" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Room_RoomStatus">
|
|
|
|
+ <End Role="RoomStatus" Type="Self.RoomStatus" Multiplicity="0..1" />
|
|
|
|
+ <End Role="Room" Type="Self.Room" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="RoomStatus">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Room">
|
|
|
|
+ <PropertyRef Name="Id_RoomStatus" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Staff_StaffRole">
|
|
|
|
+ <End Role="StaffRole" Type="Self.StaffRole" Multiplicity="0..1" />
|
|
|
|
+ <End Role="Staff" Type="Self.Staff" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="StaffRole">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Staff">
|
|
|
|
+ <PropertyRef Name="Id_StaffRole" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <EntityContainer Name="gr692_kovEntities" annotation:LazyLoadingEnabled="true">
|
|
|
|
+ <EntitySet Name="Client" EntityType="Self.Client" />
|
|
|
|
+ <EntitySet Name="Order" EntityType="Self.Order" />
|
|
|
|
+ <EntitySet Name="Room" EntityType="Self.Room" />
|
|
|
|
+ <EntitySet Name="RoomStatus" EntityType="Self.RoomStatus" />
|
|
|
|
+ <EntitySet Name="Staff" EntityType="Self.Staff" />
|
|
|
|
+ <EntitySet Name="StaffRole" EntityType="Self.StaffRole" />
|
|
|
|
+ <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
|
|
|
|
+ <AssociationSet Name="FK_Order_Client" Association="Self.FK_Order_Client">
|
|
|
|
+ <End Role="Client" EntitySet="Client" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_Room" Association="Self.FK_Order_Room">
|
|
|
|
+ <End Role="Room" EntitySet="Room" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Order_Staff" Association="Self.FK_Order_Staff">
|
|
|
|
+ <End Role="Staff" EntitySet="Staff" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Room_RoomStatus" Association="Self.FK_Room_RoomStatus">
|
|
|
|
+ <End Role="RoomStatus" EntitySet="RoomStatus" />
|
|
|
|
+ <End Role="Room" EntitySet="Room" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Staff_StaffRole" Association="Self.FK_Staff_StaffRole">
|
|
|
|
+ <End Role="StaffRole" EntitySet="StaffRole" />
|
|
|
|
+ <End Role="Staff" EntitySet="Staff" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <EntitySet Name="Pay" EntityType="gr692_kovModel.Pay" />
|
|
|
|
+ <EntitySet Name="PayType" EntityType="gr692_kovModel.PayType" />
|
|
|
|
+ <AssociationSet Name="FK_Order_Pay" Association="gr692_kovModel.FK_Order_Pay">
|
|
|
|
+ <End Role="Pay" EntitySet="Pay" />
|
|
|
|
+ <End Role="Order" EntitySet="Order" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ <AssociationSet Name="FK_Pay_PayType" Association="gr692_kovModel.FK_Pay_PayType">
|
|
|
|
+ <End Role="PayType" EntitySet="PayType" />
|
|
|
|
+ <End Role="Pay" EntitySet="Pay" />
|
|
|
|
+ </AssociationSet>
|
|
|
|
+ </EntityContainer>
|
|
|
|
+ <EntityType Name="Pay">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="EndSum" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
|
|
|
|
+ <Property Name="PayDate" Type="DateTime" Nullable="false" Precision="0" />
|
|
|
|
+ <Property Name="Id_PayType" Type="Int32" Nullable="false" />
|
|
|
|
+ <NavigationProperty Name="Order" Relationship="gr692_kovModel.FK_Order_Pay" FromRole="Pay" ToRole="Order" />
|
|
|
|
+ <NavigationProperty Name="PayType" Relationship="gr692_kovModel.FK_Pay_PayType" FromRole="Pay" ToRole="PayType" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <EntityType Name="PayType">
|
|
|
|
+ <Key>
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Key>
|
|
|
|
+ <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
|
+ <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
|
+ <NavigationProperty Name="Pay" Relationship="gr692_kovModel.FK_Pay_PayType" FromRole="PayType" ToRole="Pay" />
|
|
|
|
+ </EntityType>
|
|
|
|
+ <Association Name="FK_Order_Pay">
|
|
|
|
+ <End Type="gr692_kovModel.Pay" Role="Pay" Multiplicity="0..1" />
|
|
|
|
+ <End Type="gr692_kovModel.Order" Role="Order" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="Pay">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Order">
|
|
|
|
+ <PropertyRef Name="Id_Pay" />
|
|
|
|
+ </Dependent>
|
|
|
|
+ </ReferentialConstraint>
|
|
|
|
+ </Association>
|
|
|
|
+ <Association Name="FK_Pay_PayType">
|
|
|
|
+ <End Type="gr692_kovModel.PayType" Role="PayType" Multiplicity="1" />
|
|
|
|
+ <End Type="gr692_kovModel.Pay" Role="Pay" Multiplicity="*" />
|
|
|
|
+ <ReferentialConstraint>
|
|
|
|
+ <Principal Role="PayType">
|
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
|
+ </Principal>
|
|
|
|
+ <Dependent Role="Pay">
|
|
|
|
+ <PropertyRef Name="Id_PayType" />
|
|
|
|
+ </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="Хранилище gr692_kovModelContainer" CdmEntityContainer="gr692_kovEntities">
|
|
|
|
+ <EntitySetMapping Name="Client">
|
|
|
|
+ <EntityTypeMapping TypeName="gr692_kovModel.Client">
|
|
|
|
+ <MappingFragment StoreEntitySet="Client">
|
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
|
+ <ScalarProperty Name="LName" ColumnName="LName" />
|
|
|
|
+ <ScalarProperty Name="FName" ColumnName="FName" />
|
|
|
|
+ <ScalarProperty Name="MName" ColumnName="MName" />
|
|
|
|
+ <ScalarProperty Name="Passport" ColumnName="Passport" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="Order">
|
|
|
|
+ <EntityTypeMapping TypeName="gr692_kovModel.Order">
|
|
|
|
+ <MappingFragment StoreEntitySet="Order">
|
|
|
|
+ <ScalarProperty Name="Id_Pay" ColumnName="Id_Pay" />
|
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
|
+ <ScalarProperty Name="Id_Staff" ColumnName="Id_Staff" />
|
|
|
|
+ <ScalarProperty Name="Id_Client" ColumnName="Id_Client" />
|
|
|
|
+ <ScalarProperty Name="Id_Room" ColumnName="Id_Room" />
|
|
|
|
+ <ScalarProperty Name="DateStart" ColumnName="DateStart" />
|
|
|
|
+ <ScalarProperty Name="DateEnd" ColumnName="DateEnd" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="Room">
|
|
|
|
+ <EntityTypeMapping TypeName="gr692_kovModel.Room">
|
|
|
|
+ <MappingFragment StoreEntitySet="Room">
|
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
|
+ <ScalarProperty Name="NumRoom" ColumnName="NumRoom" />
|
|
|
|
+ <ScalarProperty Name="CostPerDay" ColumnName="CostPerDay" />
|
|
|
|
+ <ScalarProperty Name="CountOfseats" ColumnName="CountOfseats" />
|
|
|
|
+ <ScalarProperty Name="Id_RoomStatus" ColumnName="Id_RoomStatus" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="RoomStatus">
|
|
|
|
+ <EntityTypeMapping TypeName="gr692_kovModel.RoomStatus">
|
|
|
|
+ <MappingFragment StoreEntitySet="RoomStatus">
|
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="Staff">
|
|
|
|
+ <EntityTypeMapping TypeName="gr692_kovModel.Staff">
|
|
|
|
+ <MappingFragment StoreEntitySet="Staff">
|
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
|
+ <ScalarProperty Name="LName" ColumnName="LName" />
|
|
|
|
+ <ScalarProperty Name="FName" ColumnName="FName" />
|
|
|
|
+ <ScalarProperty Name="MName" ColumnName="MName" />
|
|
|
|
+ <ScalarProperty Name="Id_StaffRole" ColumnName="Id_StaffRole" />
|
|
|
|
+ <ScalarProperty Name="PhotoContract" ColumnName="PhotoContract" />
|
|
|
|
+ <ScalarProperty Name="Login" ColumnName="Login" />
|
|
|
|
+ <ScalarProperty Name="Password" ColumnName="Password" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="StaffRole">
|
|
|
|
+ <EntityTypeMapping TypeName="gr692_kovModel.StaffRole">
|
|
|
|
+ <MappingFragment StoreEntitySet="StaffRole">
|
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="sysdiagrams">
|
|
|
|
+ <EntityTypeMapping TypeName="gr692_kovModel.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="Pay">
|
|
|
|
+ <EntityTypeMapping TypeName="gr692_kovModel.Pay">
|
|
|
|
+ <MappingFragment StoreEntitySet="Pay">
|
|
|
|
+ <ScalarProperty Name="Id_PayType" ColumnName="Id_PayType" />
|
|
|
|
+ <ScalarProperty Name="PayDate" ColumnName="PayDate" />
|
|
|
|
+ <ScalarProperty Name="EndSum" ColumnName="EndSum" />
|
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
|
+ </MappingFragment>
|
|
|
|
+ </EntityTypeMapping>
|
|
|
|
+ </EntitySetMapping>
|
|
|
|
+ <EntitySetMapping Name="PayType">
|
|
|
|
+ <EntityTypeMapping TypeName="gr692_kovModel.PayType">
|
|
|
|
+ <MappingFragment StoreEntitySet="PayType">
|
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
|
+ </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>
|