This project demonstrates basic CRUD (Create, Read, Update, Delete) operations on a student database using ADO.NET.
- Visual Studio or any other C# development environment
- SQL Server Management Studio or any other SQL database management tool
- .NET Framework
- Clone this repository to your local machine.
- Open the solution file (
CRUD_UsingADO.sln
) in Visual Studio. - Ensure that you have a SQL Server instance running and update the connection string in the
Student.cs
file with your database connection information. - Build the solution to restore NuGet packages and resolve dependencies.
Run the program by pressing F5
or clicking on the Start button in Visual Studio. This will launch the console application.
- Insert a new student: Allows you to add a new student to the database.
- Retrieve all students: Displays a list of all students stored in the database.
- Update a student: Update details of an existing student.
- Delete a student: Remove a student from the database.
- Exit: Quit the application.
Choose the appropriate option by entering the corresponding number and follow the prompts.
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.