using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace AdvertisingProfitControlData { public class Invoice { public int Id { get; set; } [Column(TypeName = "date")] public DateTime InvoiceDate { get; set; } [Required] [StringLength(256)] public string InvoiceNumber { get; set; } public decimal? InvoiceNetAmountAtCost { get; set; } public decimal? InvoiceNetAmount { get; set; } [StringLength(256)] public string InvoiceNote { get; set; } public int FkSupplierId { get; set; } public int FkDateId { get; set; } public virtual WeekEndingDate WeekEndingDate { get; set; } public virtual Supplier Supplier { get; set; } } }