/// <summary>
 /// 创建新的 Message 对象。
 /// </summary>
 /// <param name="messageID">MessageID 属性的初始值。</param>
 /// <param name="sendDate">SendDate 属性的初始值。</param>
 /// <param name="receiverUserID">ReceiverUserID 属性的初始值。</param>
 /// <param name="state">State 属性的初始值。</param>
 /// <param name="body">Body 属性的初始值。</param>
 /// <param name="title">Title 属性的初始值。</param>
 public static Message CreateMessage(global::System.Int32 messageID, global::System.DateTime sendDate, global::System.Int32 receiverUserID, global::System.Boolean state, global::System.String body, global::System.String title)
 {
     Message message = new Message();
     message.MessageID = messageID;
     message.SendDate = sendDate;
     message.ReceiverUserID = receiverUserID;
     message.State = state;
     message.Body = body;
     message.Title = title;
     return message;
 }
 /// <summary>
 /// 用于向 Messages EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToMessages(Message message)
 {
     base.AddObject("Messages", message);
 }