/// <summary>
 /// Deprecated Method for adding a new object to the MessageReplies EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMessageReplies(MessageReply messageReply)
 {
     base.AddObject("MessageReplies", messageReply);
 }
 private static MessageReplyEntity MessageReplyToEntity(MessageReply reply)
 {
     return new MessageReplyEntity()
     {
         MessageReplyId = reply.MessageReplyId,
         MessageId = reply.MessageId,
         ReplyId = reply.ReplyId,
         Text = reply.Text,
         DateReceived = reply.DateReceived
     };
 }
 /// <summary>
 /// Create a new MessageReply object.
 /// </summary>
 /// <param name="messageReplyId">Initial value of the MessageReplyId property.</param>
 /// <param name="messageId">Initial value of the MessageId property.</param>
 /// <param name="replyId">Initial value of the ReplyId property.</param>
 /// <param name="text">Initial value of the Text property.</param>
 /// <param name="dateReceived">Initial value of the DateReceived property.</param>
 public static MessageReply CreateMessageReply(global::System.Int32 messageReplyId, global::System.Int32 messageId, global::System.Int32 replyId, global::System.String text, global::System.DateTime dateReceived)
 {
     MessageReply messageReply = new MessageReply();
     messageReply.MessageReplyId = messageReplyId;
     messageReply.MessageId = messageId;
     messageReply.ReplyId = replyId;
     messageReply.Text = text;
     messageReply.DateReceived = dateReceived;
     return messageReply;
 }
        private static MessageReply EntityToMessageReply(MessageReplyEntity entity, MessageReply messageReply)
        {
            messageReply.MessageId = entity.MessageId;
            messageReply.ReplyId = entity.ReplyId;
            messageReply.Text = entity.Text;
            messageReply.DateReceived = entity.DateReceived;

            return messageReply;
        }