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

50 lines
1.4 KiB
C#

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