/// <summary> /// Create a new MessageRecepient object. /// </summary> /// <param name="messageRecepientId">Initial value of the MessageRecepientId property.</param> /// <param name="messageTo">Initial value of the MessageTo property.</param> /// <param name="messageSent">Initial value of the MessageSent property.</param> /// <param name="status">Initial value of the Status property.</param> /// <param name="messageId">Initial value of the MessageId property.</param> public static MessageRecepient CreateMessageRecepient(global::System.Int32 messageRecepientId, global::System.Int32 messageTo, global::System.DateTime messageSent, global::System.String status, global::System.Int32 messageId) { MessageRecepient messageRecepient = new MessageRecepient(); messageRecepient.MessageRecepientId = messageRecepientId; messageRecepient.MessageTo = messageTo; messageRecepient.MessageSent = messageSent; messageRecepient.Status = status; messageRecepient.MessageId = messageId; return messageRecepient; }
private void MarkMessageAsFailed(MessageRecepient messageRecepient) { messageRecepient.Status = MessageStatus.Failed; messageRecepient.StatusMessage = "Could not find a valid church linked to the sender"; Context.SaveChanges(); }
/// <summary> /// Deprecated Method for adding a new object to the MessageRecepients EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMessageRecepients(MessageRecepient messageRecepient) { base.AddObject("MessageRecepients", messageRecepient); }