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

26 lines
586 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace ThAmCo.Venues.Data
{
public class Venue
{
[Key, MinLength(5), MaxLength(5)]
public string Code { get; set; }
[Required]
public string Name { get; set; }
[Required]
public string Description { get; set; }
[Range(1, Int32.MaxValue)]
public int Capacity { get; set; }
public List<Suitability> SuitableEventTypes { get; set; }
public List<Availability> AvailableDates { get; set; }
}
}