FlatFeeDiscount

This commit is contained in:
Paul Schneider 2017-03-02 13:25:20 +01:00
commit b2eaed3cf2
8 changed files with 39 additions and 27 deletions

View file

@ -11,7 +11,14 @@ namespace Yavsc.Models.Haircut
{
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
HairPrestation Prestation { get; set; }
[Required]
public long PrestationId { get; set; }
[ForeignKey("PrestationId")]
public virtual HairPrestation Prestation { get; set; }
[Required]
public Location Location { get; set; }