/// <summary>
 /// Deprecated Method for adding a new object to the Messages EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMessages(Message message)
 {
     base.AddObject("Messages", message);
 }
 /// <summary>
 /// Create a new Message object.
 /// </summary>
 /// <param name="messageID">Initial value of the MessageID property.</param>
 /// <param name="fromID">Initial value of the FromID property.</param>
 /// <param name="toID">Initial value of the ToID property.</param>
 /// <param name="sendDate">Initial value of the SendDate property.</param>
 /// <param name="header">Initial value of the Header property.</param>
 /// <param name="text">Initial value of the Text property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="isDeletedBySender">Initial value of the IsDeletedBySender property.</param>
 /// <param name="isDeletedByReceiver">Initial value of the IsDeletedByReceiver property.</param>
 public static Message CreateMessage(global::System.Guid messageID, global::System.Guid fromID, global::System.Guid toID, global::System.DateTime sendDate, global::System.String header, global::System.String text, global::System.Boolean status, global::System.Boolean isDeletedBySender, global::System.Boolean isDeletedByReceiver)
 {
     Message message = new Message();
     message.MessageID = messageID;
     message.FromID = fromID;
     message.ToID = toID;
     message.SendDate = sendDate;
     message.Header = header;
     message.Text = text;
     message.Status = status;
     message.IsDeletedBySender = isDeletedBySender;
     message.IsDeletedByReceiver = isDeletedByReceiver;
     return message;
 }