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

40 lines
1,023 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;
2019-09-04 01:25:36 +01:00
using Yavsc.Attributes.Validation;
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>
2019-09-04 01:25:36 +01:00
[YaRequired(),Display(Name="EventDate")]
2016-06-14 03:37:57 +02:00
public DateTime EventDate { get; set; }
/// <summary>
/// Location identifier
/// </summary>
/// <returns></returns>
2019-09-04 01:25:36 +01:00
[YaRequired]
2016-06-14 03:37:57 +02:00
public long LocationId { get; set; }
/// <summary>
/// A Location for this event
/// </summary>
/// <returns></returns>
2019-09-04 01:25:36 +01:00
[YaRequired(ErrorMessage="SpecifyPlace"),Display(Name="Location"),ForeignKey("LocationId")]
2016-06-14 03:37:57 +02:00
public Location Location { get; set; }
}
2017-05-02 13:10:23 +02:00
}