/// <summary> /// Deprecated Method for adding a new object to the Heroes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToHeroes(Hero hero) { base.AddObject("Heroes", hero); }
/// <summary> /// Create a new Hero object. /// </summary> /// <param name="heroId">Initial value of the HeroId property.</param> /// <param name="heroName">Initial value of the HeroName property.</param> /// <param name="class">Initial value of the Class property.</param> public static Hero CreateHero(global::System.Int32 heroId, global::System.String heroName, global::System.String @class) { Hero hero = new Hero(); hero.HeroId = heroId; hero.HeroName = heroName; hero.Class = @class; return hero; }