Y2S1-Web_Apps_and_Services/ThAmCo.Events/Data/Event.cs

33 lines
706 B
C#
Raw Normal View History

2020-06-07 21:36:12 +00:00
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; }
}
}