/// <summary> /// Deprecated Method for adding a new object to the Badges EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBadges(Badge badge) { base.AddObject("Badges", badge); }
/// <summary> /// Create a new Badge object. /// </summary> /// <param name="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="image">Initial value of the Image property.</param> /// <param name="oneHitPoints">Initial value of the OneHitPoints property.</param> /// <param name="totalPoints">Initial value of the TotalPoints property.</param> /// <param name="action">Initial value of the Action property.</param> /// <param name="section">Initial value of the Section property.</param> /// <param name="level">Initial value of the Level property.</param> public static Badge CreateBadge(global::System.String name, global::System.String description, global::System.String image, global::System.Int32 oneHitPoints, global::System.Int32 totalPoints, global::System.String action, global::System.String section, global::System.Int32 level) { Badge badge = new Badge(); badge.Name = name; badge.Description = description; badge.Image = image; badge.OneHitPoints = oneHitPoints; badge.TotalPoints = totalPoints; badge.Action = action; badge.Section = section; badge.Level = level; return badge; }