public override MessageEntity Clone() { MessageEntity result = new MessageEntity(); result.Id = Id; result.Key = Key; result.CreateDate = CreateDate; result.Sender = Sender.Clone(); result.Receiver = Receiver.Clone(); result.Subject = Subject; result.Body = Body; result.Channel = Channel; result.State = State; result.AttemptCount = AttemptCount; return(result); }