| 
					
				 | 
			
			
				@@ -16,6 +16,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <Property Name="Passport" Type="image" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <Property Name="Id_PersStatus" Type="int" Nullable="false" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </EntityType> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <EntityType Name="HelpQuestion"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <Key> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <PropertyRef Name="id" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </Key> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <Property Name="Name" Type="nvarchar" MaxLength="50" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </EntityType> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <EntityType Name="Order"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <Key> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <PropertyRef Name="Id" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -89,6 +96,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <Property Name="Password" Type="nvarchar(max)" Nullable="false" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <Property Name="Id_PersStatus" Type="int" Nullable="false" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <Property Name="Id_HelpQuestion" Type="int" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <Property Name="AnswerOnHelpQuestion" Type="nvarchar(max)" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </EntityType> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <EntityType Name="StaffRole"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <Key> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -203,6 +212,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </Dependent> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </ReferentialConstraint> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </Association> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <Association Name="FK_Staff_HelpQuestion"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <End Role="HelpQuestion" Type="Self.HelpQuestion" Multiplicity="0..1" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <End Role="Staff" Type="Self.Staff" Multiplicity="*" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <ReferentialConstraint> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <Principal Role="HelpQuestion"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <PropertyRef Name="id" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </Principal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <Dependent Role="Staff"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <PropertyRef Name="Id_HelpQuestion" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </Dependent> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </ReferentialConstraint> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </Association> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <Association Name="FK_Staff_PersStasus"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <End Role="PersStasus" Type="Self.PersStasus" Multiplicity="1" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <End Role="Staff" Type="Self.Staff" Multiplicity="*" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -229,6 +250,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </Association> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <EntityContainer Name="Хранилище gr692_kovModelContainer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <EntitySet Name="HelpQuestion" EntityType="Self.HelpQuestion" 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" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -271,6 +293,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <End Role="RoomStatus" EntitySet="RoomStatus" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <End Role="Room" EntitySet="Room" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </AssociationSet> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <AssociationSet Name="FK_Staff_HelpQuestion" Association="Self.FK_Staff_HelpQuestion"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <End Role="HelpQuestion" EntitySet="HelpQuestion" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <End Role="Staff" EntitySet="Staff" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </AssociationSet> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <AssociationSet Name="FK_Staff_PersStasus" Association="Self.FK_Staff_PersStasus"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <End Role="PersStasus" EntitySet="PersStasus" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <End Role="Staff" EntitySet="Staff" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -351,6 +377,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <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" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <Property Name="Id_HelpQuestion" Type="Int32" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <Property Name="AnswerOnHelpQuestion" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <NavigationProperty Name="HelpQuestion" Relationship="gr692_kovModel.FK_Staff_HelpQuestion" FromRole="Staff" ToRole="HelpQuestion" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </EntityType> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <EntityType Name="StaffRole"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <Key> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -482,6 +511,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <End Role="OrderStatus" EntitySet="OrderStatus" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <End Role="Order" EntitySet="Order" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </AssociationSet> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <EntitySet Name="HelpQuestion" EntityType="gr692_kovModel.HelpQuestion" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <AssociationSet Name="FK_Staff_HelpQuestion" Association="gr692_kovModel.FK_Staff_HelpQuestion"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <End Role="HelpQuestion" EntitySet="HelpQuestion" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <End Role="Staff" EntitySet="Staff" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </AssociationSet> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </EntityContainer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <EntityType Name="Pay"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <Key> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -579,6 +613,26 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </Dependent> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </ReferentialConstraint> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </Association> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <EntityType Name="HelpQuestion"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <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="gr692_kovModel.FK_Staff_HelpQuestion" FromRole="HelpQuestion" ToRole="Staff" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </EntityType> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <Association Name="FK_Staff_HelpQuestion"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <End Type="gr692_kovModel.HelpQuestion" Role="HelpQuestion" Multiplicity="0..1" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <End Type="gr692_kovModel.Staff" Role="Staff" Multiplicity="*" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <ReferentialConstraint> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <Principal Role="HelpQuestion"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <PropertyRef Name="id" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </Principal> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <Dependent Role="Staff"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <PropertyRef Name="Id_HelpQuestion" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </Dependent> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </ReferentialConstraint> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </Association> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </Schema> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </edmx:ConceptualModels> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!-- C-S mapping content --> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -633,6 +687,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <EntitySetMapping Name="Staff"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <EntityTypeMapping TypeName="gr692_kovModel.Staff"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               <MappingFragment StoreEntitySet="Staff"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <ScalarProperty Name="AnswerOnHelpQuestion" ColumnName="AnswerOnHelpQuestion" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <ScalarProperty Name="Id_HelpQuestion" ColumnName="Id_HelpQuestion" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <ScalarProperty Name="Id_PersStatus" ColumnName="Id_PersStatus" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <ScalarProperty Name="Id" ColumnName="Id" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <ScalarProperty Name="LName" ColumnName="LName" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -698,6 +754,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </MappingFragment> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </EntityTypeMapping> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </EntitySetMapping> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <EntitySetMapping Name="HelpQuestion"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <EntityTypeMapping TypeName="gr692_kovModel.HelpQuestion"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <MappingFragment StoreEntitySet="HelpQuestion"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <ScalarProperty Name="Name" ColumnName="Name" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <ScalarProperty Name="id" ColumnName="id" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </MappingFragment> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </EntityTypeMapping> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </EntitySetMapping> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </EntityContainerMapping> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </Mapping> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </edmx:Mappings> 
			 |