Kaynağa Gözat

Добавлена логика для авторизации

ShewRN 3 yıl önce
ebeveyn
işleme
dd4777cb22
51 değiştirilmiş dosya ile 56506 ekleme ve 26 silme
  1. BIN
      .vs/WpfApp1/v16/.suo
  2. 1 1
      WpfApp1/App.xaml
  3. 33 0
      WpfApp1/Methods/AuthorizationMethod.cs
  4. 12 0
      WpfApp1/Windows/AdminWindow.xaml
  5. 27 0
      WpfApp1/Windows/AdminWindow.xaml.cs
  6. 6 2
      WpfApp1/Windows/AuthorizationWindow.xaml
  7. 31 0
      WpfApp1/Windows/AuthorizationWindow.xaml.cs
  8. 1 1
      WpfApp1/Windows/CookWindow.xaml
  9. 1 1
      WpfApp1/Windows/RegistrationWindow.xaml
  10. 1 1
      WpfApp1/Windows/WaiterWindow.xaml
  11. 30 3
      WpfApp1/WpfApp1.csproj
  12. BIN
      WpfApp1/bin/Debug/EntityFramework.SqlServer.dll
  13. 2093 0
      WpfApp1/bin/Debug/EntityFramework.SqlServer.xml
  14. BIN
      WpfApp1/bin/Debug/EntityFramework.dll
  15. 53236 0
      WpfApp1/bin/Debug/EntityFramework.xml
  16. BIN
      WpfApp1/bin/Debug/WpfApp1.exe
  17. 23 0
      WpfApp1/bin/Debug/WpfApp1.exe.config
  18. BIN
      WpfApp1/bin/Debug/WpfApp1.pdb
  19. BIN
      WpfApp1/bin/Debug/ru/EntityFramework.resources.dll
  20. 2 2
      WpfApp1/obj/Debug/App.g.cs
  21. 2 2
      WpfApp1/obj/Debug/App.g.i.cs
  22. BIN
      WpfApp1/obj/Debug/Windows/AdminWindow.baml
  23. 75 0
      WpfApp1/obj/Debug/Windows/AdminWindow.g.cs
  24. 75 0
      WpfApp1/obj/Debug/Windows/AdminWindow.g.i.cs
  25. BIN
      WpfApp1/obj/Debug/Windows/AuthorizationWindow.baml
  26. 34 1
      WpfApp1/obj/Debug/Windows/AuthorizationWindow.g.cs
  27. 34 1
      WpfApp1/obj/Debug/Windows/AuthorizationWindow.g.i.cs
  28. BIN
      WpfApp1/obj/Debug/Windows/CookWindow.baml
  29. 75 0
      WpfApp1/obj/Debug/Windows/CookWindow.g.cs
  30. 1 1
      WpfApp1/obj/Debug/Windows/CookWindow.g.i.cs
  31. BIN
      WpfApp1/obj/Debug/Windows/RegistrationWindow.baml
  32. 75 0
      WpfApp1/obj/Debug/Windows/RegistrationWindow.g.cs
  33. 1 1
      WpfApp1/obj/Debug/Windows/RegistrationWindow.g.i.cs
  34. BIN
      WpfApp1/obj/Debug/Windows/WaiterWindow.baml
  35. 75 0
      WpfApp1/obj/Debug/Windows/WaiterWindow.g.cs
  36. 1 1
      WpfApp1/obj/Debug/Windows/WaiterWindow.g.i.cs
  37. BIN
      WpfApp1/obj/Debug/WpfApp1.Properties.Resources.resources
  38. 0 0
      WpfApp1/obj/Debug/WpfApp1.csproj.CopyComplete
  39. 1 0
      WpfApp1/obj/Debug/WpfApp1.csproj.CoreCompileInputs.cache
  40. 30 0
      WpfApp1/obj/Debug/WpfApp1.csproj.FileListAbsolute.txt
  41. BIN
      WpfApp1/obj/Debug/WpfApp1.csproj.GenerateResource.cache
  42. BIN
      WpfApp1/obj/Debug/WpfApp1.exe
  43. BIN
      WpfApp1/obj/Debug/WpfApp1.g.resources
  44. BIN
      WpfApp1/obj/Debug/WpfApp1.pdb
  45. 4 4
      WpfApp1/obj/Debug/WpfApp1_MarkupCompile.cache
  46. 3 3
      WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.cache
  47. 1 1
      WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.lref
  48. 4 0
      WpfApp1/obj/Debug/WpfApp1_MarkupCompile.lref
  49. 224 0
      WpfApp1/obj/Debug/edmxResourcesToEmbed/ModelCafe.csdl
  50. 84 0
      WpfApp1/obj/Debug/edmxResourcesToEmbed/ModelCafe.msl
  51. 210 0
      WpfApp1/obj/Debug/edmxResourcesToEmbed/ModelCafe.ssdl

BIN
.vs/WpfApp1/v16/.suo


+ 1 - 1
WpfApp1/App.xaml

@@ -2,7 +2,7 @@
              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:local="clr-namespace:WpfApp1"
-             StartupUri="MainWindow.xaml">
+             StartupUri="Windows/AuthorizationWindow.xaml">
     <Application.Resources>
          
     </Application.Resources>

+ 33 - 0
WpfApp1/Methods/AuthorizationMethod.cs

@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace WpfApp1.Methods
+{
+    public class AuthorizationMethod
+    {
+        //переменная для хранения id пользователя, вошедшего в систему
+        public static int globalIdUser;
+        //логика авторизации
+        public bool AuthorizationEnter (string login, string password)
+        {
+            CafeEntities db = new CafeEntities();
+            if(string.IsNullOrWhiteSpace(login) || string.IsNullOrWhiteSpace(password))
+            {
+                MessageBox.Show("Не все поля заполнены", "Авторизация", MessageBoxButton.OK, MessageBoxImage.Error);
+                return false;
+            }
+            var enter = db.Test_User.FirstOrDefault(e => e.Login == login && e.Password == password);
+            if (enter == null)
+            {
+                MessageBox.Show("Логин или пароль не верны", "Авторизация", MessageBoxButton.OK, MessageBoxImage.Error);
+                return false;
+            }
+            globalIdUser = enter.id;
+            return true;
+        }
+    }
+}

+ 12 - 0
WpfApp1/Windows/AdminWindow.xaml

@@ -0,0 +1,12 @@
+<Window x:Class="WpfApp1.Windows.AdminWindow"
+        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+        xmlns:local="clr-namespace:WpfApp1.Windows"
+        mc:Ignorable="d"
+        Title="Администратор" Height="450" Width="800">
+    <Grid>
+        
+    </Grid>
+</Window>

+ 27 - 0
WpfApp1/Windows/AdminWindow.xaml.cs

