123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518 |
- <?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="Хранилище ToursModel" 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="Auth">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Login" Type="varchar" MaxLength="50" Nullable="false" />
- <Property Name="Password" Type="varchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <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" />
- <Property Name="TourType" Type="varchar(max)" />
- <Property Name="CodeCountry" Type="nchar" MaxLength="2" Nullable="false" />
- <Property Name="ToutImage" Type="varchar(max)" />
- </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_Tour_Country">
- <End Role="Country" Type="Self.Country" Multiplicity="1" />
- <End Role="Tour" Type="Self.Tour" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Country">
- <PropertyRef Name="Code" />
- </Principal>
- <Dependent Role="Tour">
- <PropertyRef Name="CodeCountry" />
- </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>
- <EntityContainer Name="Хранилище ToursModelContainer">
- <EntitySet Name="Auth" EntityType="Self.Auth" Schema="dbo" store:Type="Tables" />
- <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_Tour_Country" Association="Self.FK_Tour_Country">
- <End Role="Country" EntitySet="Country" />
- <End Role="Tour" EntitySet="Tour" />
- </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="ToursModel" 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="ToursEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Auth" EntityType="ToursModel.Auth" />
- <EntitySet Name="Country" EntityType="ToursModel.Country" />
- <EntitySet Name="Hotel" EntityType="ToursModel.Hotel" />
- <EntitySet Name="HotelComment" EntityType="ToursModel.HotelComment" />
- <EntitySet Name="HotelImage" EntityType="ToursModel.HotelImage" />
- <EntitySet Name="Tour" EntityType="ToursModel.Tour" />
- <EntitySet Name="Type" EntityType="ToursModel.Type" />
- <AssociationSet Name="FK_Hotel_Country" Association="ToursModel.FK_Hotel_Country">
- <End Role="Country" EntitySet="Country" />
- <End Role="Hotel" EntitySet="Hotel" />
- </AssociationSet>
- <AssociationSet Name="FK_Tour_Country" Association="ToursModel.FK_Tour_Country">
- <End Role="Country" EntitySet="Country" />
- <End Role="Tour" EntitySet="Tour" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelComment_Hotel" Association="ToursModel.FK_HotelComment_Hotel">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="HotelComment" EntitySet="HotelComment" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelImage_Hotel" Association="ToursModel.FK_HotelImage_Hotel">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="HotelImage" EntitySet="HotelImage" />
- </AssociationSet>
- <AssociationSet Name="HotelOfTour" Association="ToursModel.HotelOfTour">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="Tour" EntitySet="Tour" />
- </AssociationSet>
- <AssociationSet Name="TypeOfTour" Association="ToursModel.TypeOfTour">
- <End Role="Tour" EntitySet="Tour" />
- <End Role="Type" EntitySet="Type" />
- </AssociationSet>
- </EntityContainer>
- <EntityType Name="Auth">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
- <Property Name="Password" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
- </EntityType>
- <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="ToursModel.FK_Hotel_Country" FromRole="Country" ToRole="Hotel" />
- <NavigationProperty Name="Tour" Relationship="ToursModel.FK_Tour_Country" FromRole="Country" ToRole="Tour" />
- </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="ToursModel.FK_Hotel_Country" FromRole="Hotel" ToRole="Country" />
- <NavigationProperty Name="HotelComment" Relationship="ToursModel.FK_HotelComment_Hotel" FromRole="Hotel" ToRole="HotelComment" />
- <NavigationProperty Name="HotelImage" Relationship="ToursModel.FK_HotelImage_Hotel" FromRole="Hotel" ToRole="HotelImage" />
- <NavigationProperty Name="Tour" Relationship="ToursModel.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="ToursModel.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="ToursModel.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" />
- <Property Name="TourType" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <Property Name="CodeCountry" Type="String" Nullable="false" MaxLength="2" FixedLength="true" Unicode="true" />
- <Property Name="ToutImage" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
- <NavigationProperty Name="Country" Relationship="ToursModel.FK_Tour_Country" FromRole="Tour" ToRole="Country" />
- <NavigationProperty Name="Hotel" Relationship="ToursModel.HotelOfTour" FromRole="Tour" ToRole="Hotel" />
- <NavigationProperty Name="Type" Relationship="ToursModel.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="ToursModel.TypeOfTour" FromRole="Type" ToRole="Tour" />
- </EntityType>
- <Association Name="FK_Hotel_Country">
- <End Type="ToursModel.Country" Role="Country" Multiplicity="1" />
- <End Type="ToursModel.Hotel" Role="Hotel" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Country">
- <PropertyRef Name="Code" />
- </Principal>
- <Dependent Role="Hotel">
- <PropertyRef Name="CountryCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Tour_Country">
- <End Type="ToursModel.Country" Role="Country" Multiplicity="1" />
- <End Type="ToursModel.Tour" Role="Tour" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Country">
- <PropertyRef Name="Code" />
- </Principal>
- <Dependent Role="Tour">
- <PropertyRef Name="CodeCountry" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_HotelComment_Hotel">
- <End Type="ToursModel.Hotel" Role="Hotel" Multiplicity="1" />
- <End Type="ToursModel.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="ToursModel.Hotel" Role="Hotel" Multiplicity="1" />
- <End Type="ToursModel.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="ToursModel.Hotel" Role="Hotel" Multiplicity="*" />
- <End Type="ToursModel.Tour" Role="Tour" Multiplicity="*" />
- </Association>
- <Association Name="TypeOfTour">
- <End Type="ToursModel.Tour" Role="Tour" Multiplicity="*" />
- <End Type="ToursModel.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="Хранилище ToursModelContainer" CdmEntityContainer="ToursEntities">
- <EntitySetMapping Name="Auth">
- <EntityTypeMapping TypeName="ToursModel.Auth">
- <MappingFragment StoreEntitySet="Auth">
- <ScalarProperty Name="Password" ColumnName="Password" />
- <ScalarProperty Name="Login" ColumnName="Login" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Country">
- <EntityTypeMapping TypeName="ToursModel.Country">
- <MappingFragment StoreEntitySet="Country">
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="Code" ColumnName="Code" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Hotel">
- <EntityTypeMapping TypeName="ToursModel.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="ToursModel.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="ToursModel.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="ToursModel.Tour">
- <MappingFragment StoreEntitySet="Tour">
- <ScalarProperty Name="ToutImage" ColumnName="ToutImage" />
- <ScalarProperty Name="CodeCountry" ColumnName="CodeCountry" />
- <ScalarProperty Name="TourType" ColumnName="TourType" />
- <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="ToursModel.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="ToursModel.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="ToursModel.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>
|