24 lines
571 B
C#
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; }
|
|
}
|
|
}
|