Example #1
0
 /// <summary>
 /// Create a new History object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="text">Initial value of the Text property.</param>
 /// <param name="timestamp">Initial value of the Timestamp property.</param>
 /// <param name="sender">Initial value of the Sender property.</param>
 public static History CreateHistory(global::System.Int32 id, global::System.String text, global::System.String timestamp, global::System.String sender)
 {
     History history = new History();
     history.ID = id;
     history.Text = text;
     history.Timestamp = timestamp;
     history.Sender = sender;
     return history;
 }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the History EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToHistory(History history)
 {
     base.AddObject("History", history);
 }