예제 #1
0
 /// <summary>
 /// Create a new History object.
 /// </summary>
 /// <param name="favoriteId">Initial value of the FavoriteId property.</param>
 /// <param name="lastUsedDate">Initial value of the LastUsedDate property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 public static History CreateHistory(global::System.Int32 favoriteId, global::System.DateTime lastUsedDate, global::System.Int32 userId)
 {
     History history = new History();
     history.FavoriteId = favoriteId;
     history.LastUsedDate = lastUsedDate;
     history.UserId = userId;
     return history;
 }
예제 #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);
 }