/// <summary>
 /// Deprecated Method for adding a new object to the calendar_message EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTocalendar_message(calendar_message calendar_message)
 {
     base.AddObject("calendar_message", calendar_message);
 }
 /// <summary>
 /// Create a new calendar_message object.
 /// </summary>
 /// <param name="messageId">Initial value of the messageId property.</param>
 /// <param name="content">Initial value of the content property.</param>
 /// <param name="createtime">Initial value of the createtime property.</param>
 /// <param name="eventid">Initial value of the eventid property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 public static calendar_message Createcalendar_message(global::System.Guid messageId, global::System.String content, global::System.DateTime createtime, global::System.Guid eventid, global::System.String userName)
 {
     calendar_message calendar_message = new calendar_message();
     calendar_message.messageId = messageId;
     calendar_message.content = content;
     calendar_message.createtime = createtime;
     calendar_message.eventid = eventid;
     calendar_message.UserName = userName;
     return calendar_message;
 }