/// <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="id">Initial value of the Id property.</param>
 /// <param name="toUserId">Initial value of the ToUserId property.</param>
 /// <param name="fromUserId">Initial value of the FromUserId property.</param>
 /// <param name="subject">Initial value of the Subject property.</param>
 /// <param name="body">Initial value of the Body property.</param>
 /// <param name="dateTimeStamp">Initial value of the DateTimeStamp property.</param>
 /// <param name="toViewed">Initial value of the ToViewed property.</param>
 /// <param name="fromViewed">Initial value of the FromViewed property.</param>
 /// <param name="toDeleted">Initial value of the ToDeleted property.</param>
 /// <param name="fromDeleted">Initial value of the FromDeleted property.</param>
 /// <param name="repliedTo">Initial value of the RepliedTo property.</param>
 public static Message CreateMessage(global::System.Int32 id, global::System.Int32 toUserId, global::System.Int32 fromUserId, global::System.String subject, global::System.String body, global::System.DateTime dateTimeStamp, global::System.Boolean toViewed, global::System.Boolean fromViewed, global::System.Boolean toDeleted, global::System.Boolean fromDeleted, global::System.Boolean repliedTo)
 {
     Message message = new Message();
     message.Id = id;
     message.ToUserId = toUserId;
     message.FromUserId = fromUserId;
     message.Subject = subject;
     message.Body = body;
     message.DateTimeStamp = dateTimeStamp;
     message.ToViewed = toViewed;
     message.FromViewed = fromViewed;
     message.ToDeleted = toDeleted;
     message.FromDeleted = fromDeleted;
     message.RepliedTo = repliedTo;
     return message;
 }