Auditing a Table with EF Code first
问题 I have a class say Message like following: public class Message { public int Id{get;set;} public string MessageText{get;set;} public int Sender{get;set;} public DateTime CreatedOn{get;set;} //EDIT:2 public virtual Message RepliedTo{get;set;} public virtual IList<Message> Replies{get;set;} public virtual IList<MessageStatusHistory> History{get;set;} //so on and so forth } Now I want to keep statuses of the Message object like what user marked it as read and when. I created a class