making pay, & refactoring

This commit is contained in:
Paul Schneider 2017-05-05 23:37:07 +02:00
commit 3e6ac9aba7
34 changed files with 602 additions and 215 deletions

View file

@ -5,13 +5,14 @@ using Newtonsoft.Json;
namespace Yavsc.Models.Billing
{
using System;
using YavscLib.Billing;
public class CommandLine : ICommandLine {
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
[Required,MaxLength(512)]
public string Description { get; set; }
@ -21,9 +22,16 @@ namespace Yavsc.Models.Billing
public decimal UnitaryCost { get; set; }
public long EstimateId { get; set; }
[JsonIgnore,NotMapped,ForeignKey("EstimateId")]
virtual public Estimate Estimate { get; set; }
}
public string Currency
{
get;
set;
}
}
}