export de la commande coiffure
This commit is contained in:
parent
5401959bd0
commit
c51f9f36cc
7 changed files with 55 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue