/// <summary> /// Deprecated Method for adding a new object to the Players EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPlayers(Player player) { base.AddObject("Players", player); }
/// <summary> /// Create a new Player object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="playerName">Initial value of the PlayerName property.</param> /// <param name="nationality">Initial value of the Nationality property.</param> public static Player CreatePlayer(global::System.Int64 id, global::System.String playerName, global::System.Int64 nationality) { Player player = new Player(); player.ID = id; player.PlayerName = playerName; player.Nationality = nationality; return player; }