123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <?xml version="1.0" encoding="utf-8"?>
- <Schema Namespace="Хранилище TourGrigorenkoModel" 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" />
- </EntityType>
- <EntityType Name="HotelComment">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" Nullable="false" />
- <Property Name="HotelId" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Text" Type="nvarchar(max)" Nullable="false" />
- <Property Name="Author" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="CreationDate" Type="datetime" Nullable="false" />
- </EntityType>
- <EntityType Name="HotelImage">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" Nullable="false" />
- <Property Name="HotelId" Type="int" StoreGeneratedPattern="Identity" 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" StoreGeneratedPattern="Identity" Nullable="false" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="principal_id" Type="int" Nullable="false" />
- <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="version" Type="int" />
- <Property Name="definition" Type="varbinary(max)" />
- </EntityType>
- <EntityType Name="Tour">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" Nullable="false" />
- <Property Name="TicketCount" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="Description" Type="nvarchar(max)" />
- <Property Name="ImagePrewiev" 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" StoreGeneratedPattern="Identity" 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>
- <EntityContainer Name="Хранилище TourGrigorenkoModelContainer">
- <EntitySet Name="Country" EntityType="Self.Country" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Hotel" EntityType="Self.Hotel" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="HotelComment" EntityType="Self.HotelComment" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="HotelImage" EntityType="Self.HotelImage" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="HotelOfTour" EntityType="Self.HotelOfTour" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Tour" EntityType="Self.Tour" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Type" EntityType="Self.Type" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="TypeOfTour" EntityType="Self.TypeOfTour" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Hotel_Country" Association="Self.FK_Hotel_Country">
- <End Role="Country" EntitySet="Country" />
- <End Role="Hotel" EntitySet="Hotel" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelComment_Hotel" Association="Self.FK_HotelComment_Hotel">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="HotelComment" EntitySet="HotelComment" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelImage_Hotel" Association="Self.FK_HotelImage_Hotel">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="HotelImage" EntitySet="HotelImage" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelOfTour_Hotel" Association="Self.FK_HotelOfTour_Hotel">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="HotelOfTour" EntitySet="HotelOfTour" />
- </AssociationSet>
- <AssociationSet Name="FK_HotelOfTour_Tour" Association="Self.FK_HotelOfTour_Tour">
- <End Role="Tour" EntitySet="Tour" />
- <End Role="HotelOfTour" EntitySet="HotelOfTour" />
- </AssociationSet>
- <AssociationSet Name="FK_TypeOfTour_Tour" Association="Self.FK_TypeOfTour_Tour">
- <End Role="Tour" EntitySet="Tour" />
- <End Role="TypeOfTour" EntitySet="TypeOfTour" />
- </AssociationSet>
- <AssociationSet Name="FK_TypeOfTour_Type" Association="Self.FK_TypeOfTour_Type">
- <End Role="Type" EntitySet="Type" />
- <End Role="TypeOfTour" EntitySet="TypeOfTour" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
|