yavsc/Yavsc.Server/Models/HairCut/HairMultiCutQuery.cs

50 lines
1.4 KiB
C#

9 years ago
using System;
using System.Collections.Generic;
9 years ago
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Billing;
using Yavsc.Models.Relationship;
using Yavsc.Billing;
9 years ago
namespace Yavsc.Models.Haircut
{
public class HairPrestationCollectionItem {
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
public long PrestationId { get; set; }
[ForeignKeyAttribute("PrestationId")]
public virtual HairPrestation Prestation { get; set; }
public long QueryId { get; set; }
[ForeignKeyAttribute("QueryId")]
public virtual HairMultiCutQuery Query { get; set; }
}
9 years ago
public class HairMultiCutQuery : NominativeServiceCommand
{
9 years ago
// Bill description
7 years ago
public override string Description => "Prestation en coiffure à domicile [commande groupée]" ;
9 years ago
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
override public long Id { get; set; }
[InversePropertyAttribute("Query")]
public virtual List<HairPrestationCollectionItem> Prestations { get; set; }
9 years ago
public Location Location { get; set; }
public DateTime EventDate
{
get;
set;
}
9 years ago
public override List<IBillItem> GetBillItems()
{
throw new NotImplementedException();
}
9 years ago
}
}