Browse Source

5заданние

Kuzmenco 2 years ago
parent
commit
46fed4529f

BIN
.vs/bobrovTounApp/v16/.suo


+ 18 - 1
AddEditPage.xaml

@@ -9,6 +9,23 @@
       Title="AddEditPage">
 
     <Grid>
-        <TextBlock Text="Hello" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="30"></TextBlock>
+        <Grid.ColumnDefinitions>
+            <ColumnDefinition Width="181*"/>
+            <ColumnDefinition Width="619*"/>
+        </Grid.ColumnDefinitions>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="106*"/>
+            <RowDefinition Height="86*"/>
+            <RowDefinition Height="119*"/>
+            <RowDefinition Height="139*"/>
+        </Grid.RowDefinitions>
+        <TextBlock Text="название"></TextBlock>
+        <TextBlock Text="колличество звезд"  Margin="0,0,10,0" Grid.Row="1"></TextBlock>
+        <TextBlock Text="страны" Grid.Row="2"></TextBlock>
+        <TextBlock Grid.Column="1"></TextBlock>
+        <TextBlock Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" Margin="82,0,222,0"></TextBlock>
+        <ComboBox Grid.Row="2" Grid.Column="1" x:Name="ComboCountries" DisplayMemberPath="Name" ></ComboBox>
+
+        <Button Content="сохранить" Grid.ColumnSpan="2" Grid.Row="3" Name="BtnSave" Click="BtnSave_Clik"></Button>
     </Grid>
 </Page>

+ 38 - 0
AddEditPage.xaml.cs

@@ -20,9 +20,47 @@ namespace bobrovTounApp
     /// </summary>
     public partial class AddEditPage : Page
     {
+        private Hotel _correntHotel = new Hotel();
         public AddEditPage()
         {
             InitializeComponent();
+            DataContext = _correntHotel;
+
+            StringBuilder errors = new StringBuilder();
+
+            if (string.IsNullOrWhiteSpace(_correntHotel.name))
+                errors.AppendLine("укажите название отеля");
+            if (_correntHotel.countOfStars < 1 || _correntHotel.countOfStars > 5)
+                errors.AppendLine("колличество звезд - число от 1 до 5");
+            if (_correntHotel.Country == null)
+                errors.AppendLine("выберите строку");
+
+            if (errors.Length > 0)
+            {
+                MessageBox.Show(errors.ToString());
+                return;
+            }
+            if (_correntHotel.id == 0) ;
+            try
+            {
+                
+                MessageBox.Show("Информация сохранена");
+            }
+            catch (Exception ex)
+            {
+                MessageBox.Show(ex.Message);
+
+            }
         }
+
+        private static void page_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
+        {
+            
+            {
+              
+            }
+        }
+
     }
+
 }

+ 16 - 7
HotelsPage.xaml

@@ -10,17 +10,26 @@
 
     <Grid HorizontalAlignment="Right" Width="800" Height="450" VerticalAlignment="Top" RenderTransformOrigin="0.488,0.495">
         <Grid.RowDefinitions>
-            <RowDefinition Height="17*"/>
-            <RowDefinition Height="399*"/>
+            <RowDefinition/>
+            <RowDefinition Height="385*"/>
+            <RowDefinition Height="30*"/>
             <RowDefinition Height="34*"/>
         </Grid.RowDefinitions>
         <Grid.ColumnDefinitions>
             <ColumnDefinition/>
         </Grid.ColumnDefinitions>
-        <DataGridColumnHeader Margin="0,0,0,379" Grid.RowSpan="2">
-            
-            
-        </DataGridColumnHeader>
-
+        <DataGridColumnHeader Margin="1,0,-1,10" Grid.RowSpan="4"/>
+        <DataGrid x:Name="DGridHotels">
+        </DataGrid>
+        
+        <TextBox HorizontalAlignment="Left" Height="23" Margin="456,5,0,0" TextWrapping="Wrap" Text="количество звезд" VerticalAlignment="Top" Width="120" Grid.Row="1"/>
+        <TextBox HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" Text="Страна " VerticalAlignment="Top" Width="120" Margin="621,6,0,0" Grid.Row="1"/>
+        <Button Content="редакт" Name="BtnEdit" Click="BtnEdit_Click"></Button>
+        <TextBox HorizontalAlignment="Left" Height="23" TextWrapping="Wrap" Text="название отеля" VerticalAlignment="Top" Width="120" Margin="10,14,0,0" Grid.Row="1"/>
+        <Button Content="добавить" HorizontalAlignment="Left" Height="30" VerticalAlignment="Top" Width="80" Margin="1,0,0,0" Grid.Row="2"/>
+ 
+        <Button Content="удалить" HorizontalAlignment="Left" Height="31" Grid.RowSpan="2" VerticalAlignment="Top" Width="79" Margin="711,384,0,0" Grid.Row="1" Click="Button_Click"/>
+          
     </Grid>
