/// <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="fromUserId">Initial value of the FromUserId property.</param>
 /// <param name="toUserId">Initial value of the ToUserId property.</param>
 /// <param name="content">Initial value of the Content property.</param>
 /// <param name="createDateUtc">Initial value of the CreateDateUtc property.</param>
 /// <param name="isDeleted">Initial value of the IsDeleted property.</param>
 public static Message CreateMessage(global::System.Int64 messageId, global::System.Guid fromUserId, global::System.Guid toUserId, global::System.String content, global::System.DateTime createDateUtc, global::System.Boolean isDeleted)
 {
     Message message = new Message();
     message.MessageId = messageId;
     message.FromUserId = fromUserId;
     message.ToUserId = toUserId;
     message.Content = content;
     message.CreateDateUtc = createDateUtc;
     message.IsDeleted = isDeleted;
     return message;
 }