yavsc/Yavsc.Server/Models/Workflow/RendezVous.cs

39 lines
978 B
C#
Raw Normal View History

2016-06-14 03:37:57 +02:00
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Market;
2017-02-11 15:46:26 +01:00
namespace Yavsc.Models.Workflow
2016-06-14 03:37:57 +02:00
{
2017-01-19 12:59:49 +01:00
using Models.Relationship;
2017-05-02 13:10:23 +02:00
2016-06-14 03:37:57 +02:00
/// <summary>
/// A date, between two persons
/// </summary>
public class RendezVous: Service {
// Haut les mains.
/// <summary>
/// Event date
/// </summary>
/// <returns></returns>
[Required(),Display(Name="EventDate")]
public DateTime EventDate { get; set; }
/// <summary>
/// Location identifier
/// </summary>
/// <returns></returns>
[Required]
public long LocationId { get; set; }
/// <summary>
/// A Location for this event
/// </summary>
/// <returns></returns>
[Required(ErrorMessage="SpecifyPlace"),Display(Name="Location"),ForeignKey("LocationId")]
public Location Location { get; set; }
}
2017-05-02 13:10:23 +02:00
}