@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace WpfApp1.Windows
+{
+    /// <summary>
+    /// Логика взаимодействия для AdminWindow.xaml
+    /// </summary>
+    public partial class AdminWindow : Window
+    {
+        public AdminWindow()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 6 - 2
WpfApp1/Windows/AuthorizationWindow.xaml

@@ -5,8 +5,12 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:WpfApp1.Windows"
         mc:Ignorable="d"
-        Title="AuthorizationWindow" Height="450" Width="800">
+        Title="Авторизация" Height="227.263" Width="321.932" WindowStartupLocation="CenterScreen">
     <Grid>
-        
+        <Label Content="Логин" HorizontalAlignment="Left" Margin="50,53,0,0" VerticalAlignment="Top"/>
+        <Label Content="Пароль" HorizontalAlignment="Left" Margin="50,88,0,0" VerticalAlignment="Top"/>
+        <TextBox Name="LoginText" HorizontalAlignment="Left" Height="23" Margin="118,56,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120"/>
+        <PasswordBox Name="PasswordText" HorizontalAlignment="Left" Margin="118,91,0,0" VerticalAlignment="Top" Width="120" Height="23"/>
+        <Button IsDefault="True" Content="Войти" HorizontalAlignment="Left" Margin="111,148,0,0" VerticalAlignment="Top" Click="AuthorizationClick" Width="75"/>
     </Grid>
 </Window>

+ 31 - 0
WpfApp1/Windows/AuthorizationWindow.xaml.cs

@@ -5,6 +5,8 @@ using System.Text;
 using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
+using WpfApp1.Methods;
+using WpfApp1.Windows;
 using System.Windows.Data;
 using System.Windows.Documents;
 using System.Windows.Input;
@@ -19,9 +21,38 @@ namespace WpfApp1.Windows
     /// </summary>
     public partial class AuthorizationWindow : Window
     {
+        CafeEntities db;
         public AuthorizationWindow()
         {
             InitializeComponent();
+            db = new CafeEntities();
+        }
+
+        private void AuthorizationClick(object sender, RoutedEventArgs e)
+        {
+            AuthorizationMethod authorizationMethod = new AuthorizationMethod();
+            if(authorizationMethod.AuthorizationEnter(LoginText.Text, PasswordText.Password) == true)
+            {
+                var role = db.Test_User.FirstOrDefault(r => r.Login == LoginText.Text && r.Password == PasswordText.Password);
+                switch (role.idPost)
+                {
+                    case 1:
+                        Hide();
+                        new AdminWindow().ShowDialog();
+                        Application.Current.Shutdown();
+                        break;
+                    case 2:
+                        Hide();
+                        new WaiterWindow().ShowDialog();
+                        Application.Current.Shutdown();
+                        break;
+                    case 3:
+                        Hide();
+                        new CookWindow().ShowDialog();
+                        Application.Current.Shutdown();
+                        break;
+                }
+            }
         }
     }
 }

+ 1 - 1
WpfApp1/Windows/CookWindow.xaml

@@ -5,7 +5,7 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:WpfApp1.Windows"
         mc:Ignorable="d"
-        Title="CookWindow" Height="450" Width="800">
+        Title="Повар" Height="450" Width="800">
     <Grid>
         
     </Grid>

+ 1 - 1
WpfApp1/Windows/RegistrationWindow.xaml

@@ -5,7 +5,7 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:WpfApp1.Windows"
         mc:Ignorable="d"
-        Title="RegistrationWindow" Height="450" Width="800">
+        Title="Регистрация пользователя" Height="450" Width="800">
     <Grid>
         
     </Grid>

+ 1 - 1
WpfApp1/Windows/WaiterWindow.xaml

@@ -5,7 +5,7 @@
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:local="clr-namespace:WpfApp1.Windows"
         mc:Ignorable="d"
-        Title="WaiterWindow" Height="450" Width="800">
+        Title="Официант" Height="450" Width="800">
     <Grid>
         
     </Grid>

+ 30 - 3
WpfApp1/WpfApp1.csproj

@@ -64,6 +64,7 @@
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
     </ApplicationDefinition>
+    <Compile Include="Methods\AuthorizationMethod.cs" />
     <Compile Include="ModelCafe.cs">
       <AutoGen>True</AutoGen>
       <DesignTime>True</DesignTime>
@@ -97,9 +98,21 @@
       <DependentUpon>App.xaml</DependentUpon>
       <SubType>Code</SubType>
     </Compile>
+    <Compile Include="Windows\AdminWindow.xaml.cs">
+      <DependentUpon>AdminWindow.xaml</DependentUpon>
+    </Compile>
     <Compile Include="Windows\AuthorizationWindow.xaml.cs">
       <DependentUpon>AuthorizationWindow.xaml</DependentUpon>
     </Compile>
+    <Compile Include="Windows\CookWindow.xaml.cs">
+      <DependentUpon>CookWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Windows\RegistrationWindow.xaml.cs">
+      <DependentUpon>RegistrationWindow.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Windows\WaiterWindow.xaml.cs">
+      <DependentUpon>WaiterWindow.xaml</DependentUpon>
+    </Compile>
   </ItemGroup>
   <ItemGroup>
     <Compile Include="ModelCafe.Context.cs">
@@ -161,13 +174,27 @@
     <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
   </ItemGroup>
   <ItemGroup>
+    <Page Include="Windows\AdminWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
     <Page Include="Windows\AuthorizationWindow.xaml">
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
+    <Page Include="Windows\CookWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Windows\RegistrationWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Windows\WaiterWindow.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
   </ItemGroup>
-  <ItemGroup>
-    <Folder Include="Methods\" />
-  </ItemGroup>
+  <ItemGroup />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>

BIN
WpfApp1/bin/Debug/EntityFramework.SqlServer.dll


Dosya farkı çok büyük olduğundan ihmal edildi
+ 2093 - 0
WpfApp1/bin/Debug/EntityFramework.SqlServer.xml


BIN
WpfApp1/bin/Debug/EntityFramework.dll


Dosya farkı çok büyük olduğundan ihmal edildi
+ 53236 - 0
WpfApp1/bin/Debug/EntityFramework.xml


BIN
WpfApp1/bin/Debug/WpfApp1.exe


+ 23 - 0
WpfApp1/bin/Debug/WpfApp1.exe.config

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+  <configSections>
+    <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
+    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
+  </configSections>
+  <startup>
+    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
+  </startup>
+  <connectionStrings>
+    <add name="CafeEntities" connectionString="metadata=res://*/ModelCafe.csdl|res://*/ModelCafe.ssdl|res://*/ModelCafe.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=mssql;initial catalog=gr691_shrn;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
+  </connectionStrings>
+  <entityFramework>
+    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
+      <parameters>
+        <parameter value="mssqllocaldb" />
+      </parameters>
+    </defaultConnectionFactory>
+    <providers>
+      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
+    </providers>
+  </entityFramework>
+</configuration>

BIN
WpfApp1/bin/Debug/WpfApp1.pdb


BIN
WpfApp1/bin/Debug/ru/EntityFramework.resources.dll


+ 2 - 2
WpfApp1/obj/Debug/App.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "70691D25E8ED7D02D8E3A8944032595E276B439C79B7B88F62E20E6FDABEEE0D"
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "2DFA5E676E220B7B1510BEA377983886990210CE13732F8E9D3F4B1E6BCFE606"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -48,7 +48,7 @@ namespace WpfApp1 {
         public void InitializeComponent() {
             
             #line 5 "..\..\App.xaml"
-            this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+            this.StartupUri = new System.Uri("Windows/AuthorizationWindow.xaml", System.UriKind.Relative);
             
             #line default
             #line hidden

+ 2 - 2
WpfApp1/obj/Debug/App.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "70691D25E8ED7D02D8E3A8944032595E276B439C79B7B88F62E20E6FDABEEE0D"
+#pragma checksum "..\..\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "2DFA5E676E220B7B1510BEA377983886990210CE13732F8E9D3F4B1E6BCFE606"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -48,7 +48,7 @@ namespace WpfApp1 {
         public void InitializeComponent() {
             
             #line 5 "..\..\App.xaml"
-            this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);
+            this.StartupUri = new System.Uri("Windows/AuthorizationWindow.xaml", System.UriKind.Relative);
             
             #line default
             #line hidden

BIN
WpfApp1/obj/Debug/Windows/AdminWindow.baml


+ 75 - 0
WpfApp1/obj/Debug/Windows/AdminWindow.g.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Windows\AdminWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8032064C42846D51BAC09E545AE682C86C7608719E15A8DDBD10B07A3E111DA3"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using WpfApp1.Windows;
+
+
+namespace WpfApp1.Windows {
+    
+    
+    /// <summary>
+    /// AdminWindow
+    /// </summary>
+    public partial class AdminWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/WpfApp1;component/windows/adminwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Windows\AdminWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 75 - 0
WpfApp1/obj/Debug/Windows/AdminWindow.g.i.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Windows\AdminWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8032064C42846D51BAC09E545AE682C86C7608719E15A8DDBD10B07A3E111DA3"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using WpfApp1.Windows;
+
+
+namespace WpfApp1.Windows {
+    
+    
+    /// <summary>
+    /// AdminWindow
+    /// </summary>
+    public partial class AdminWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/WpfApp1;component/windows/adminwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Windows\AdminWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

BIN
WpfApp1/obj/Debug/Windows/AuthorizationWindow.baml


+ 34 - 1
WpfApp1/obj/Debug/Windows/AuthorizationWindow.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Windows\AuthorizationWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8781722CBE50610F1DA4A6DFEFDFF13F63397AD7CF2AF26A797A4EDE5C9D2374"
+#pragma checksum "..\..\..\Windows\AuthorizationWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "FF4EF3FAEB5313921EDA97A770C6B23EDD02287EE0C1B7DE484676B19982BC6E"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -40,6 +40,22 @@ namespace WpfApp1.Windows {
     /// </summary>
     public partial class AuthorizationWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
         
+        
+        #line 12 "..\..\..\Windows\AuthorizationWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox LoginText;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 13 "..\..\..\Windows\AuthorizationWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox PasswordText;
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
         
         /// <summary>
@@ -68,6 +84,23 @@ namespace WpfApp1.Windows {
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
         void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.LoginText = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.PasswordText = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 3:
+            
+            #line 14 "..\..\..\Windows\AuthorizationWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AuthorizationClick);
+            
+            #line default
+            #line hidden
+            return;
+            }
             this._contentLoaded = true;
         }
     }

+ 34 - 1
WpfApp1/obj/Debug/Windows/AuthorizationWindow.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Windows\AuthorizationWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "8781722CBE50610F1DA4A6DFEFDFF13F63397AD7CF2AF26A797A4EDE5C9D2374"
+#pragma checksum "..\..\..\Windows\AuthorizationWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "FF4EF3FAEB5313921EDA97A770C6B23EDD02287EE0C1B7DE484676B19982BC6E"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -40,6 +40,22 @@ namespace WpfApp1.Windows {
     /// </summary>
     public partial class AuthorizationWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
         
+        
+        #line 12 "..\..\..\Windows\AuthorizationWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.TextBox LoginText;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 13 "..\..\..\Windows\AuthorizationWindow.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.PasswordBox PasswordText;
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
         
         /// <summary>
@@ -68,6 +84,23 @@ namespace WpfApp1.Windows {
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
         [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
         void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            switch (connectionId)
+            {
+            case 1:
+            this.LoginText = ((System.Windows.Controls.TextBox)(target));
+            return;
+            case 2:
+            this.PasswordText = ((System.Windows.Controls.PasswordBox)(target));
+            return;
+            case 3:
+            
+            #line 14 "..\..\..\Windows\AuthorizationWindow.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AuthorizationClick);
+            
+            #line default
+            #line hidden
+            return;
+            }
             this._contentLoaded = true;
         }
     }

BIN
WpfApp1/obj/Debug/Windows/CookWindow.baml


+ 75 - 0
WpfApp1/obj/Debug/Windows/CookWindow.g.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Windows\CookWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7AE93CEA415440662D97C533CB813EDFF72BB95FFE53C95E23C9DEF205FFA463"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using WpfApp1.Windows;
+
+
+namespace WpfApp1.Windows {
+    
+    
+    /// <summary>
+    /// CookWindow
+    /// </summary>
+    public partial class CookWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/WpfApp1;component/windows/cookwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Windows\CookWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 1 - 1
WpfApp1/obj/Debug/Windows/CookWindow.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Windows\CookWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7A73ADE56A81CB6229D2BF4D571A0B698D51ED3E5861C422B84E4AA25C478B68"
+#pragma checksum "..\..\..\Windows\CookWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7AE93CEA415440662D97C533CB813EDFF72BB95FFE53C95E23C9DEF205FFA463"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.

BIN
WpfApp1/obj/Debug/Windows/RegistrationWindow.baml


+ 75 - 0
WpfApp1/obj/Debug/Windows/RegistrationWindow.g.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Windows\RegistrationWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7BDCFA32D73C42E87425569AE5C3051210D150EBEFFF237AA6D9190857054C21"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using WpfApp1.Windows;
+
+
+namespace WpfApp1.Windows {
+    
+    
+    /// <summary>
+    /// RegistrationWindow
+    /// </summary>
+    public partial class RegistrationWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/WpfApp1;component/windows/registrationwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Windows\RegistrationWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 1 - 1
WpfApp1/obj/Debug/Windows/RegistrationWindow.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Windows\RegistrationWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "938E015A9515D414737B162D22762E295E83C67C3A4BF6538126E1DF6CFCFA11"
+#pragma checksum "..\..\..\Windows\RegistrationWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7BDCFA32D73C42E87425569AE5C3051210D150EBEFFF237AA6D9190857054C21"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.

BIN
WpfApp1/obj/Debug/Windows/WaiterWindow.baml


+ 75 - 0
WpfApp1/obj/Debug/Windows/WaiterWindow.g.cs

@@ -0,0 +1,75 @@
+#pragma checksum "..\..\..\Windows\WaiterWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7F3F18D039458FA5DA7D13F68D37EBC34F23200F532EC3BBB608E02A984CFCFC"
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Diagnostics;
+using System.Windows;
+using System.Windows.Automation;
+using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Ink;
+using System.Windows.Input;
+using System.Windows.Markup;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Media.Effects;
+using System.Windows.Media.Imaging;
+using System.Windows.Media.Media3D;
+using System.Windows.Media.TextFormatting;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Windows.Shell;
+using WpfApp1.Windows;
+
+
+namespace WpfApp1.Windows {
+    
+    
+    /// <summary>
+    /// WaiterWindow
+    /// </summary>
+    public partial class WaiterWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
+        
+        private bool _contentLoaded;
+        
+        /// <summary>
+        /// InitializeComponent
+        /// </summary>
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        public void InitializeComponent() {
+            if (_contentLoaded) {
+                return;
+            }
+            _contentLoaded = true;
+            System.Uri resourceLocater = new System.Uri("/WpfApp1;component/windows/waiterwindow.xaml", System.UriKind.Relative);
+            
+            #line 1 "..\..\..\Windows\WaiterWindow.xaml"
+            System.Windows.Application.LoadComponent(this, resourceLocater);
+            
+            #line default
+            #line hidden
+        }
+        
+        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
+        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
+        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
+            this._contentLoaded = true;
+        }
+    }
+}
+

+ 1 - 1
WpfApp1/obj/Debug/Windows/WaiterWindow.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\Windows\WaiterWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "662A7F4A196139222B4D158E9E8264854F347C78D4A4501D8CE83268D66C5419"
+#pragma checksum "..\..\..\Windows\WaiterWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "7F3F18D039458FA5DA7D13F68D37EBC34F23200F532EC3BBB608E02A984CFCFC"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.

BIN
WpfApp1/obj/Debug/WpfApp1.Properties.Resources.resources


+ 0 - 0
WpfApp1/obj/Debug/WpfApp1.csproj.CopyComplete


+ 1 - 0
WpfApp1/obj/Debug/WpfApp1.csproj.CoreCompileInputs.cache

@@ -0,0 +1 @@
+e98ac5a198096eaf52274b75c842404d59803544

+ 30 - 0
WpfApp1/obj/Debug/WpfApp1.csproj.FileListAbsolute.txt

@@ -0,0 +1,30 @@
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\bin\Debug\WpfApp1.exe.config
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\bin\Debug\WpfApp1.exe
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\bin\Debug\WpfApp1.pdb
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\bin\Debug\EntityFramework.dll
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\bin\Debug\EntityFramework.SqlServer.dll
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\bin\Debug\EntityFramework.xml
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\bin\Debug\EntityFramework.SqlServer.xml
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\bin\Debug\ru\EntityFramework.resources.dll
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\WpfApp1.csproj.AssemblyReference.cache
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\Windows\AdminWindow.g.cs
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\Windows\AuthorizationWindow.g.cs
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\Windows\CookWindow.g.cs
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\Windows\RegistrationWindow.g.cs
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\Windows\WaiterWindow.g.cs
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\App.g.cs
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\WpfApp1_Content.g.cs
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\WpfApp1_MarkupCompile.cache
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\WpfApp1_MarkupCompile.lref
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\Windows\AuthorizationWindow.baml
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\Windows\AdminWindow.baml
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\Windows\CookWindow.baml
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\Windows\RegistrationWindow.baml
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\Windows\WaiterWindow.baml
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\WpfApp1.g.resources
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\WpfApp1.Properties.Resources.resources
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\WpfApp1.csproj.GenerateResource.cache
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\WpfApp1.csproj.CoreCompileInputs.cache
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\WpfApp1.csproj.CopyComplete
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\WpfApp1.exe
+Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\obj\Debug\WpfApp1.pdb

BIN
WpfApp1/obj/Debug/WpfApp1.csproj.GenerateResource.cache


BIN
WpfApp1/obj/Debug/WpfApp1.exe


BIN
WpfApp1/obj/Debug/WpfApp1.g.resources


BIN
WpfApp1/obj/Debug/WpfApp1.pdb


+ 4 - 4
WpfApp1/obj/Debug/WpfApp1_MarkupCompile.cache

@@ -10,11 +10,11 @@ none
 false
 DEBUG;TRACE
 Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\App.xaml
-1-1513398544
+5-1174254825
 21108437758
-171696343217
+21-120493534
 182039011667
-Windows\AuthorizationWindow.xaml;
+Windows\AdminWindow.xaml;Windows\AuthorizationWindow.xaml;Windows\CookWindow.xaml;Windows\RegistrationWindow.xaml;Windows\WaiterWindow.xaml;
 
-True
+False
 

+ 3 - 3
WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.cache

@@ -10,11 +10,11 @@ none
 false
 DEBUG;TRACE
 Z:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\App.xaml
-4-1934276492
+5-1174254825
 21108437758
-20-126389389
+22-962852901
 182039011667
-Windows\AuthorizationWindow.xaml;Windows\CookWindow.xaml;Windows\RegistrationWindow.xaml;Windows\WaiterWindow.xaml;
+Windows\AdminWindow.xaml;Windows\AuthorizationWindow.xaml;Windows\CookWindow.xaml;Windows\RegistrationWindow.xaml;Windows\WaiterWindow.xaml;
 
 True
 

+ 1 - 1
WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.lref

@@ -1,4 +1,4 @@
 
 
-FZ:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\Windows\CookWindow.xaml;;
+FZ:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\Windows\AdminWindow.xaml;;
 

+ 4 - 0
WpfApp1/obj/Debug/WpfApp1_MarkupCompile.lref

@@ -1,4 +1,8 @@
 
 
+FZ:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\Windows\AdminWindow.xaml;;
 FZ:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\Windows\AuthorizationWindow.xaml;;
+FZ:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\Windows\CookWindow.xaml;;
+FZ:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\Windows\RegistrationWindow.xaml;;
+FZ:\Выпускные экзамены\Квалиф (подготовка)\WpfApp1\WpfApp1\Windows\WaiterWindow.xaml;;
 

+ 224 - 0
WpfApp1/obj/Debug/edmxResourcesToEmbed/ModelCafe.csdl

@@ -0,0 +1,224 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="CafeModel" 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="Test_Dish">
+    <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" />
+    <Property Name="Price" Type="Decimal" Precision="19" Scale="4" />
+    <Property Name="CookingTime" Type="Int32" />
+    <NavigationProperty Name="Test_DishList" Relationship="Self.FK_Test_DishList_Test_Dish" FromRole="Test_Dish" ToRole="Test_DishList" />
+  </EntityType>
+  <EntityType Name="Test_DishList">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="idDish" Type="Int32" Nullable="false" />
+    <Property Name="idOrder" Type="Int32" Nullable="false" />
+    <Property Name="CountDish" Type="Int32" />
+    <NavigationProperty Name="Test_Dish" Relationship="Self.FK_Test_DishList_Test_Dish" FromRole="Test_DishList" ToRole="Test_Dish" />
+    <NavigationProperty Name="Test_Order" Relationship="Self.FK_Test_DishList_Test_Order" FromRole="Test_DishList" ToRole="Test_Order" />
+  </EntityType>
+  <EntityType Name="Test_Order">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="NumberTable" Type="Int32" />
+    <Property Name="CountClient" Type="Int32" />
+    <Property Name="idStatus" Type="Int32" Nullable="false" />
+    <Property Name="Date" Type="DateTime" Nullable="false" Precision="0" />
+    <Property Name="idUser" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Test_DishList" Relationship="Self.FK_Test_DishList_Test_Order" FromRole="Test_Order" ToRole="Test_DishList" />
+    <NavigationProperty Name="Test_Status" Relationship="Self.FK_Test_Order_Test_Status" FromRole="Test_Order" ToRole="Test_Status" />
+    <NavigationProperty Name="Test_User" Relationship="Self.FK_Test_Order_Test_User" FromRole="Test_Order" ToRole="Test_User" />
+  </EntityType>
+  <EntityType Name="Test_Post">
+    <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="Test_User" Relationship="Self.FK_Test_User_Test_Post" FromRole="Test_Post" ToRole="Test_User" />
+  </EntityType>
+  <EntityType Name="Test_Shift">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Date" Type="DateTime" Precision="0" />
+    <NavigationProperty Name="Test_ShiftUser" Relationship="Self.FK_Test_ShiftUser_Test_Shift" FromRole="Test_Shift" ToRole="Test_ShiftUser" />
+  </EntityType>
+  <EntityType Name="Test_ShiftUser">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="idUser" Type="Int32" Nullable="false" />
+    <Property Name="idShift" Type="Int32" Nullable="false" />
+    <NavigationProperty Name="Test_Shift" Relationship="Self.FK_Test_ShiftUser_Test_Shift" FromRole="Test_ShiftUser" ToRole="Test_Shift" />
+    <NavigationProperty Name="Test_User" Relationship="Self.FK_Test_ShiftUser_Test_User" FromRole="Test_ShiftUser" ToRole="Test_User" />
+  </EntityType>
+  <EntityType Name="Test_Status">
+    <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="Test_Order" Relationship="Self.FK_Test_Order_Test_Status" FromRole="Test_Status" ToRole="Test_Order" />
+  </EntityType>
+  <EntityType Name="Test_User">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
+    <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="idPost" Type="Int32" />
+    <Property Name="Status" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="Test_Order" Relationship="Self.FK_Test_Order_Test_User" FromRole="Test_User" ToRole="Test_Order" />
+    <NavigationProperty Name="Test_Post" Relationship="Self.FK_Test_User_Test_Post" FromRole="Test_User" ToRole="Test_Post" />
+    <NavigationProperty Name="Test_ShiftUser" Relationship="Self.FK_Test_ShiftUser_Test_User" FromRole="Test_User" ToRole="Test_ShiftUser" />
+  </EntityType>
+  <Association Name="FK_Test_DishList_Test_Dish">
+    <End Role="Test_Dish" Type="Self.Test_Dish" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_DishList" Type="Self.Test_DishList" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_Dish">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_DishList">
+        <PropertyRef Name="idDish" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_DishList_Test_Order">
+    <End Role="Test_Order" Type="Self.Test_Order" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_DishList" Type="Self.Test_DishList" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_Order">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_DishList">
+        <PropertyRef Name="idOrder" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_Order_Test_Status">
+    <End Role="Test_Status" Type="Self.Test_Status" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_Order" Type="Self.Test_Order" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_Status">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_Order">
+        <PropertyRef Name="idStatus" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_Order_Test_User">
+    <End Role="Test_User" Type="Self.Test_User" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_Order" Type="Self.Test_Order" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_User">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_Order">
+        <PropertyRef Name="idUser" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_User_Test_Post">
+    <End Role="Test_Post" Type="Self.Test_Post" Multiplicity="0..1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_User" Type="Self.Test_User" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_Post">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_User">
+        <PropertyRef Name="idPost" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_ShiftUser_Test_Shift">
+    <End Role="Test_Shift" Type="Self.Test_Shift" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_ShiftUser" Type="Self.Test_ShiftUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_Shift">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_ShiftUser">
+        <PropertyRef Name="idShift" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_ShiftUser_Test_User">
+    <End Role="Test_User" Type="Self.Test_User" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_ShiftUser" Type="Self.Test_ShiftUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_User">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_ShiftUser">
+        <PropertyRef Name="idUser" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityContainer Name="CafeEntities" annotation:LazyLoadingEnabled="true">
+    <EntitySet Name="Test_Dish" EntityType="Self.Test_Dish" />
+    <EntitySet Name="Test_DishList" EntityType="Self.Test_DishList" />
+    <EntitySet Name="Test_Order" EntityType="Self.Test_Order" />
+    <EntitySet Name="Test_Post" EntityType="Self.Test_Post" />
+    <EntitySet Name="Test_Shift" EntityType="Self.Test_Shift" />
+    <EntitySet Name="Test_ShiftUser" EntityType="Self.Test_ShiftUser" />
+    <EntitySet Name="Test_Status" EntityType="Self.Test_Status" />
+    <EntitySet Name="Test_User" EntityType="Self.Test_User" />
+    <AssociationSet Name="FK_Test_DishList_Test_Dish" Association="Self.FK_Test_DishList_Test_Dish">
+      <End Role="Test_Dish" EntitySet="Test_Dish" />
+      <End Role="Test_DishList" EntitySet="Test_DishList" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_DishList_Test_Order" Association="Self.FK_Test_DishList_Test_Order">
+      <End Role="Test_Order" EntitySet="Test_Order" />
+      <End Role="Test_DishList" EntitySet="Test_DishList" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_Order_Test_Status" Association="Self.FK_Test_Order_Test_Status">
+      <End Role="Test_Status" EntitySet="Test_Status" />
+      <End Role="Test_Order" EntitySet="Test_Order" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_Order_Test_User" Association="Self.FK_Test_Order_Test_User">
+      <End Role="Test_User" EntitySet="Test_User" />
+      <End Role="Test_Order" EntitySet="Test_Order" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_User_Test_Post" Association="Self.FK_Test_User_Test_Post">
+      <End Role="Test_Post" EntitySet="Test_Post" />
+      <End Role="Test_User" EntitySet="Test_User" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_ShiftUser_Test_Shift" Association="Self.FK_Test_ShiftUser_Test_Shift">
+      <End Role="Test_Shift" EntitySet="Test_Shift" />
+      <End Role="Test_ShiftUser" EntitySet="Test_ShiftUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_ShiftUser_Test_User" Association="Self.FK_Test_ShiftUser_Test_User">
+      <End Role="Test_User" EntitySet="Test_User" />
+      <End Role="Test_ShiftUser" EntitySet="Test_ShiftUser" />
+    </AssociationSet>
+  </EntityContainer>
+</Schema>

+ 84 - 0
WpfApp1/obj/Debug/edmxResourcesToEmbed/ModelCafe.msl

@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
+  <EntityContainerMapping StorageEntityContainer="Хранилище CafeModelContainer" CdmEntityContainer="CafeEntities">
+    <EntitySetMapping Name="Test_Dish">
+      <EntityTypeMapping TypeName="CafeModel.Test_Dish">
+        <MappingFragment StoreEntitySet="Test_Dish">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Price" ColumnName="Price" />
+          <ScalarProperty Name="CookingTime" ColumnName="CookingTime" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Test_DishList">
+      <EntityTypeMapping TypeName="CafeModel.Test_DishList">
+        <MappingFragment StoreEntitySet="Test_DishList">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="idDish" ColumnName="idDish" />
+          <ScalarProperty Name="idOrder" ColumnName="idOrder" />
+          <ScalarProperty Name="CountDish" ColumnName="CountDish" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Test_Order">
+      <EntityTypeMapping TypeName="CafeModel.Test_Order">
+        <MappingFragment StoreEntitySet="Test_Order">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="NumberTable" ColumnName="NumberTable" />
+          <ScalarProperty Name="CountClient" ColumnName="CountClient" />
+          <ScalarProperty Name="idStatus" ColumnName="idStatus" />
+          <ScalarProperty Name="Date" ColumnName="Date" />
+          <ScalarProperty Name="idUser" ColumnName="idUser" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Test_Post">
+      <EntityTypeMapping TypeName="CafeModel.Test_Post">
+        <MappingFragment StoreEntitySet="Test_Post">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Test_Shift">
+      <EntityTypeMapping TypeName="CafeModel.Test_Shift">
+        <MappingFragment StoreEntitySet="Test_Shift">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="Date" ColumnName="Date" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Test_ShiftUser">
+      <EntityTypeMapping TypeName="CafeModel.Test_ShiftUser">
+        <MappingFragment StoreEntitySet="Test_ShiftUser">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="idUser" ColumnName="idUser" />
+          <ScalarProperty Name="idShift" ColumnName="idShift" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Test_Status">
+      <EntityTypeMapping TypeName="CafeModel.Test_Status">
+        <MappingFragment StoreEntitySet="Test_Status">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Test_User">
+      <EntityTypeMapping TypeName="CafeModel.Test_User">
+        <MappingFragment StoreEntitySet="Test_User">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="Login" ColumnName="Login" />
+          <ScalarProperty Name="Password" ColumnName="Password" />
+          <ScalarProperty Name="LastName" ColumnName="LastName" />
+          <ScalarProperty Name="FirstName" ColumnName="FirstName" />
+          <ScalarProperty Name="MiddleName" ColumnName="MiddleName" />
+          <ScalarProperty Name="idPost" ColumnName="idPost" />
+          <ScalarProperty Name="Status" ColumnName="Status" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+  </EntityContainerMapping>
+</Mapping>

+ 210 - 0
WpfApp1/obj/Debug/edmxResourcesToEmbed/ModelCafe.ssdl

@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="Хранилище CafeModel" 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="Test_Dish">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" />
+    <Property Name="Price" Type="money" />
+    <Property Name="CookingTime" Type="int" />
+  </EntityType>
+  <EntityType Name="Test_DishList">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="idDish" Type="int" Nullable="false" />
+    <Property Name="idOrder" Type="int" Nullable="false" />
+    <Property Name="CountDish" Type="int" />
+  </EntityType>
+  <EntityType Name="Test_Order">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="NumberTable" Type="int" />
+    <Property Name="CountClient" Type="int" />
+    <Property Name="idStatus" Type="int" Nullable="false" />
+    <Property Name="Date" Type="date" Nullable="false" />
+    <Property Name="idUser" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Test_Post">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" />
+  </EntityType>
+  <EntityType Name="Test_Shift">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Date" Type="date" />
+  </EntityType>
+  <EntityType Name="Test_ShiftUser">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="idUser" Type="int" Nullable="false" />
+    <Property Name="idShift" Type="int" Nullable="false" />
+  </EntityType>
+  <EntityType Name="Test_Status">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" />
+  </EntityType>
+  <EntityType Name="Test_User">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
+    <Property Name="Login" Type="nvarchar" MaxLength="50" />
+    <Property Name="Password" Type="nvarchar" MaxLength="50" />
+    <Property Name="LastName" Type="nvarchar" MaxLength="50" />
+    <Property Name="FirstName" Type="nvarchar" MaxLength="50" />
+    <Property Name="MiddleName" Type="nvarchar" MaxLength="50" />
+    <Property Name="idPost" Type="int" />
+    <Property Name="Status" Type="nvarchar" MaxLength="50" />
+  </EntityType>
+  <Association Name="FK_Test_DishList_Test_Dish">
+    <End Role="Test_Dish" Type="Self.Test_Dish" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_DishList" Type="Self.Test_DishList" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_Dish">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_DishList">
+        <PropertyRef Name="idDish" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_DishList_Test_Order">
+    <End Role="Test_Order" Type="Self.Test_Order" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_DishList" Type="Self.Test_DishList" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_Order">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_DishList">
+        <PropertyRef Name="idOrder" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_Order_Test_Status">
+    <End Role="Test_Status" Type="Self.Test_Status" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_Order" Type="Self.Test_Order" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_Status">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_Order">
+        <PropertyRef Name="idStatus" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_Order_Test_User">
+    <End Role="Test_User" Type="Self.Test_User" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_Order" Type="Self.Test_Order" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_User">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_Order">
+        <PropertyRef Name="idUser" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_ShiftUser_Test_Shift">
+    <End Role="Test_Shift" Type="Self.Test_Shift" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_ShiftUser" Type="Self.Test_ShiftUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_Shift">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_ShiftUser">
+        <PropertyRef Name="idShift" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_ShiftUser_Test_User">
+    <End Role="Test_User" Type="Self.Test_User" Multiplicity="1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_ShiftUser" Type="Self.Test_ShiftUser" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_User">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_ShiftUser">
+        <PropertyRef Name="idUser" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Test_User_Test_Post">
+    <End Role="Test_Post" Type="Self.Test_Post" Multiplicity="0..1">
+      <OnDelete Action="Cascade" />
+    </End>
+    <End Role="Test_User" Type="Self.Test_User" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Test_Post">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Test_User">
+        <PropertyRef Name="idPost" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <EntityContainer Name="Хранилище CafeModelContainer">
+    <EntitySet Name="Test_Dish" EntityType="Self.Test_Dish" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Test_DishList" EntityType="Self.Test_DishList" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Test_Order" EntityType="Self.Test_Order" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Test_Post" EntityType="Self.Test_Post" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Test_Shift" EntityType="Self.Test_Shift" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Test_ShiftUser" EntityType="Self.Test_ShiftUser" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Test_Status" EntityType="Self.Test_Status" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Test_User" EntityType="Self.Test_User" Schema="dbo" store:Type="Tables" />
+    <AssociationSet Name="FK_Test_DishList_Test_Dish" Association="Self.FK_Test_DishList_Test_Dish">
+      <End Role="Test_Dish" EntitySet="Test_Dish" />
+      <End Role="Test_DishList" EntitySet="Test_DishList" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_DishList_Test_Order" Association="Self.FK_Test_DishList_Test_Order">
+      <End Role="Test_Order" EntitySet="Test_Order" />
+      <End Role="Test_DishList" EntitySet="Test_DishList" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_Order_Test_Status" Association="Self.FK_Test_Order_Test_Status">
+      <End Role="Test_Status" EntitySet="Test_Status" />
+      <End Role="Test_Order" EntitySet="Test_Order" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_Order_Test_User" Association="Self.FK_Test_Order_Test_User">
+      <End Role="Test_User" EntitySet="Test_User" />
+      <End Role="Test_Order" EntitySet="Test_Order" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_ShiftUser_Test_Shift" Association="Self.FK_Test_ShiftUser_Test_Shift">
+      <End Role="Test_Shift" EntitySet="Test_Shift" />
+      <End Role="Test_ShiftUser" EntitySet="Test_ShiftUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_ShiftUser_Test_User" Association="Self.FK_Test_ShiftUser_Test_User">
+      <End Role="Test_User" EntitySet="Test_User" />
+      <End Role="Test_ShiftUser" EntitySet="Test_ShiftUser" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Test_User_Test_Post" Association="Self.FK_Test_User_Test_Post">
+      <End Role="Test_Post" EntitySet="Test_Post" />
+      <End Role="Test_User" EntitySet="Test_User" />
+    </AssociationSet>
+  </EntityContainer>
+</Schema>