export de la commande coiffure

This commit is contained in:
Paul Schneider 2017-03-23 00:44:27 +01:00
commit c51f9f36cc
7 changed files with 55 additions and 18 deletions

View file

@ -4,10 +4,11 @@ using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Billing;
using Yavsc.Models.Relationship;
using YavscLib.HairCut;
namespace Yavsc.Models.Haircut
{
public class HairCutQuery : NominativeServiceCommand
public class HairCutQuery : NominativeServiceCommand, IHairCutQuery
{
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
@ -18,7 +19,7 @@ namespace Yavsc.Models.Haircut
[ForeignKey("PrestationId")]
public virtual HairPrestation Prestation { get; set; }
[Required]
[Required][ForeignKey("LocationId")]
public Location Location { get; set; }
@ -27,5 +28,12 @@ namespace Yavsc.Models.Haircut
get;
set;
}
public long LocationId
{
get;
set;
}
}
}
}