yavsc/Yavsc/Model/Billing/CommandLine.cs

27 lines
684 B
C#
Raw Normal View History

2016-05-17 18:22:18 +02:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2016-10-23 01:31:09 +02:00
using Newtonsoft.Json;
2016-06-14 03:37:57 +02:00
using Yavsc.Models.Market;
2016-05-17 18:22:18 +02:00
2016-06-14 03:37:57 +02:00
namespace Yavsc.Models.Billing
2016-05-17 18:22:18 +02:00
{
public class CommandLine {
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
2016-09-17 03:41:31 +02:00
2016-10-23 01:31:09 +02:00
[Required,MaxLength(512)]
2016-09-17 03:41:31 +02:00
public string Description { get; set; }
2016-05-17 18:22:18 +02:00
public BaseProduct Article { get; set; }
public int Count { get; set; }
public decimal UnitaryCost { get; set; }
2016-10-23 01:31:09 +02:00
public long EstimateId { get; set; }
[JsonIgnore,NotMapped,ForeignKey("EstimateId")]
virtual public Estimate Estimate { get; set; }
2016-05-17 18:22:18 +02:00
}
}