123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429 |
- <?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="Хранилище dbDemo1Model" 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="ImagePath" Type="nvarchar(max)" />
- <Property Name="Price" Type="money" Nullable="false" />
- <Property Name="IsActual" Type="bit" Nullable="false" />
- <Property Name="CountryCode" Type="nchar" MaxLength="2" Nullable="false" />
- <Property Name="TypeTour" Type="nvarchar(max)" Nullable="false" />
- </EntityType>
- <EntityType Name="TypeTour">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Tour" Type="nvarchar(max)" 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="CountryCode" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище dbDemo1ModelContainer">
- <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="TypeTour" EntityType="Self.TypeTour" 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>
- </EntityContainer>
- </Schema></edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="dbDemo1Model" 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" />
- <NavigationProperty Name="Tour" Relationship="Self.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" 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" />
- <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" />
- </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" 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" 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" />
- </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" MaxLength="100" FixedLength="false" 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="Boolean" Nullable="false" />
- <Property Name="CountryCode" Type="String" MaxLength="2" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="TypeTour" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Country" Relationship="Self.FK_Tour_Country" FromRole="Tour" ToRole="Country" />
- <NavigationProperty Name="Hotel" Relationship="Self.HotelOfTour" FromRole="Tour" ToRole="Hotel" />
- <Property Name="ImagePath" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="TypeTour">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Tour" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" 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_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="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>
- <EntityContainer Name="dbDemo1Entities" 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="Tour" EntityType="Self.Tour" />
- <EntitySet Name="TypeTour" EntityType="Self.TypeTour" />
- <AssociationSet Name="FK_Hotel_Country" Association="Self.FK_Hotel_Country">
- <End Role="Country" EntitySet="Country" />
- <End Role="Hotel" EntitySet="Hotel" />
- </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_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>
- </EntityContainer>
- </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="Хранилище dbDemo1ModelContainer" CdmEntityContainer="dbDemo1Entities">
- <EntitySetMapping Name="Country">
- <EntityTypeMapping TypeName="dbDemo1Model.Country">
- <MappingFragment StoreEntitySet="Country">
- <ScalarProperty Name="Code" ColumnName="Code" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Hotel">
- <EntityTypeMapping TypeName="dbDemo1Model.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" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="HotelComment">
- <EntityTypeMapping TypeName="dbDemo1Model.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="dbDemo1Model.HotelImage">
- <MappingFragment StoreEntitySet="HotelImage">
- <ScalarProperty Name="Id" ColumnName="Id" />
- <ScalarProperty Name="HotelId" ColumnName="HotelId" />
- <ScalarProperty Name="ImageSource" ColumnName="ImageSource" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Tour">
- <EntityTypeMapping TypeName="dbDemo1Model.Tour">
- <MappingFragment StoreEntitySet="Tour">
- <ScalarProperty Name="ImagePath" ColumnName="ImagePath" />
- <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="CountryCode" ColumnName="CountryCode" />
- <ScalarProperty Name="TypeTour" ColumnName="TypeTour" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="TypeTour">
- <EntityTypeMapping TypeName="dbDemo1Model.TypeTour">
- <MappingFragment StoreEntitySet="TypeTour">
- <ScalarProperty Name="id" ColumnName="id" />
- <ScalarProperty Name="Tour" ColumnName="Tour" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <AssociationSetMapping Name="HotelOfTour" TypeName="dbDemo1Model.HotelOfTour" StoreEntitySet="HotelOfTour">
- <EndProperty Name="Hotel">
- <ScalarProperty Name="Id" ColumnName="HotelId" />
- </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>
|