making pay, & refactoring
This commit is contained in:
parent
8b5e50626e
commit
3e6ac9aba7
34 changed files with 602 additions and 215 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue