yavsc/Yavsc/Models/Billing/CommandLine.cs

30 lines
706 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
8 years ago
using Newtonsoft.Json;
namespace Yavsc.Models.Billing
{
8 years ago
using YavscLib.Billing;
8 years ago
public class CommandLine : ICommandLine {
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
8 years ago
[Required,MaxLength(512)]
public string Description { get; set; }
8 years ago
public int Count { get; set; }
8 years ago
[DisplayFormat(DataFormatString="{0:C}")]
public decimal UnitaryCost { get; set; }
8 years ago
public long EstimateId { get; set; }
[JsonIgnore,NotMapped,ForeignKey("EstimateId")]
virtual public Estimate Estimate { get; set; }
}
}