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

24 lines
571 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace ThAmCo.Venues.Data
{
public class Availability
{
[DataType(DataType.Date)]
public DateTime Date { get; set; }
public string VenueCode { get; set; }
[ForeignKey(nameof(VenueCode))]
public Venue Venue { get; set; }
[Range(0.0, Double.MaxValue)]
public double CostPerHour { get; set; }
public Reservation Reservation { get; set; }
}
}