123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- <?xml version="1.0" encoding="utf-8"?>
- <Schema Namespace="Хранилище BobrovTournModel" 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="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="Hotel">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" Nullable="false" />
- <Property Name="name" Type="nvarchar" MaxLength="50" />
- <Property Name="countOfStars" Type="int" />
- <Property Name="countryCode" Type="nvarchar" MaxLength="50" />
- </EntityType>
- <EntityType Name="HotelComment">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" Nullable="false" />
- <Property Name="Hotelid" Type="int" />
- <Property Name="Text" Type="nvarchar(max)" />
- <Property Name="Author" Type="nvarchar" MaxLength="50" />
- <Property Name="CreationDate" Type="datetime" />
- </EntityType>
- <EntityType Name="Hotelimage">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" Nullable="false" />
- <Property Name="Hotelid" Type="int" />
- <Property Name="ImageSource" Type="nvarchar(max)" />
- </EntityType>
- <EntityType Name="hoteOftour">
- <Key>
- <PropertyRef Name="hoteld" />
- <PropertyRef Name="tound" />
- </Key>
- <Property Name="hoteld" Type="int" Nullable="false" />
- <Property Name="tound" Type="int" 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" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" />
- <Property Name="Description" Type="nvarchar(max)" />
- <Property Name="ImagePreview" Type="nvarchar(max)" />
- <Property Name="Price" Type="money" />
- <Property Name="isActual" Type="bit" />
- </EntityType>
- <EntityType Name="type">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" Nullable="false" />
- <Property Name="dezipbion" Type="nvarchar" MaxLength="50" />
- <Property Name="demcribion" Type="nvarchar(max)" />
- </EntityType>
- <EntityType Name="typeOFtour">
- <Key>
- <PropertyRef Name="tould" />
- <PropertyRef Name="typeld" />
- </Key>
- <Property Name="tould" Type="int" Nullable="false" />
- <Property Name="typeld" Type="int" Nullable="false" />
- </EntityType>
- <Association Name="FK_Hotel_Country">
- <End Role="Country" Type="Self.Country" Multiplicity="0..1" />
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Country">
- <PropertyRef Name="Code" />
- </Principal>
- <Dependent Role="Hotel">
- <PropertyRef Name="name" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_HotelComment_Hotel">
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="0..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="0..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_hoteOftour_Hotel">
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="1" />
- <End Role="hoteOftour" Type="Self.hoteOftour" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Hotel">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="hoteOftour">
- <PropertyRef Name="tound" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_hoteOftour_Tour">
- <End Role="Tour" Type="Self.Tour" Multiplicity="1" />
- <End Role="hoteOftour" Type="Self.hoteOftour" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Tour">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="hoteOftour">
- <PropertyRef Name="hoteld" />
- </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="tould" />
- </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="typeld" />
- </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="Хранилище BobrovTournModelContainer">
- <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="hoteOftour" EntityType="Self.hoteOftour" 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_hoteOftour_Hotel" Association="Self.FK_hoteOftour_Hotel">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="hoteOftour" EntitySet="hoteOftour" />
- </AssociationSet>
- <AssociationSet Name="FK_hoteOftour_Tour" Association="Self.FK_hoteOftour_Tour">
- <End Role="Tour" EntitySet="Tour" />
- <End Role="hoteOftour" EntitySet="hoteOftour" />
- </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>
|