//------------------------------------------------------------------------------
//
// Этот код создан по шаблону.
//
// Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
// Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
//
//------------------------------------------------------------------------------
namespace LR1_05._04
{
using System;
using System.Collections.Generic;
public partial class Hotel
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public Hotel()
{
this.HotelComments = new HashSet();
this.HotelImages = new HashSet();
this.Tours = new HashSet();
}
public int Id { get; set; }
public string Name { get; set; }
public int CountOfStars { get; set; }
public string CountryCode { get; set; }
public string Description { get; set; }
public virtual Country Country { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection HotelComments { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection HotelImages { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection Tours { get; set; }
}
}