/// <summary> /// Create a new UserMessage object. /// </summary> /// <param name="userMessageID">Initial value of the UserMessageID property.</param> /// <param name="jobID">Initial value of the JobID property.</param> /// <param name="sentFrom">Initial value of the SentFrom property.</param> /// <param name="sentTo">Initial value of the SentTo property.</param> /// <param name="messagedOn">Initial value of the MessagedOn property.</param> public static UserMessage CreateUserMessage(global::System.Int32 userMessageID, global::System.Int32 jobID, global::System.Guid sentFrom, global::System.Guid sentTo, global::System.DateTime messagedOn) { UserMessage userMessage = new UserMessage(); userMessage.UserMessageID = userMessageID; userMessage.JobID = jobID; userMessage.SentFrom = sentFrom; userMessage.SentTo = sentTo; userMessage.MessagedOn = messagedOn; return userMessage; }
/// <summary> /// Deprecated Method for adding a new object to the UserMessages EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUserMessages(UserMessage userMessage) { base.AddObject("UserMessages", userMessage); }