123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724 |
- <?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" />
- <Property Name="Id_PersStatus" Type="int" Nullable="false" />
- </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="date" />
- <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>
- <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="PersStasus">
- <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="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" StoreGeneratedPattern="Identity" 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" />
- <Property Name="Id_PersStatus" Type="int" 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_Client_PersStasus">
- <End Role="PersStasus" Type="Self.PersStasus" Multiplicity="1" />
- <End Role="Client" Type="Self.Client" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="PersStasus">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="Client">
- <PropertyRef Name="Id_PersStatus" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <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_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="*" />
- <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_PersStasus">
- <End Role="PersStasus" Type="Self.PersStasus" Multiplicity="1" />
- <End Role="Staff" Type="Self.Staff" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="PersStasus">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="Staff">
- <PropertyRef Name="Id_PersStatus" />
- </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="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" />
- <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_Client_PersStasus" Association="Self.FK_Client_PersStasus">
- <End Role="PersStasus" EntitySet="PersStasus" />
- <End Role="Client" EntitySet="Client" />
- </AssociationSet>
- <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_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" />
- </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_PersStasus" Association="Self.FK_Staff_PersStasus">
- <End Role="PersStasus" EntitySet="PersStasus" />
- <End Role="Staff" EntitySet="Staff" />
- </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" />
- <Property Name="Id_PersStatus" Type="Int32" Nullable="false" />
- <NavigationProperty Name="PersStasus" Relationship="gr692_kovModel.FK_Client_PersStasus" FromRole="Client" ToRole="PersStasus" />
- </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="DateTime" />
- <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" />
- <Property Name="Id_OrderStatus" Type="Int32" />
- <NavigationProperty Name="OrderStatus" Relationship="gr692_kovModel.FK_Order_OrderStatus" FromRole="Order" ToRole="OrderStatus" />
- </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="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" />
- <Property Name="CountOfSeats" Type="Int32" />
- </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" />
- <Property Name="Id_PersStatus" Type="Int32" Nullable="false" />
- <NavigationProperty Name="PersStasus" Relationship="gr692_kovModel.FK_Staff_PersStasus" FromRole="Staff" ToRole="PersStasus" />
- </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>
- <EntitySet Name="PersStasus" EntityType="gr692_kovModel.PersStasus" />
- <AssociationSet Name="FK_Client_PersStasus" Association="gr692_kovModel.FK_Client_PersStasus">
- <End Role="PersStasus" EntitySet="PersStasus" />
- <End Role="Client" EntitySet="Client" />
- </AssociationSet>
- <AssociationSet Name="FK_Staff_PersStasus" Association="gr692_kovModel.FK_Staff_PersStasus">
- <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>
- <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>
- <EntityType Name="PersStasus">
- <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="Client" Relationship="gr692_kovModel.FK_Client_PersStasus" FromRole="PersStasus" ToRole="Client" />
- <NavigationProperty Name="Staff" Relationship="gr692_kovModel.FK_Staff_PersStasus" FromRole="PersStasus" ToRole="Staff" />
- </EntityType>
- <Association Name="FK_Client_PersStasus">
- <End Type="gr692_kovModel.PersStasus" Role="PersStasus" Multiplicity="1" />
- <End Type="gr692_kovModel.Client" Role="Client" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="PersStasus">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="Client">
- <PropertyRef Name="Id_PersStatus" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Staff_PersStasus">
- <End Type="gr692_kovModel.PersStasus" Role="PersStasus" Multiplicity="1" />
- <End Type="gr692_kovModel.Staff" Role="Staff" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="PersStasus">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="Staff">
- <PropertyRef Name="Id_PersStatus" />
- </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 -->
- <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_PersStatus" ColumnName="Id_PersStatus" />
- <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_OrderStatus" ColumnName="Id_OrderStatus" />
- <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="CountOfSeats" ColumnName="CountOfSeats" />
- <ScalarProperty Name="Id" ColumnName="Id" />
- <ScalarProperty Name="NumRoom" ColumnName="NumRoom" />
- <ScalarProperty Name="CostPerDay" ColumnName="CostPerDay" />
- <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_PersStatus" ColumnName="Id_PersStatus" />
- <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>
- <EntitySetMapping Name="PersStasus">
- <EntityTypeMapping TypeName="gr692_kovModel.PersStasus">
- <MappingFragment StoreEntitySet="PersStasus">
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Id" ColumnName="Id" />
- </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>
- </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>
|