Example #1
0
        public void ShowTop()
        {
            DatabaseConnection connection = new DatabaseConnection("Week9");

            connection.ConnectionToDatabase();
            DatabaseCommands TopBook = new DatabaseCommands(connection.Connection);

            TopBook.Top10FromTable("Book2", "Title", "Year", "Price");
        }
Example #2
0
        public void ShowTop()
        {
            DatabaseConnection connection = new DatabaseConnection("Week9");

            connection.ConnectionToDatabase();
            DatabaseCommands TopPublisher = new DatabaseCommands(connection.Connection);

            TopPublisher.Top10FromTable("Publisher2", "PublisherId", "Name", null);
        }