123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- <?xml version="1.0" encoding="utf-8"?>
- <Schema Namespace="KudroTourModel" 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" />
- <NavigationProperty Name="Hotel" Relationship="Self.FK_Hotel_Country" FromRole="Country" ToRole="Hotel" />
- </EntityType>
- <EntityType Name="Hotel">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" />
- <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" />
- <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" />
- <Property Name="Hotelid" Type="Int32" Nullable="false" />
- <Property Name="Text" Type="String" MaxLength="100" 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" />
- <Property Name="Hotelid" Type="Int32" />
- <Property Name="ImageSource" Type="Binary" MaxLength="Max" FixedLength="false" />
- <NavigationProperty Name="Hotel" Relationship="Self.FK_Hotelimage_Hotel" FromRole="Hotelimage" ToRole="Hotel" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="principal_id" Type="Int32" Nullable="false" />
- <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="version" Type="Int32" />
- <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
- </EntityType>
- <EntityType Name="Tour">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" />
- <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" />
- <NavigationProperty Name="Hotel" Relationship="Self.HotelOfTour" FromRole="Tour" ToRole="Hotel" />
- <NavigationProperty Name="Type" Relationship="Self.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" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Tour" Relationship="Self.TypeOfTour" FromRole="Type" ToRole="Tour" />
- </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="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="HotelOfTour">
- <End Role="Hotel" Type="Self.Hotel" Multiplicity="*" />
- <End Role="Tour" Type="Self.Tour" Multiplicity="*" />
- </Association>
- <Association Name="TypeOfTour">
- <End Role="Tour" Type="Self.Tour" Multiplicity="*" />
- <End Role="Type" Type="Self.Type" Multiplicity="*" />
- </Association>
- <EntityContainer Name="KudroTourEntities1" 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="sysdiagrams" EntityType="Self.sysdiagrams" />
- <EntitySet Name="Tour" EntityType="Self.Tour" />
- <EntitySet Name="Type" EntityType="Self.Type" />
- <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="HotelOfTour" Association="Self.HotelOfTour">
- <End Role="Hotel" EntitySet="Hotel" />
- <End Role="Tour" EntitySet="Tour" />
- </AssociationSet>
- <AssociationSet Name="TypeOfTour" Association="Self.TypeOfTour">
- <End Role="Tour" EntitySet="Tour" />
- <End Role="Type" EntitySet="Type" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
|