|
@@ -0,0 +1,575 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
|
|
|
+ <!-- EF Runtime content -->
|
|
|
+ <edmx:Runtime>
|
|
|
+ <!-- SSDL content -->
|
|
|
+ <edmx:StorageModels>
|
|
|
+ <Schema Namespace="Хранилище Model" 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="nchar" MaxLength="2" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Hotel">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="CountOfStars" Type="int" Nullable="false" />
|
|
|
+ <Property Name="CountryCode" Type="nchar" MaxLength="2" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="HotelComment">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Hotelid" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Text" Type="nvarchar(max)" Nullable="false" />
|
|
|
+ <Property Name="Author" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="CreationDate" Type="datetime" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Hotelimage">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Hotelid" Type="int" Nullable="false" />
|
|
|
+ <Property Name="ImageSource" Type="varbinary(max)" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="HotelOfTour">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Hotelid" />
|
|
|
+ <PropertyRef Name="Tourid" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Hotelid" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Tourid" 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" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="nchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="Description" Type="nvarchar(max)" />
|
|
|
+ <Property Name="ImagePreview" Type="varbinary(max)" />
|
|
|
+ <Property Name="Price" Type="money" Nullable="false" />
|
|
|
+ <Property Name="isActual" Type="nchar" MaxLength="10" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="Type">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="id" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="id" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
+ <Property Name="Description" Type="nvarchar(max)" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="TypeOfTour">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="Tourid" />
|
|
|
+ <PropertyRef Name="Typeid" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="Tourid" Type="int" Nullable="false" />
|
|
|
+ <Property Name="Typeid" Type="int" Nullable="false" />
|
|
|
+ </EntityType>
|
|
|
+ <Association Name="FK_Hotel_Country">
|
|
|
+ <End Role="Country" Type="Self.Country" Multiplicity="1" />
|
|
|
+ <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Country">
|
|
|
+ <PropertyRef Name="Code" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Hotel">
|
|
|
+ <PropertyRef Name="CountryCode" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_HotelComment_Hotel">
|
|
|
+ <End Role="Hotel" Type="Self.Hotel" Multiplicity="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="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_HotelOfTour_Hotel">
|
|
|
+ <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
|
|
|
+ <End Role="HotelOfTour" Type="Self.HotelOfTour" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Hotel">
|
|
|
+ <PropertyRef Name="id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="HotelOfTour">
|
|
|
+ <PropertyRef Name="Hotelid" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_HotelOfTour_Tour">
|
|
|
+ <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
|
|
|
+ <End Role="HotelOfTour" Type="Self.HotelOfTour" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Tour">
|
|
|
+ <PropertyRef Name="id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="HotelOfTour">
|
|
|
+ <PropertyRef Name="Tourid" />
|
|
|
+ </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="Tourid" />
|
|
|
+ </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="Typeid" />
|
|
|
+ </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="Хранилище ModelContainer">
|
|
|
+ <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="HotelOfTour" EntityType="Self.HotelOfTour" 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_HotelOfTour_Hotel" Association="Self.FK_HotelOfTour_Hotel">
|
|
|
+ <End Role="Hotel" EntitySet="Hotel" />
|
|
|
+ <End Role="HotelOfTour" EntitySet="HotelOfTour" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_HotelOfTour_Tour" Association="Self.FK_HotelOfTour_Tour">
|
|
|
+ <End Role="Tour" EntitySet="Tour" />
|
|
|
+ <End Role="HotelOfTour" EntitySet="HotelOfTour" />
|
|
|
+ </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>
|
|
|
+ </edmx:StorageModels>
|
|
|
+ <!-- CSDL content -->
|
|
|
+ <edmx:ConceptualModels>
|
|
|
+ <Schema Namespace="Model" 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="2" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <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="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="CountOfStars" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="CountryCode" Type="String" MaxLength="2" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <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.HotelOfTour" 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" Nullable="false" />
|
|
|
+ <Property Name="Text" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Author" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="CreationDate" Type="DateTime" Nullable="false" 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" Nullable="false" />
|
|
|
+ <Property Name="ImageSource" Type="Binary" MaxLength="Max" FixedLength="false" Nullable="false" />
|
|
|
+ <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" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" MaxLength="100" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="ImagePreview" Type="Binary" MaxLength="Max" FixedLength="false" />
|
|
|
+ <Property Name="Price" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
|
|
|
+ <Property Name="isActual" Type="String" MaxLength="10" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Hotel" Relationship="Self.HotelOfTour" 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="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Description" 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="1" />
|
|
|
+ <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Country">
|
|
|
+ <PropertyRef Name="Code" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="Hotel">
|
|
|
+ <PropertyRef Name="CountryCode" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
+ </Association>
|
|
|
+ <Association Name="FK_HotelComment_Hotel">
|
|
|
+ <End Role="Hotel" Type="Self.Hotel" Multiplicity="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="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="HotelOfTour">
|
|
|
+ <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="Entities" 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="HotelOfTour" Association="Self.HotelOfTour">
|
|
|
+ <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(Model.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(Model.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>
|
|
|
+ </edmx:ConceptualModels>
|
|
|
+ <!-- C-S mapping content -->
|
|
|
+ <edmx:Mappings>
|
|
|
+ <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
|
|
+ <EntityContainerMapping StorageEntityContainer="Хранилище ModelContainer" CdmEntityContainer="Entities">
|
|
|
+ <EntitySetMapping Name="Country">
|
|
|
+ <EntityTypeMapping TypeName="Model.Country">
|
|
|
+ <MappingFragment StoreEntitySet="Country">
|
|
|
+ <ScalarProperty Name="Code" ColumnName="Code" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <EntitySetMapping Name="Hotel">
|
|
|
+ <EntityTypeMapping TypeName="Model.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="Model.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="Model.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="Model.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="Model.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="Model.Type">
|
|
|
+ <MappingFragment StoreEntitySet="Type">
|
|
|
+ <ScalarProperty Name="id" ColumnName="id" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Description" ColumnName="Description" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <AssociationSetMapping Name="HotelOfTour" TypeName="Model.HotelOfTour" StoreEntitySet="HotelOfTour">
|
|
|
+ <EndProperty Name="Hotel">
|
|
|
+ <ScalarProperty Name="id" ColumnName="Hotelid" />
|
|
|
+ </EndProperty>
|
|
|
+ <EndProperty Name="Tour">
|
|
|
+ <ScalarProperty Name="id" ColumnName="Tourid" />
|
|
|
+ </EndProperty>
|
|
|
+ </AssociationSetMapping>
|
|
|
+ <AssociationSetMapping Name="TypeOfTour" TypeName="Model.TypeOfTour" StoreEntitySet="TypeOfTour">
|
|
|
+ <EndProperty Name="Tour">
|
|
|
+ <ScalarProperty Name="id" ColumnName="Tourid" />
|
|
|
+ </EndProperty>
|
|
|
+ <EndProperty Name="Type">
|
|
|
+ <ScalarProperty Name="id" ColumnName="Typeid" />
|
|
|
+ </EndProperty>
|
|
|
+ </AssociationSetMapping>
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище Model.sp_alterdiagram" />
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище Model.sp_creatediagram" />
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище Model.sp_dropdiagram" />
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище Model.sp_helpdiagramdefinition">
|
|
|
+ <ResultMapping>
|
|
|
+ <ComplexTypeMapping TypeName="Model.sp_helpdiagramdefinition_Result">
|
|
|
+ <ScalarProperty Name="version" ColumnName="version" />
|
|
|
+ <ScalarProperty Name="definition" ColumnName="definition" />
|
|
|
+ </ComplexTypeMapping>
|
|
|
+ </ResultMapping>
|
|
|
+ </FunctionImportMapping>
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище Model.sp_helpdiagrams">
|
|
|
+ <ResultMapping>
|
|
|
+ <ComplexTypeMapping TypeName="Model.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="Хранилище Model.sp_renamediagram" />
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище Model.sp_upgraddiagrams" />
|
|
|
+ </EntityContainerMapping>
|
|
|
+ </Mapping>
|
|
|
+ </edmx:Mappings>
|
|
|
+ </edmx:Runtime>
|
|
|
+ <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|
|
|
+ <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
|
|
+ <Connection>
|
|
|
+ <DesignerInfoPropertySet>
|
|
|
+ <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
|
|
|
+ </DesignerInfoPropertySet>
|
|
|
+ </Connection>
|
|
|
+ <Options>
|
|
|
+ <DesignerInfoPropertySet>
|
|
|
+ <DesignerProperty Name="ValidateOnBuild" Value="true" />
|
|
|
+ <DesignerProperty Name="EnablePluralization" Value="false" />
|
|
|
+ <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
|
|
+ <DesignerProperty Name="UseLegacyProvider" Value="false" />
|
|
|
+ <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
|
|
|
+ </DesignerInfoPropertySet>
|
|
|
+ </Options>
|
|
|
+ <!-- Diagram content (shape and connector positions) -->
|
|
|
+ <Diagrams></Diagrams>
|
|
|
+ </Designer>
|
|
|
+</edmx:Edmx>
|