using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Booking
{
///
/// Query, for a date, with a given perfomer, at this given place.
///
public class BookQuery : Command {
///
/// Event date
///
///
[Required(ErrorMessageResourceName="ChooseAnEventDate",
ErrorMessageResourceType=typeof(Resources.YavscLocalisation)),Display(Name="EventDate")]
public DateTime EventDate { get; set; }
///
/// Location identifier
///
///
[Required]
public long LocationId { get; set; }
///
/// A Location for this event
///
///
[Required(ErrorMessage="SpecifyPlace"),Display(Name="Location"),ForeignKey("LocationId")]
public Location Location { get; set; }
}
}