Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Badge object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="winsNeeded">Initial value of the WinsNeeded property.</param>
 /// <param name="streakNeeded">Initial value of the StreakNeeded property.</param>
 /// <param name="losesNeeded">Initial value of the LosesNeeded property.</param>
 /// <param name="createdOn">Initial value of the CreatedOn property.</param>
 /// <param name="updatedOn">Initial value of the UpdatedOn property.</param>
 public static Badge CreateBadge(global::System.Int32 id, global::System.Int32 winsNeeded, global::System.Int32 streakNeeded, global::System.Int32 losesNeeded, global::System.DateTime createdOn, global::System.DateTime updatedOn)
 {
     Badge badge = new Badge();
     badge.Id = id;
     badge.WinsNeeded = winsNeeded;
     badge.StreakNeeded = streakNeeded;
     badge.LosesNeeded = losesNeeded;
     badge.CreatedOn = createdOn;
     badge.UpdatedOn = updatedOn;
     return badge;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Badges EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBadges(Badge badge)
 {
     base.AddObject("Badges", badge);
 }