using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Web; using Weee.Models.Survey_form_metadata; namespace Weee.Models { public class LCAStatusLog { private LCAStatusLog(): this(LCAStatus.New,"") { } public LCAStatusLog(LCAStatus t,string ActorName) { ActionTime = DateTime.UtcNow; NewStatus = t; WhoDidThis = ActorName; } public int ID { get; private set; } public LCAStatus NewStatus { get; private set; } [Column(TypeName = "DateTime2")] public DateTime ActionTime { get;private set; } public string Description { get; set; } public int LCAID { get; private set; } [ForeignKey("LCAID")] public virtual LCA LCA { get; set; } public string WhoDidThis { get; private set; } } }