+    
 </Page>

+ 10 - 0
HotelsPage.xaml.cs

@@ -24,5 +24,15 @@ namespace bobrovTounApp
         {
             InitializeComponent();
         }
+
+        private void BtnEdit_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
+
+        private void Button_Click(object sender, RoutedEventArgs e)
+        {
+
+        }
     }
 }

+ 1 - 1
Model1.edmx.diagram

@@ -4,7 +4,7 @@
   <edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
     <!-- Diagram content (shape and connector positions) -->
     <edmx:Diagrams>
-      <Diagram DiagramId="7dde448db178491691e241e12c1edf0a" Name="Diagram1">
+      <Diagram DiagramId="7dde448db178491691e241e12c1edf0a" Name="Diagram1" ZoomLevel="64">
         <EntityTypeShape EntityType="BobrovTournModel.Country" Width="1.5" PointX="0.75" PointY="4.5" IsExpanded="true" />
         <EntityTypeShape EntityType="BobrovTournModel.Hotel" Width="1.5" PointX="3" PointY="4" IsExpanded="true" />
         <EntityTypeShape EntityType="BobrovTournModel.HotelComment" Width="1.5" PointX="5.25" PointY="1.25" IsExpanded="true" />

+ 12 - 0
ToursBaseEntities.cs

@@ -0,0 +1,12 @@
+using System;
+
+namespace bobrovTounApp
+{
+    internal class ToursBaseEntities
+    {
+        internal static object GetContext()
+        {
+            throw new NotImplementedException();
+        }
+    }
+}

BIN
bin/Debug/bobrovTounApp.exe


+ 1 - 0
bin/Debug/bobrovTounApp.exe.config

@@ -10,6 +10,7 @@
   <connectionStrings>
     <add name="BobrovTournEntities" connectionString="metadata=res://*/модель.csdl|res://*/модель.ssdl|res://*/модель.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=class31000;initial catalog=BobrovTourn;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
     <add name="AbdrakhmanovStudentEntities" connectionString="metadata=res://*/giagram.csdl|res://*/giagram.ssdl|res://*/giagram.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=class31000;initial catalog=AbdrakhmanovStudent;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
+    <add name="BobrovTournEntities1" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=class31000;initial catalog=BobrovTourn;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
   </connectionStrings>
   <entityFramework>
     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">

BIN
bin/Debug/bobrovTounApp.pdb


+ 1 - 0
bobrovTounApp.csproj

@@ -94,6 +94,7 @@
     <Compile Include="Tour.cs">
       <DependentUpon>Model1.tt</DependentUpon>
     </Compile>
+    <Compile Include="ToursBaseEntities.cs" />
     <Compile Include="type.cs">
       <DependentUpon>Model1.tt</DependentUpon>
     </Compile>

+ 31 - 0
obj/Debug/AddEditPage.g.i.cs

@@ -40,6 +40,22 @@ namespace bobrovTounApp {
     /// </summary>
     public partial class AddEditPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
         
+        
+        #line 27 "..\..\AddEditPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.ComboBox ComboCountries;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 29 "..\..\AddEditPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button BtnSave;
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
         
         /// <summary>
@@ -68,6 +84,21 @@ namespace bobrovTounApp {
         [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.ComboCountries = ((System.Windows.Controls.ComboBox)(target));
+            return;
+            case 2:
+            this.BtnSave = ((System.Windows.Controls.Button)(target));
+            
+            #line 29 "..\..\AddEditPage.xaml"
+            this.BtnSave.Click += new System.Windows.RoutedEventHandler(this.BtnSave_Clik);
+            
+            #line default
+            #line hidden
+            return;
+            }
             this._contentLoaded = true;
         }
     }

BIN
obj/Debug/HotelsPage.baml


+ 32 - 1
obj/Debug/HotelsPage.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\HotelsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "98B6BB9175BCC73875BE32B18B239FDC54137D6A334BD8DD85C0956A5C9EC456"
+#pragma checksum "..\..\HotelsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "EF21D80C24661DF7B8EAB0E81B70924E0B7D2021796A512EBC872073635247DA"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -40,6 +40,22 @@ namespace bobrovTounApp {
     /// </summary>
     public partial class HotelsPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
         
