Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Task - Executing MySQL Commands | Introduction to Databases with .NET
Introduction to .NET with C#
course content

Cursusinhoud

Introduction to .NET with C#

Introduction to .NET with C#

1. Introduction
2. Asynchronous Programming and Introduction to Web Services
3. Introduction to Databases with .NET
4. CRUD Operations with MySQL
5. Optimizing Database Operations

book
Task - Executing MySQL Commands

Your task is to:

  • Create a MySqlCommand object using the commandText command and the connection object;
  • Execute the command using the appropriate method;
  • Close the connection after executing the command;
  • Enclose the code into a try-catch block to make it safer.

Note

The unit tests related to MySQL tasks will only pass if the application connects to an actual database, so for this task, you need to have the MySQL database installed on your device. You can modify the connection string to your local database details for testing purposes. Alternatively, you can compare your code with the given solution code.

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 3. Hoofdstuk 7
Onze excuses dat er iets mis is gegaan. Wat is er gebeurd?
some-alt