Y2S1-Web_Apps_and_Services/ThAmCo.Events/Data/Event.cs
2020-06-07 22:36:12 +01:00

33 lines
706 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace ThAmCo.Events.Data
{
public class Event
{
public int Id { get; set; }
[Required]
public string Title { get; set; }
public DateTime Date { get; set; }
public TimeSpan? Duration { get; set; }
[Required, MaxLength(3), MinLength(3)]
public string TypeId { get; set; }
public List<GuestBooking> Bookings { get; set; }
public string VenueReference { get; set; }
public int FoodReference { get; set; }
public List<Staffing> Staffings { get; set; }
public bool IsDeleted { get; set; }
}
}