|
@@ -4,7 +4,7 @@
|
|
|
<edmx:Runtime>
|
|
|
<!-- SSDL content -->
|
|
|
<edmx:StorageModels>
|
|
|
- <Schema Namespace="Хранилище EP3" 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">
|
|
|
+ <Schema Namespace="Хранилище hotels15Model" 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" />
|
|
@@ -66,7 +66,7 @@
|
|
|
<Property Name="TicketCount" Type="int" Nullable="false" />
|
|
|
<Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
|
|
|
<Property Name="Description" Type="nvarchar(max)" />
|
|
|
- <Property Name="ImagePreview" Type="varbinary(max)" />
|
|
|
+ <Property Name="ImagePreview" Type="nvarchar(max)" />
|
|
|
<Property Name="Price" Type="money" Nullable="false" />
|
|
|
<Property Name="IsActual" Type="bit" Nullable="false" />
|
|
|
</EntityType>
|
|
@@ -80,9 +80,9 @@
|
|
|
</EntityType>
|
|
|
<EntityType Name="TypeOfTour">
|
|
|
<Key>
|
|
|
- <PropertyRef Name="TourId" />
|
|
|
- <PropertyRef Name="TypeId" />
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
</Key>
|
|
|
+ <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
<Property Name="TourId" Type="int" Nullable="false" />
|
|
|
<Property Name="TypeId" Type="int" Nullable="false" />
|
|
|
</EntityType>
|
|
@@ -146,7 +146,7 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
- <Association Name="FK_TypeOfTour_Tour">
|
|
|
+ <Association Name="FK_TypeOfTour_Tour1">
|
|
|
<End Role="Tour" Type="Self.Tour" Multiplicity="1" />
|
|
|
<End Role="TypeOfTour" Type="Self.TypeOfTour" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
@@ -170,7 +170,38 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
- <EntityContainer Name="Хранилище EP3Container">
|
|
|
+ <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="Хранилище hotels15ModelContainer">
|
|
|
<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" />
|
|
@@ -200,7 +231,7 @@
|
|
|
<End Role="Tour" EntitySet="Tour" />
|
|
|
<End Role="HotelOfTour" EntitySet="HotelOfTour" />
|
|
|
</AssociationSet>
|
|
|
- <AssociationSet Name="FK_TypeOfTour_Tour" Association="Self.FK_TypeOfTour_Tour">
|
|
|
+ <AssociationSet Name="FK_TypeOfTour_Tour1" Association="Self.FK_TypeOfTour_Tour1">
|
|
|
<End Role="Tour" EntitySet="Tour" />
|
|
|
<End Role="TypeOfTour" EntitySet="TypeOfTour" />
|
|
|
</AssociationSet>
|
|
@@ -209,32 +240,95 @@
|
|
|
<End Role="TypeOfTour" EntitySet="TypeOfTour" />
|
|
|
</AssociationSet>
|
|
|
</EntityContainer>
|
|
|
- </Schema>
|
|
|
- </edmx:StorageModels>
|
|
|
+ </Schema></edmx:StorageModels>
|
|
|
<!-- CSDL content -->
|
|
|
<edmx:ConceptualModels>
|
|
|
- <Schema Namespace="EP3" 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">
|
|
|
+ <Schema Namespace="hotels15Model" 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">
|
|
|
+ <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Country" EntityType="hotels15Model.Country" />
|
|
|
+ <EntitySet Name="Hotel" EntityType="hotels15Model.Hotel" />
|
|
|
+ <EntitySet Name="HotelComment" EntityType="hotels15Model.HotelComment" />
|
|
|
+ <EntitySet Name="HotelImage" EntityType="hotels15Model.HotelImage" />
|
|
|
+ <EntitySet Name="sysdiagrams" EntityType="hotels15Model.sysdiagrams" />
|
|
|
+ <EntitySet Name="Tour" EntityType="hotels15Model.Tour" />
|
|
|
+ <EntitySet Name="Type" EntityType="hotels15Model.Type" />
|
|
|
+ <EntitySet Name="TypeOfTour" EntityType="hotels15Model.TypeOfTour" />
|
|
|
+ <AssociationSet Name="FK_Hotel_Country" Association="hotels15Model.FK_Hotel_Country">
|
|
|
+ <End Role="Country" EntitySet="Country" />
|
|
|
+ <End Role="Hotel" EntitySet="Hotel" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_HotelComment_Hotel" Association="hotels15Model.FK_HotelComment_Hotel">
|
|
|
+ <End Role="Hotel" EntitySet="Hotel" />
|
|
|
+ <End Role="HotelComment" EntitySet="HotelComment" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_HotelImage_Hotel" Association="hotels15Model.FK_HotelImage_Hotel">
|
|
|
+ <End Role="Hotel" EntitySet="Hotel" />
|
|
|
+ <End Role="HotelImage" EntitySet="HotelImage" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_TypeOfTour_Tour1" Association="hotels15Model.FK_TypeOfTour_Tour1">
|
|
|
+ <End Role="Tour" EntitySet="Tour" />
|
|
|
+ <End Role="TypeOfTour" EntitySet="TypeOfTour" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_TypeOfTour_Type" Association="hotels15Model.FK_TypeOfTour_Type">
|
|
|
+ <End Role="Type" EntitySet="Type" />
|
|
|
+ <End Role="TypeOfTour" EntitySet="TypeOfTour" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="HotelOfTour" Association="hotels15Model.HotelOfTour">
|
|
|
+ <End Role="Hotel" EntitySet="Hotel" />
|
|
|
+ <End Role="Tour" EntitySet="Tour" />
|
|
|
+ </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(hotels15Model.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(hotels15Model.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>
|
|
|
<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" />
|
|
|
+ <Property Name="Code" Type="String" Nullable="false" MaxLength="2" FixedLength="true" Unicode="true" />
|
|
|
+ <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
|
|
|
+ <NavigationProperty Name="Hotel" Relationship="hotels15Model.FK_Hotel_Country" FromRole="Country" ToRole="Hotel" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Hotel">
|
|
|
<Key>
|
|
|
<PropertyRef Name="Id" />
|
|
|
</Key>
|
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
- <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="CountOfStars" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="CountryCode" Type="String" MaxLength="2" FixedLength="true" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="CountryCode" Type="String" Nullable="false" MaxLength="2" FixedLength="true" Unicode="true" />
|
|
|
<Property Name="Description" Type="String" MaxLength="Max" 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.HotelOfTour" FromRole="Hotel" ToRole="Tour" />
|
|
|
+ <NavigationProperty Name="Country" Relationship="hotels15Model.FK_Hotel_Country" FromRole="Hotel" ToRole="Country" />
|
|
|
+ <NavigationProperty Name="HotelComment" Relationship="hotels15Model.FK_HotelComment_Hotel" FromRole="Hotel" ToRole="HotelComment" />
|
|
|
+ <NavigationProperty Name="HotelImage" Relationship="hotels15Model.FK_HotelImage_Hotel" FromRole="Hotel" ToRole="HotelImage" />
|
|
|
+ <NavigationProperty Name="Tour" Relationship="hotels15Model.HotelOfTour" FromRole="Hotel" ToRole="Tour" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="HotelComment">
|
|
|
<Key>
|
|
@@ -242,10 +336,10 @@
|
|
|
</Key>
|
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<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="Text" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Author" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="CreationDate" Type="DateTime" Nullable="false" Precision="3" />
|
|
|
- <NavigationProperty Name="Hotel" Relationship="Self.FK_HotelComment_Hotel" FromRole="HotelComment" ToRole="Hotel" />
|
|
|
+ <NavigationProperty Name="Hotel" Relationship="hotels15Model.FK_HotelComment_Hotel" FromRole="HotelComment" ToRole="Hotel" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="HotelImage">
|
|
|
<Key>
|
|
@@ -253,14 +347,14 @@
|
|
|
</Key>
|
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<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" />
|
|
|
+ <Property Name="ImageSource" Type="Binary" Nullable="false" MaxLength="Max" FixedLength="false" />
|
|
|
+ <NavigationProperty Name="Hotel" Relationship="hotels15Model.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="name" Type="String" Nullable="false" MaxLength="128" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="principal_id" Type="Int32" Nullable="false" />
|
|
|
<Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<Property Name="version" Type="Int32" />
|
|
@@ -272,26 +366,36 @@
|
|
|
</Key>
|
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
<Property Name="TicketCount" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
|
|
|
<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="ImagePreview" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="Price" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
|
|
|
<Property Name="IsActual" Type="Boolean" Nullable="false" />
|
|
|
- <NavigationProperty Name="Hotel" Relationship="Self.HotelOfTour" FromRole="Tour" ToRole="Hotel" />
|
|
|
- <NavigationProperty Name="Type" Relationship="Self.TypeOfTour" FromRole="Tour" ToRole="Type" />
|
|
|
+ <NavigationProperty Name="TypeOfTour" Relationship="hotels15Model.FK_TypeOfTour_Tour1" FromRole="Tour" ToRole="TypeOfTour" />
|
|
|
+ <NavigationProperty Name="Hotel" Relationship="hotels15Model.HotelOfTour" FromRole="Tour" ToRole="Hotel" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Type">
|
|
|
<Key>
|
|
|
<PropertyRef Name="Id" />
|
|
|
</Key>
|
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
- <Property Name="Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Name" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
|
|
- <NavigationProperty Name="Tour" Relationship="Self.TypeOfTour" FromRole="Type" ToRole="Tour" />
|
|
|
+ <NavigationProperty Name="TypeOfTour" Relationship="hotels15Model.FK_TypeOfTour_Type" FromRole="Type" ToRole="TypeOfTour" />
|
|
|
+ </EntityType>
|
|
|
+ <EntityType Name="TypeOfTour">
|
|
|
+ <Key>
|
|
|
+ <PropertyRef Name="ID" />
|
|
|
+ </Key>
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="TourId" Type="Int32" Nullable="false" />
|
|
|
+ <Property Name="TypeId" Type="Int32" Nullable="false" />
|
|
|
+ <NavigationProperty Name="Tour" Relationship="hotels15Model.FK_TypeOfTour_Tour1" FromRole="TypeOfTour" ToRole="Tour" />
|
|
|
+ <NavigationProperty Name="Type" Relationship="hotels15Model.FK_TypeOfTour_Type" FromRole="TypeOfTour" ToRole="Type" />
|
|
|
</EntityType>
|
|
|
<Association Name="FK_Hotel_Country">
|
|
|
- <End Role="Country" Type="Self.Country" Multiplicity="1" />
|
|
|
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
|
|
|
+ <End Type="hotels15Model.Country" Role="Country" Multiplicity="1" />
|
|
|
+ <End Type="hotels15Model.Hotel" Role="Hotel" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Country">
|
|
|
<PropertyRef Name="Code" />
|
|
@@ -302,8 +406,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_HotelComment_Hotel">
|
|
|
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
|
|
|
- <End Role="HotelComment" Type="Self.HotelComment" Multiplicity="*" />
|
|
|
+ <End Type="hotels15Model.Hotel" Role="Hotel" Multiplicity="1" />
|
|
|
+ <End Type="hotels15Model.HotelComment" Role="HotelComment" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Hotel">
|
|
|
<PropertyRef Name="Id" />
|
|
@@ -314,8 +418,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_HotelImage_Hotel">
|
|
|
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
|
|
|
- <End Role="HotelImage" Type="Self.HotelImage" Multiplicity="*" />
|
|
|
+ <End Type="hotels15Model.Hotel" Role="Hotel" Multiplicity="1" />
|
|
|
+ <End Type="hotels15Model.HotelImage" Role="HotelImage" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Hotel">
|
|
|
<PropertyRef Name="Id" />
|
|
@@ -325,137 +429,164 @@
|
|
|
</Dependent>
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
- <Association Name="HotelOfTour">
|
|
|
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
|
|
|
- <End Role="Tour" Type="Self.Tour" Multiplicity="*" />
|
|
|
+ <Association Name="FK_TypeOfTour_Tour1">
|
|
|
+ <End Type="hotels15Model.Tour" Role="Tour" Multiplicity="1" />
|
|
|
+ <End Type="hotels15Model.TypeOfTour" Role="TypeOfTour" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Tour">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="TypeOfTour">
|
|
|
+ <PropertyRef Name="TourId" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
</Association>
|
|
|
- <Association Name="TypeOfTour">
|
|
|
- <End Role="Tour" Type="Self.Tour" Multiplicity="*" />
|
|
|
- <End Role="Type" Type="Self.Type" Multiplicity="*" />
|
|
|
+ <Association Name="FK_TypeOfTour_Type">
|
|
|
+ <End Type="hotels15Model.Type" Role="Type" Multiplicity="1" />
|
|
|
+ <End Type="hotels15Model.TypeOfTour" Role="TypeOfTour" Multiplicity="*" />
|
|
|
+ <ReferentialConstraint>
|
|
|
+ <Principal Role="Type">
|
|
|
+ <PropertyRef Name="Id" />
|
|
|
+ </Principal>
|
|
|
+ <Dependent Role="TypeOfTour">
|
|
|
+ <PropertyRef Name="TypeId" />
|
|
|
+ </Dependent>
|
|
|
+ </ReferentialConstraint>
|
|
|
</Association>
|
|
|
- <EntityContainer Name="EP2" 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>
|
|
|
- </EntityContainer>
|
|
|
- </Schema>
|
|
|
+ <Association Name="HotelOfTour">
|
|
|
+ <End Type="hotels15Model.Hotel" Role="Hotel" Multiplicity="*" />
|
|
|
+ <End Type="hotels15Model.Tour" Role="Tour" Multiplicity="*" />
|
|
|
+ </Association>
|
|
|
+ <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="Хранилище EP3Container" CdmEntityContainer="EP2">
|
|
|
+ <EntityContainerMapping StorageEntityContainer="Хранилище hotels15ModelContainer" CdmEntityContainer="Entities">
|
|
|
<EntitySetMapping Name="Country">
|
|
|
- <EntityTypeMapping TypeName="EP3.Country">
|
|
|
+ <EntityTypeMapping TypeName="hotels15Model.Country">
|
|
|
<MappingFragment StoreEntitySet="Country">
|
|
|
- <ScalarProperty Name="Code" ColumnName="Code" />
|
|
|
<ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Code" ColumnName="Code" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Hotel">
|
|
|
- <EntityTypeMapping TypeName="EP3.Hotel">
|
|
|
+ <EntityTypeMapping TypeName="hotels15Model.Hotel">
|
|
|
<MappingFragment StoreEntitySet="Hotel">
|
|
|
- <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
- <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
- <ScalarProperty Name="CountOfStars" ColumnName="CountOfStars" />
|
|
|
- <ScalarProperty Name="CountryCode" ColumnName="CountryCode" />
|
|
|
<ScalarProperty Name="Description" ColumnName="Description" />
|
|
|
+ <ScalarProperty Name="CountryCode" ColumnName="CountryCode" />
|
|
|
+ <ScalarProperty Name="CountOfStars" ColumnName="CountOfStars" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="HotelComment">
|
|
|
- <EntityTypeMapping TypeName="EP3.HotelComment">
|
|
|
+ <EntityTypeMapping TypeName="hotels15Model.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" />
|
|
|
+ <ScalarProperty Name="Author" ColumnName="Author" />
|
|
|
+ <ScalarProperty Name="Text" ColumnName="Text" />
|
|
|
+ <ScalarProperty Name="HotelId" ColumnName="HotelId" />
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="HotelImage">
|
|
|
- <EntityTypeMapping TypeName="EP3.HotelImage">
|
|
|
+ <EntityTypeMapping TypeName="hotels15Model.HotelImage">
|
|
|
<MappingFragment StoreEntitySet="HotelImage">
|
|
|
- <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
- <ScalarProperty Name="HotelId" ColumnName="HotelId" />
|
|
|
<ScalarProperty Name="ImageSource" ColumnName="ImageSource" />
|
|
|
+ <ScalarProperty Name="HotelId" ColumnName="HotelId" />
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="sysdiagrams">
|
|
|
- <EntityTypeMapping TypeName="EP3.sysdiagrams">
|
|
|
+ <EntityTypeMapping TypeName="hotels15Model.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" />
|
|
|
+ <ScalarProperty Name="version" ColumnName="version" />
|
|
|
+ <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
|
|
|
+ <ScalarProperty Name="principal_id" ColumnName="principal_id" />
|
|
|
+ <ScalarProperty Name="name" ColumnName="name" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Tour">
|
|
|
- <EntityTypeMapping TypeName="EP3.Tour">
|
|
|
+ <EntityTypeMapping TypeName="hotels15Model.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" />
|
|
|
+ <ScalarProperty Name="Price" ColumnName="Price" />
|
|
|
+ <ScalarProperty Name="ImagePreview" ColumnName="ImagePreview" />
|
|
|
+ <ScalarProperty Name="Description" ColumnName="Description" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="TicketCount" ColumnName="TicketCount" />
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Type">
|
|
|
- <EntityTypeMapping TypeName="EP3.Type">
|
|
|
+ <EntityTypeMapping TypeName="hotels15Model.Type">
|
|
|
<MappingFragment StoreEntitySet="Type">
|
|
|
- <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
- <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
<ScalarProperty Name="Description" ColumnName="Description" />
|
|
|
+ <ScalarProperty Name="Name" ColumnName="Name" />
|
|
|
+ <ScalarProperty Name="Id" ColumnName="Id" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
- <AssociationSetMapping Name="HotelOfTour" TypeName="EP3.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="EP3.TypeOfTour" StoreEntitySet="TypeOfTour">
|
|
|
+ <EntitySetMapping Name="TypeOfTour">
|
|
|
+ <EntityTypeMapping TypeName="hotels15Model.TypeOfTour">
|
|
|
+ <MappingFragment StoreEntitySet="TypeOfTour">
|
|
|
+ <ScalarProperty Name="TypeId" ColumnName="TypeId" />
|
|
|
+ <ScalarProperty Name="TourId" ColumnName="TourId" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
+ </MappingFragment>
|
|
|
+ </EntityTypeMapping>
|
|
|
+ </EntitySetMapping>
|
|
|
+ <AssociationSetMapping Name="HotelOfTour" TypeName="hotels15Model.HotelOfTour" StoreEntitySet="HotelOfTour">
|
|
|
<EndProperty Name="Tour">
|
|
|
<ScalarProperty Name="Id" ColumnName="TourId" />
|
|
|
</EndProperty>
|
|
|
- <EndProperty Name="Type">
|
|
|
- <ScalarProperty Name="Id" ColumnName="TypeId" />
|
|
|
+ <EndProperty Name="Hotel">
|
|
|
+ <ScalarProperty Name="Id" ColumnName="HotelId" />
|
|
|
</EndProperty>
|
|
|
</AssociationSetMapping>
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище hotels15Model.sp_alterdiagram" />
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище hotels15Model.sp_creatediagram" />
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище hotels15Model.sp_dropdiagram" />
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище hotels15Model.sp_helpdiagramdefinition">
|
|
|
+ <ResultMapping>
|
|
|
+ <ComplexTypeMapping TypeName="hotels15Model.sp_helpdiagramdefinition_Result">
|
|
|
+ <ScalarProperty Name="version" ColumnName="version" />
|
|
|
+ <ScalarProperty Name="definition" ColumnName="definition" />
|
|
|
+ </ComplexTypeMapping>
|
|
|
+ </ResultMapping>
|
|
|
+ </FunctionImportMapping>
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище hotels15Model.sp_helpdiagrams">
|
|
|
+ <ResultMapping>
|
|
|
+ <ComplexTypeMapping TypeName="hotels15Model.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="Хранилище hotels15Model.sp_renamediagram" />
|
|
|
+ <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище hotels15Model.sp_upgraddiagrams" />
|
|
|
</EntityContainerMapping>
|
|
|
</Mapping>
|
|
|
</edmx:Mappings>
|