+        
+        #line 23 "..\..\HotelsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid DGridHotels;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 27 "..\..\HotelsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button BtnEdit;
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
         
         /// <summary>
@@ -68,6 +84,21 @@ namespace bobrovTounApp {
         [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.DGridHotels = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 2:
+            this.BtnEdit = ((System.Windows.Controls.Button)(target));
+            
+            #line 27 "..\..\HotelsPage.xaml"
+            this.BtnEdit.Click += new System.Windows.RoutedEventHandler(this.BtnEdit_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
             this._contentLoaded = true;
         }
     }

+ 40 - 1
obj/Debug/HotelsPage.g.i.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\HotelsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "98B6BB9175BCC73875BE32B18B239FDC54137D6A334BD8DD85C0956A5C9EC456"
+#pragma checksum "..\..\HotelsPage.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "EF21D80C24661DF7B8EAB0E81B70924E0B7D2021796A512EBC872073635247DA"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -40,6 +40,22 @@ namespace bobrovTounApp {
     /// </summary>
     public partial class HotelsPage : System.Windows.Controls.Page, System.Windows.Markup.IComponentConnector {
         
+        
+        #line 22 "..\..\HotelsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.DataGrid DGridHotels;
+        
+        #line default
+        #line hidden
+        
+        
+        #line 27 "..\..\HotelsPage.xaml"
+        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+        internal System.Windows.Controls.Button BtnEdit;
+        
+        #line default
+        #line hidden
+        
         private bool _contentLoaded;
         
         /// <summary>
@@ -68,6 +84,29 @@ namespace bobrovTounApp {
         [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.DGridHotels = ((System.Windows.Controls.DataGrid)(target));
+            return;
+            case 2:
+            this.BtnEdit = ((System.Windows.Controls.Button)(target));
+            
+            #line 27 "..\..\HotelsPage.xaml"
+            this.BtnEdit.Click += new System.Windows.RoutedEventHandler(this.BtnEdit_Click);
+            
+            #line default
+            #line hidden
+            return;
+            case 3:
+            
+            #line 31 "..\..\HotelsPage.xaml"
+            ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
+            
+            #line default
+            #line hidden
+            return;
+            }
             this._contentLoaded = true;
         }
     }

BIN
obj/Debug/MainWindow.baml


+ 7 - 1
obj/Debug/MainWindow.g.cs

@@ -1,4 +1,4 @@
-#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "A7120D920DE171AA874E8C9843FED39E8FAC58D3B74362CC0E517C380CDB39B1"
+#pragma checksum "..\..\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "ACE00F1F70734244B208015A6DE3DBF1E5B673A21ABBB59E276EA5B0569C1988"
 //------------------------------------------------------------------------------
 // <auto-generated>
 //     Этот код создан программой.
@@ -88,6 +88,12 @@ namespace bobrovTounApp {
             return;
             case 2:
             this.MainFrame = ((System.Windows.Controls.Frame)(target));
+            
+            #line 33 "..\..\MainWindow.xaml"
+            this.MainFrame.Navigated += new System.Windows.Navigation.NavigatedEventHandler(this.MainFrame_Navigated);
+            
+            #line default
+            #line hidden
             return;
             }
             this._contentLoaded = true;

+ 1 - 1
obj/Debug/MainWindow.g.i.cs

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

BIN
obj/Debug/TempPE/Model1.Designer.cs.dll


BIN
obj/Debug/TempPE/Model1.cs.dll


+ 1 - 1
obj/Debug/bobrovTounApp.csproj.CoreCompileInputs.cache

@@ -1 +1 @@
-07abed090257f3ce37ed6ee22d9e648cb1b3162f
+0fc67d3dc9ccd3d09e85635fa1fc7c2db6c88f5e

+ 1 - 0
obj/Debug/bobrovTounApp.csproj.FileListAbsolute.txt

@@ -42,3 +42,4 @@ C:\Users\user2\Desktop\бобров\прога\bobrovTounApp\obj\Debug\bobrovTou
 C:\Users\user2\Desktop\бобров\прога\bobrovTounApp\obj\Debug\bobrovTounApp.csproj.CopyComplete
 C:\Users\user2\Desktop\бобров\прога\bobrovTounApp\obj\Debug\bobrovTounApp.exe
 C:\Users\user2\Desktop\бобров\прога\bobrovTounApp\obj\Debug\bobrovTounApp.pdb
+C:\Users\user2\Desktop\бобров\прога\bobrovTounApp\obj\Debug\bobrovTounApp_Content.g.cs

BIN
obj/Debug/bobrovTounApp.exe


BIN
obj/Debug/bobrovTounApp.g.resources


BIN
obj/Debug/bobrovTounApp.pdb


+ 14 - 0
obj/Debug/bobrovTounApp_Content.g.cs

@@ -0,0 +1,14 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     Этот код создан программой.
+//     Исполняемая версия:4.0.30319.42000
+//
+//     Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
+//     повторной генерации кода.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("model1.context.tt")]
+[assembly: System.Windows.Resources.AssemblyAssociatedContentFileAttribute("model1.tt")]
+
+

+ 2 - 2
obj/Debug/bobrovTounApp_MarkupCompile.cache

@@ -11,8 +11,8 @@ false
 DEBUG;TRACE
 C:\Users\user2\Desktop\бобров\прога\bobrovTounApp\App.xaml
 3-1875146385
-
-71637203197
+21750853300
+19786812378
 19-650210546
 AddEditPage.xaml;HotelsPage.xaml;MainWindow.xaml;
 

+ 1 - 1
obj/Debug/bobrovTounApp_MarkupCompile.i.cache

@@ -12,7 +12,7 @@ DEBUG;TRACE
 C:\Users\user2\Desktop\бобров\прога\bobrovTounApp\App.xaml
 3-1875146385
 21750853300
-20-55546989
+21-1772863204
 19-650210546
 AddEditPage.xaml;HotelsPage.xaml;MainWindow.xaml;
 

+ 191 - 0
obj/Debug/edmxResourcesToEmbed/Model1.csdl

@@ -0,0 +1,191 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="BobrovTournModel" 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="Country">
+    <Key>
+      <PropertyRef Name="Code" />
+    </Key>
+    <Property Name="Code" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="Hotel" Relationship="Self.FK_Hotel_Country" FromRole="Country" ToRole="Hotel" />
+  </EntityType>
+  <EntityType Name="Hotel">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="Int32" Nullable="false" />
+    <Property Name="name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="countOfStars" Type="Int32" />
+    <Property Name="countryCode" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="Country" Relationship="Self.FK_Hotel_Country" FromRole="Hotel" ToRole="Country" />
+    <NavigationProperty Name="HotelComment" Relationship="Self.FK_HotelComment_Hotel" FromRole="Hotel" ToRole="HotelComment" />
+    <NavigationProperty Name="Hotelimage" Relationship="Self.FK_Hotelimage_Hotel" FromRole="Hotel" ToRole="Hotelimage" />
+    <NavigationProperty Name="Tour" Relationship="Self.hoteOftour" FromRole="Hotel" ToRole="Tour" />
+  </EntityType>
+  <EntityType Name="HotelComment">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="Int32" Nullable="false" />
+    <Property Name="Hotelid" Type="Int32" />
+    <Property Name="Text" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
+    <Property Name="Author" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="CreationDate" Type="DateTime" Precision="3" />
+    <NavigationProperty Name="Hotel" Relationship="Self.FK_HotelComment_Hotel" FromRole="HotelComment" ToRole="Hotel" />
+  </EntityType>
+  <EntityType Name="Hotelimage">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="Int32" Nullable="false" />
+    <Property Name="Hotelid" Type="Int32" />
+    <Property Name="ImageSource" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="Hotel" Relationship="Self.FK_Hotelimage_Hotel" FromRole="Hotelimage" ToRole="Hotel" />
+  </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>
+  <EntityType Name="Tour">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="Int32" Nullable="false" />
+    <Property Name="TicketCount" Type="Int32" />
+    <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
+    <Property Name="ImagePreview" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
+    <Property Name="Price" Type="Decimal" Precision="19" Scale="4" />
+    <Property Name="isActual" Type="Boolean" />
+    <NavigationProperty Name="Hotel" Relationship="Self.hoteOftour" FromRole="Tour" ToRole="Hotel" />
+    <NavigationProperty Name="type" Relationship="Self.typeOFtour" FromRole="Tour" ToRole="type" />
+  </EntityType>
+  <EntityType Name="type">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="Int32" Nullable="false" />
+    <Property Name="dezipbion" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
+    <Property Name="demcribion" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
+    <NavigationProperty Name="Tour" Relationship="Self.typeOFtour" FromRole="type" ToRole="Tour" />
+  </EntityType>
+  <Association Name="FK_Hotel_Country">
+    <End Role="Country" Type="Self.Country" Multiplicity="0..1" />
+    <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Country">
+        <PropertyRef Name="Code" />
+      </Principal>
+      <Dependent Role="Hotel">
+        <PropertyRef Name="name" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_HotelComment_Hotel">
+    <End Role="Hotel" Type="Self.Hotel" Multiplicity="0..1" />
+    <End Role="HotelComment" Type="Self.HotelComment" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Hotel">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="HotelComment">
+        <PropertyRef Name="Hotelid" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Hotelimage_Hotel">
+    <End Role="Hotel" Type="Self.Hotel" Multiplicity="0..1" />
+    <End Role="Hotelimage" Type="Self.Hotelimage" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Hotel">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Hotelimage">
+        <PropertyRef Name="Hotelid" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="hoteOftour">
+    <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
+    <End Role="Tour" Type="Self.Tour" Multiplicity="*" />
+  </Association>
+  <Association Name="typeOFtour">
+    <End Role="Tour" Type="Self.Tour" Multiplicity="*" />
+    <End Role="type" Type="Self.type" Multiplicity="*" />
+  </Association>
+  <EntityContainer Name="BobrovTournEntities1" annotation:LazyLoadingEnabled="true">
+    <EntitySet Name="Country" EntityType="Self.Country" />
+    <EntitySet Name="Hotel" EntityType="Self.Hotel" />
+    <EntitySet Name="HotelComment" EntityType="Self.HotelComment" />
+    <EntitySet Name="Hotelimage" EntityType="Self.Hotelimage" />
+    <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
+    <EntitySet Name="Tour" EntityType="Self.Tour" />
+    <EntitySet Name="type" EntityType="Self.type" />
+    <AssociationSet Name="FK_Hotel_Country" Association="Self.FK_Hotel_Country">
+      <End Role="Country" EntitySet="Country" />
+      <End Role="Hotel" EntitySet="Hotel" />
+    </AssociationSet>
+    <AssociationSet Name="FK_HotelComment_Hotel" Association="Self.FK_HotelComment_Hotel">
+      <End Role="Hotel" EntitySet="Hotel" />
+      <End Role="HotelComment" EntitySet="HotelComment" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Hotelimage_Hotel" Association="Self.FK_Hotelimage_Hotel">
+      <End Role="Hotel" EntitySet="Hotel" />
+      <End Role="Hotelimage" EntitySet="Hotelimage" />
+    </AssociationSet>
+    <AssociationSet Name="hoteOftour" Association="Self.hoteOftour">
+      <End Role="Hotel" EntitySet="Hotel" />
+      <End Role="Tour" EntitySet="Tour" />
+    </AssociationSet>
+    <AssociationSet Name="typeOFtour" Association="Self.typeOFtour">
+      <End Role="Tour" EntitySet="Tour" />
+      <End Role="type" EntitySet="type" />
+    </AssociationSet>
+    <FunctionImport Name="sp_alterdiagram">
+      <Parameter Name="diagramname" Mode="In" Type="String" />
+      <Parameter Name="owner_id" Mode="In" Type="Int32" />
+      <Parameter Name="version" Mode="In" Type="Int32" />
+      <Parameter Name="definition" Mode="In" Type="Binary" />
+    </FunctionImport>
+    <FunctionImport Name="sp_creatediagram">
+      <Parameter Name="diagramname" Mode="In" Type="String" />
+      <Parameter Name="owner_id" Mode="In" Type="Int32" />
+      <Parameter Name="version" Mode="In" Type="Int32" />
+      <Parameter Name="definition" Mode="In" Type="Binary" />
+    </FunctionImport>
+    <FunctionImport Name="sp_dropdiagram">
+      <Parameter Name="diagramname" Mode="In" Type="String" />
+      <Parameter Name="owner_id" Mode="In" Type="Int32" />
+    </FunctionImport>
+    <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(BobrovTournModel.sp_helpdiagramdefinition_Result)">
+      <Parameter Name="diagramname" Mode="In" Type="String" />
+      <Parameter Name="owner_id" Mode="In" Type="Int32" />
+    </FunctionImport>
+    <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(BobrovTournModel.sp_helpdiagrams_Result)">
+      <Parameter Name="diagramname" Mode="In" Type="String" />
+      <Parameter Name="owner_id" Mode="In" Type="Int32" />
+    </FunctionImport>
+    <FunctionImport Name="sp_renamediagram">
+      <Parameter Name="diagramname" Mode="In" Type="String" />
+      <Parameter Name="owner_id" Mode="In" Type="Int32" />
+      <Parameter Name="new_diagramname" Mode="In" Type="String" />
+    </FunctionImport>
+    <FunctionImport Name="sp_upgraddiagrams" />
+  </EntityContainer>
+  <ComplexType Name="sp_helpdiagramdefinition_Result">
+    <Property Type="Int32" Name="version" Nullable="true" />
+    <Property Type="Binary" Name="definition" Nullable="true" />
+  </ComplexType>
+  <ComplexType Name="sp_helpdiagrams_Result">
+    <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
+    <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
+    <Property Type="Int32" Name="ID" Nullable="false" />
+    <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
+    <Property Type="Int32" Name="OwnerID" Nullable="false" />
+  </ComplexType>
+</Schema>

+ 116 - 0
obj/Debug/edmxResourcesToEmbed/Model1.msl

@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
+  <EntityContainerMapping StorageEntityContainer="Хранилище BobrovTournModelContainer" CdmEntityContainer="BobrovTournEntities1">
+    <EntitySetMapping Name="Country">
+      <EntityTypeMapping TypeName="BobrovTournModel.Country">
+        <MappingFragment StoreEntitySet="Country">
+          <ScalarProperty Name="Code" ColumnName="Code" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Hotel">
+      <EntityTypeMapping TypeName="BobrovTournModel.Hotel">
+        <MappingFragment StoreEntitySet="Hotel">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="name" ColumnName="name" />
+          <ScalarProperty Name="countOfStars" ColumnName="countOfStars" />
+          <ScalarProperty Name="countryCode" ColumnName="countryCode" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="HotelComment">
+      <EntityTypeMapping TypeName="BobrovTournModel.HotelComment">
+        <MappingFragment StoreEntitySet="HotelComment">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="Hotelid" ColumnName="Hotelid" />
+          <ScalarProperty Name="Text" ColumnName="Text" />
+          <ScalarProperty Name="Author" ColumnName="Author" />
+          <ScalarProperty Name="CreationDate" ColumnName="CreationDate" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="Hotelimage">
+      <EntityTypeMapping TypeName="BobrovTournModel.Hotelimage">
+        <MappingFragment StoreEntitySet="Hotelimage">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="Hotelid" ColumnName="Hotelid" />
+          <ScalarProperty Name="ImageSource" ColumnName="ImageSource" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="sysdiagrams">
+      <EntityTypeMapping TypeName="BobrovTournModel.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="Tour">
+      <EntityTypeMapping TypeName="BobrovTournModel.Tour">
+        <MappingFragment StoreEntitySet="Tour">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="TicketCount" ColumnName="TicketCount" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="Description" ColumnName="Description" />
+          <ScalarProperty Name="ImagePreview" ColumnName="ImagePreview" />
+          <ScalarProperty Name="Price" ColumnName="Price" />
+          <ScalarProperty Name="isActual" ColumnName="isActual" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <EntitySetMapping Name="type">
+      <EntityTypeMapping TypeName="BobrovTournModel.type">
+        <MappingFragment StoreEntitySet="type">
+          <ScalarProperty Name="id" ColumnName="id" />
+          <ScalarProperty Name="dezipbion" ColumnName="dezipbion" />
+          <ScalarProperty Name="demcribion" ColumnName="demcribion" />
+        </MappingFragment>
+      </EntityTypeMapping>
+    </EntitySetMapping>
+    <AssociationSetMapping Name="hoteOftour" TypeName="BobrovTournModel.hoteOftour" StoreEntitySet="hoteOftour">
+      <EndProperty Name="Hotel">
+        <ScalarProperty Name="id" ColumnName="tound" />
+      </EndProperty>
+      <EndProperty Name="Tour">
+        <ScalarProperty Name="id" ColumnName="hoteld" />
+      </EndProperty>
+    </AssociationSetMapping>
+    <AssociationSetMapping Name="typeOFtour" TypeName="BobrovTournModel.typeOFtour" StoreEntitySet="typeOFtour">
+      <EndProperty Name="Tour">
+        <ScalarProperty Name="id" ColumnName="tould" />
+      </EndProperty>
+      <EndProperty Name="type">
+        <ScalarProperty Name="id" ColumnName="typeld" />
+      </EndProperty>
+    </AssociationSetMapping>
+    <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище BobrovTournModel.sp_alterdiagram" />
+    <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище BobrovTournModel.sp_creatediagram" />
+    <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище BobrovTournModel.sp_dropdiagram" />
+    <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище BobrovTournModel.sp_helpdiagramdefinition">
+      <ResultMapping>
+        <ComplexTypeMapping TypeName="BobrovTournModel.sp_helpdiagramdefinition_Result">
+          <ScalarProperty Name="version" ColumnName="version" />
+          <ScalarProperty Name="definition" ColumnName="definition" />
+        </ComplexTypeMapping>
+      </ResultMapping>
+    </FunctionImportMapping>
+    <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище BobrovTournModel.sp_helpdiagrams">
+      <ResultMapping>
+        <ComplexTypeMapping TypeName="BobrovTournModel.sp_helpdiagrams_Result">
+          <ScalarProperty Name="Database" ColumnName="Database" />
+          <ScalarProperty Name="Name" ColumnName="Name" />
+          <ScalarProperty Name="ID" ColumnName="ID" />
+          <ScalarProperty Name="Owner" ColumnName="Owner" />
+          <ScalarProperty Name="OwnerID" ColumnName="OwnerID" />
+        </ComplexTypeMapping>
+      </ResultMapping>
+    </FunctionImportMapping>
+    <FunctionImportMapping FunctionImportName="sp_renamediagram" FunctionName="Хранилище BobrovTournModel.sp_renamediagram" />
+    <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище BobrovTournModel.sp_upgraddiagrams" />
+  </EntityContainerMapping>
+</Mapping>

+ 237 - 0
obj/Debug/edmxResourcesToEmbed/Model1.ssdl

@@ -0,0 +1,237 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Schema Namespace="Хранилище BobrovTournModel" 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="Country">
+    <Key>
+      <PropertyRef Name="Code" />
+    </Key>
+    <Property Name="Code" Type="nvarchar" MaxLength="50" Nullable="false" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" />
+  </EntityType>
+  <EntityType Name="Hotel">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" Nullable="false" />
+    <Property Name="name" Type="nvarchar" MaxLength="50" />
+    <Property Name="countOfStars" Type="int" />
+    <Property Name="countryCode" Type="nvarchar" MaxLength="50" />
+  </EntityType>
+  <EntityType Name="HotelComment">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" Nullable="false" />
+    <Property Name="Hotelid" Type="int" />
+    <Property Name="Text" Type="nvarchar(max)" />
+    <Property Name="Author" Type="nvarchar" MaxLength="50" />
+    <Property Name="CreationDate" Type="datetime" />
+  </EntityType>
+  <EntityType Name="Hotelimage">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" Nullable="false" />
+    <Property Name="Hotelid" Type="int" />
+    <Property Name="ImageSource" Type="nvarchar(max)" />
+  </EntityType>
+  <EntityType Name="hoteOftour">
+    <Key>
+      <PropertyRef Name="hoteld" />
+      <PropertyRef Name="tound" />
+    </Key>
+    <Property Name="hoteld" Type="int" Nullable="false" />
+    <Property Name="tound" Type="int" Nullable="false" />
+  </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>
+  <EntityType Name="Tour">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" Nullable="false" />
+    <Property Name="TicketCount" Type="int" />
+    <Property Name="Name" Type="nvarchar" MaxLength="50" />
+    <Property Name="Description" Type="nvarchar(max)" />
+    <Property Name="ImagePreview" Type="nvarchar(max)" />
+    <Property Name="Price" Type="money" />
+    <Property Name="isActual" Type="bit" />
+  </EntityType>
+  <EntityType Name="type">
+    <Key>
+      <PropertyRef Name="id" />
+    </Key>
+    <Property Name="id" Type="int" Nullable="false" />
+    <Property Name="dezipbion" Type="nvarchar" MaxLength="50" />
+    <Property Name="demcribion" Type="nvarchar(max)" />
+  </EntityType>
+  <EntityType Name="typeOFtour">
+    <Key>
+      <PropertyRef Name="tould" />
+      <PropertyRef Name="typeld" />
+    </Key>
+    <Property Name="tould" Type="int" Nullable="false" />
+    <Property Name="typeld" Type="int" Nullable="false" />
+  </EntityType>
+  <Association Name="FK_Hotel_Country">
+    <End Role="Country" Type="Self.Country" Multiplicity="0..1" />
+    <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Country">
+        <PropertyRef Name="Code" />
+      </Principal>
+      <Dependent Role="Hotel">
+        <PropertyRef Name="name" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_HotelComment_Hotel">
+    <End Role="Hotel" Type="Self.Hotel" Multiplicity="0..1" />
+    <End Role="HotelComment" Type="Self.HotelComment" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Hotel">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="HotelComment">
+        <PropertyRef Name="Hotelid" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_Hotelimage_Hotel">
+    <End Role="Hotel" Type="Self.Hotel" Multiplicity="0..1" />
+    <End Role="Hotelimage" Type="Self.Hotelimage" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Hotel">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="Hotelimage">
+        <PropertyRef Name="Hotelid" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_hoteOftour_Hotel">
+    <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
+    <End Role="hoteOftour" Type="Self.hoteOftour" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Hotel">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="hoteOftour">
+        <PropertyRef Name="tound" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_hoteOftour_Tour">
+    <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
+    <End Role="hoteOftour" Type="Self.hoteOftour" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Tour">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="hoteOftour">
+        <PropertyRef Name="hoteld" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_typeOFtour_Tour">
+    <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
+    <End Role="typeOFtour" Type="Self.typeOFtour" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="Tour">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="typeOFtour">
+        <PropertyRef Name="tould" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Association Name="FK_typeOFtour_type">
+    <End Role="type" Type="Self.type" Multiplicity="1" />
+    <End Role="typeOFtour" Type="Self.typeOFtour" Multiplicity="*" />
+    <ReferentialConstraint>
+      <Principal Role="type">
+        <PropertyRef Name="id" />
+      </Principal>
+      <Dependent Role="typeOFtour">
+        <PropertyRef Name="typeld" />
+      </Dependent>
+    </ReferentialConstraint>
+  </Association>
+  <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
+  <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
+    <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
+    <Parameter Name="owner_id" Type="int" Mode="In" />
+    <Parameter Name="version" Type="int" Mode="In" />
+    <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
+  </Function>
+  <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
+    <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
+    <Parameter Name="owner_id" Type="int" Mode="In" />
+    <Parameter Name="version" Type="int" Mode="In" />
+    <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
+  </Function>
+  <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
+    <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
+    <Parameter Name="owner_id" Type="int" Mode="In" />
+  </Function>
+  <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
+    <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
+    <Parameter Name="owner_id" Type="int" Mode="In" />
+  </Function>
+  <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
+    <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
+    <Parameter Name="owner_id" Type="int" Mode="In" />
+  </Function>
+  <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
+    <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
+    <Parameter Name="owner_id" Type="int" Mode="In" />
+    <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
+  </Function>
+  <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
+  <EntityContainer Name="Хранилище BobrovTournModelContainer">
+    <EntitySet Name="Country" EntityType="Self.Country" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Hotel" EntityType="Self.Hotel" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="HotelComment" EntityType="Self.HotelComment" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Hotelimage" EntityType="Self.Hotelimage" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="hoteOftour" EntityType="Self.hoteOftour" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="Tour" EntityType="Self.Tour" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="type" EntityType="Self.type" Schema="dbo" store:Type="Tables" />
+    <EntitySet Name="typeOFtour" EntityType="Self.typeOFtour" Schema="dbo" store:Type="Tables" />
+    <AssociationSet Name="FK_Hotel_Country" Association="Self.FK_Hotel_Country">
+      <End Role="Country" EntitySet="Country" />
+      <End Role="Hotel" EntitySet="Hotel" />
+    </AssociationSet>
+    <AssociationSet Name="FK_HotelComment_Hotel" Association="Self.FK_HotelComment_Hotel">
+      <End Role="Hotel" EntitySet="Hotel" />
+      <End Role="HotelComment" EntitySet="HotelComment" />
+    </AssociationSet>
+    <AssociationSet Name="FK_Hotelimage_Hotel" Association="Self.FK_Hotelimage_Hotel">
+      <End Role="Hotel" EntitySet="Hotel" />
+      <End Role="Hotelimage" EntitySet="Hotelimage" />
+    </AssociationSet>
+    <AssociationSet Name="FK_hoteOftour_Hotel" Association="Self.FK_hoteOftour_Hotel">
+      <End Role="Hotel" EntitySet="Hotel" />
+      <End Role="hoteOftour" EntitySet="hoteOftour" />
+    </AssociationSet>
+    <AssociationSet Name="FK_hoteOftour_Tour" Association="Self.FK_hoteOftour_Tour">
+      <End Role="Tour" EntitySet="Tour" />
+      <End Role="hoteOftour" EntitySet="hoteOftour" />
+    </AssociationSet>
+    <AssociationSet Name="FK_typeOFtour_Tour" Association="Self.FK_typeOFtour_Tour">
+      <End Role="Tour" EntitySet="Tour" />
+      <End Role="typeOFtour" EntitySet="typeOFtour" />
+    </AssociationSet>
+    <AssociationSet Name="FK_typeOFtour_type" Association="Self.FK_typeOFtour_type">
+      <End Role="type" EntitySet="type" />
+      <End Role="typeOFtour" EntitySet="typeOFtour" />
+    </AssociationSet>
+  </EntityContainer>
+</Schema>