예제 #1
0
    /// <summary>
    /// Deletes the first player stat in the table using the class definition. No need for SQL here.
    /// </summary>
    /// <param name='playerID'>
    /// The ID of the player to update
    /// </param>
    private void DeletePlayerStats_Simple(int playerID)
    {
        // Set up a player stats class, setting the key field
        PlayerStats playerStats = new PlayerStats {
            PlayerID = playerID
        };

        dbManager.Delete <PlayerStats>(playerStats);
    }