Y2S1-Web_Apps_and_Services/ThAmCo.Venues/Data/Venue.cs

26 lines
586 B
C#
Raw Permalink Normal View History

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