123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544 |
- <?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="Хранилище Ageev_ExamModel" 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" StoreGeneratedPattern="Identity" 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" />
- <Property Name="Description" Type="nvarchar(max)" />
- </EntityType>
- <EntityType Name="HotelComment">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" 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" StoreGeneratedPattern="Identity" 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="Tour">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <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="Price" Type="money" Nullable="false" />
- <Property Name="IsActual" Type="bit" Nullable="false" />
- </EntityType>
- <EntityType Name="Type">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" 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="Хранилище Ageev_ExamModelContainer">
- <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="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="Ageev_ExamModel" 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="Ageev_ExamEntities" annotation:LazyLoadingEnabled="true">
- <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(Ageev_ExamModel.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(Ageev_ExamModel.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" />
- <EntitySet Name="Country" EntityType="Ageev_ExamModel.Country" />
- <EntitySet Name="Hotel" EntityType="Ageev_ExamModel.Hotel" />
- <EntitySet Name="HotelComment" EntityType="Ageev_ExamModel.HotelComment" />
- <EntitySet Name="HotelImage" EntityType="Ageev_ExamModel.HotelImage" />
- <EntitySet Name="Tour" EntityType="Ageev_ExamModel.Tour" />
- <EntitySet Name="Type" EntityType="Ageev_ExamModel.Type" />
- <AssociationSet Name="FK_Hotel_Country" Association="Ageev_ExamModel.FK_Hotel_Country">
- <End Role="Country" EntitySet="Country" />
- <End Role="Hotel" EntitySet="Hotel" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelComment_Hotel" Association="Ageev_ExamModel.FK_HotelComment_Hotel">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="HotelComment" EntitySet="HotelComment" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelImage_Hotel" Association="Ageev_ExamModel.FK_HotelImage_Hotel">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="HotelImage" EntitySet="HotelImage" />
- </AssociationSet>
- <AssociationSet Name="HotelOfTour" Association="Ageev_ExamModel.HotelOfTour">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="Tour" EntitySet="Tour" />
- </AssociationSet>
- <AssociationSet Name="TypeOfTour" Association="Ageev_ExamModel.TypeOfTour">
- <End Role="Tour" EntitySet="Tour" />
- <End Role="Type" EntitySet="Type" />
- </AssociationSet>
- </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>
- <EntityType Name="Country">
- <Key>
- <PropertyRef Name="Code" />
- </Key>
- <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="Ageev_ExamModel.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" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="CountOfStars" Type="Int32" 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="Ageev_ExamModel.FK_Hotel_Country" FromRole="Hotel" ToRole="Country" />
- <NavigationProperty Name="HotelComment" Relationship="Ageev_ExamModel.FK_HotelComment_Hotel" FromRole="Hotel" ToRole="HotelComment" />
- <NavigationProperty Name="HotelImage" Relationship="Ageev_ExamModel.FK_HotelImage_Hotel" FromRole="Hotel" ToRole="HotelImage" />
- <NavigationProperty Name="Tour" Relationship="Ageev_ExamModel.HotelOfTour" FromRole="Hotel" ToRole="Tour" />
- </EntityType>
- <EntityType Name="HotelComment">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="HotelId" Type="Int32" 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="Ageev_ExamModel.FK_HotelComment_Hotel" FromRole="HotelComment" ToRole="Hotel" />
- </EntityType>
- <EntityType Name="HotelImage">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="HotelId" Type="Int32" Nullable="false" />
- <Property Name="ImageSource" Type="Binary" Nullable="false" MaxLength="Max" FixedLength="false" />
- <NavigationProperty Name="Hotel" Relationship="Ageev_ExamModel.FK_HotelImage_Hotel" FromRole="HotelImage" ToRole="Hotel" />
- </EntityType>
- <EntityType Name="Tour">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="TicketCount" Type="Int32" 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" Nullable="false" Precision="19" Scale="4" />
- <Property Name="IsActual" Type="Boolean" Nullable="false" />
- <NavigationProperty Name="Hotel" Relationship="Ageev_ExamModel.HotelOfTour" FromRole="Tour" ToRole="Hotel" />
- <NavigationProperty Name="Type" Relationship="Ageev_ExamModel.TypeOfTour" FromRole="Tour" ToRole="Type" />
- </EntityType>
- <EntityType Name="Type">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <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="Ageev_ExamModel.TypeOfTour" FromRole="Type" ToRole="Tour" />
- </EntityType>
- <Association Name="FK_Hotel_Country">
- <End Type="Ageev_ExamModel.Country" Role="Country" Multiplicity="1" />
- <End Type="Ageev_ExamModel.Hotel" Role="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 Type="Ageev_ExamModel.Hotel" Role="Hotel" Multiplicity="1" />
- <End Type="Ageev_ExamModel.HotelComment" Role="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 Type="Ageev_ExamModel.Hotel" Role="Hotel" Multiplicity="1" />
- <End Type="Ageev_ExamModel.HotelImage" Role="HotelImage" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Hotel">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="HotelImage">
- <PropertyRef Name="HotelId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="HotelOfTour">
- <End Type="Ageev_ExamModel.Hotel" Role="Hotel" Multiplicity="*" />
- <End Type="Ageev_ExamModel.Tour" Role="Tour" Multiplicity="*" />
- </Association>
- <Association Name="TypeOfTour">
- <End Type="Ageev_ExamModel.Tour" Role="Tour" Multiplicity="*" />
- <End Type="Ageev_ExamModel.Type" Role="Type" Multiplicity="*" />
- </Association>
- </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="Хранилище Ageev_ExamModelContainer" CdmEntityContainer="Ageev_ExamEntities">
- <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище Ageev_ExamModel.sp_alterdiagram" />
- <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище Ageev_ExamModel.sp_creatediagram" />
- <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище Ageev_ExamModel.sp_dropdiagram" />
- <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище Ageev_ExamModel.sp_helpdiagramdefinition">
- <ResultMapping>
- <ComplexTypeMapping TypeName="Ageev_ExamModel.sp_helpdiagramdefinition_Result">
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="definition" ColumnName="definition" />
- </ComplexTypeMapping>
- </ResultMapping>
- </FunctionImportMapping>
- <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище Ageev_ExamModel.sp_helpdiagrams">
- <ResultMapping>
- <ComplexTypeMapping TypeName="Ageev_ExamModel.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="Хранилище Ageev_ExamModel.sp_renamediagram" />
- <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище Ageev_ExamModel.sp_upgraddiagrams" />
- <EntitySetMapping Name="Country">
- <EntityTypeMapping TypeName="Ageev_ExamModel.Country">
- <MappingFragment StoreEntitySet="Country">
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Code" ColumnName="Code" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Hotel">
- <EntityTypeMapping TypeName="Ageev_ExamModel.Hotel">
- <MappingFragment StoreEntitySet="Hotel">
- <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="Ageev_ExamModel.HotelComment">
- <MappingFragment StoreEntitySet="HotelComment">
- <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="Ageev_ExamModel.HotelImage">
- <MappingFragment StoreEntitySet="HotelImage">
- <ScalarProperty Name="ImageSource" ColumnName="ImageSource" />
- <ScalarProperty Name="HotelId" ColumnName="HotelId" />
- <ScalarProperty Name="Id" ColumnName="Id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Tour">
- <EntityTypeMapping TypeName="Ageev_ExamModel.Tour">
- <MappingFragment StoreEntitySet="Tour">
- <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="Ageev_ExamModel.Type">
- <MappingFragment StoreEntitySet="Type">
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Id" ColumnName="Id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <AssociationSetMapping Name="HotelOfTour" TypeName="Ageev_ExamModel.HotelOfTour" StoreEntitySet="HotelOfTour">
- <EndProperty Name="Tour">
- <ScalarProperty Name="Id" ColumnName="TourId" />
- </EndProperty>
- <EndProperty Name="Hotel">
- <ScalarProperty Name="Id" ColumnName="HotelId" />
- </EndProperty>
- </AssociationSetMapping>
- <AssociationSetMapping Name="TypeOfTour" TypeName="Ageev_ExamModel.TypeOfTour" StoreEntitySet="TypeOfTour">
- <EndProperty Name="Type">
- <ScalarProperty Name="Id" ColumnName="TypeId" />
- </EndProperty>
- <EndProperty Name="Tour">
- <ScalarProperty Name="Id" ColumnName="TourId" />
- </EndProperty>
- </AssociationSetMapping>
- </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>
|