/// <summary> /// Deprecated Method for adding a new object to the Monsters EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMonsters(Monster monster) { base.AddObject("Monsters", monster); }
/// <summary> /// Create a new Monster object. /// </summary> /// <param name="monsterId">Initial value of the MonsterId property.</param> /// <param name="monsterName">Initial value of the MonsterName property.</param> /// <param name="attack">Initial value of the Attack property.</param> /// <param name="defense">Initial value of the Defense property.</param> /// <param name="alignment">Initial value of the Alignment property.</param> /// <param name="monsterEventEventId">Initial value of the MonsterEventEventId property.</param> public static Monster CreateMonster(global::System.Int32 monsterId, global::System.String monsterName, global::System.Int32 attack, global::System.Int32 defense, global::System.Int32 alignment, global::System.Int32 monsterEventEventId) { Monster monster = new Monster(); monster.MonsterId = monsterId; monster.MonsterName = monsterName; monster.Attack = attack; monster.Defense = defense; monster.Alignment = alignment; monster.MonsterEventEventId = monsterEventEventId; return monster; }