/// <summary> /// Deprecated Method for adding a new object to the Messages EntitySet. Consider using the .Add method of the associated ObjectSet<T> 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="dateCreated">Initial value of the DateCreated property.</param> /// <param name="dateSent">Initial value of the DateSent property.</param> /// <param name="dateUpdated">Initial value of the DateUpdated property.</param> /// <param name="recordStatus">Initial value of the RecordStatus property.</param> public static Message CreateMessage(global::System.Int32 id, global::System.DateTime dateCreated, global::System.DateTime dateSent, global::System.DateTime dateUpdated, global::System.Byte recordStatus) { Message message = new Message(); message.ID = id; message.DateCreated = dateCreated; message.DateSent = dateSent; message.DateUpdated = dateUpdated; message.RecordStatus = recordStatus; return message; }