/// <summary> /// Create a new Message object. /// </summary> /// <param name="dateLeft">Initial value of the DateLeft property.</param> /// <param name="ircNick">Initial value of the IrcNick property.</param> /// <param name="messageText">Initial value of the MessageText property.</param> /// <param name="fromIrcNick">Initial value of the FromIrcNick property.</param> public static Message CreateMessage(global::System.String dateLeft, global::System.String ircNick, global::System.String messageText, global::System.String fromIrcNick) { Message message = new Message(); message.DateLeft = dateLeft; message.IrcNick = ircNick; message.MessageText = messageText; message.FromIrcNick = fromIrcNick; return message; }
/// <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); }