• We just launched and are currently in beta. Join us as we build and grow the community.

Create, Read, Update, Delete (CRUD) Using C#

moustafo

Endpoint Security Specialist
M Rep
0
0
0
Rep
0
M Vouches
0
0
0
Vouches
0
Posts
137
Likes
133
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 400 XP
In this code, we create a basic Create, Read, Update, Delete (CRUD) Using C#. This simple project creates a database connection using a wizard (i.e. data binding).

To make it little appealing, I created a customize buttons for navigating the record. I then hide the BindingNavigator to avoid duplicate control.

One important problem I encounter is you’re not allowed to create the same name of the Project and the Form. Example, don’t create a form named “CRUD” if your project name is also “CRUD”. This will create the same namespace for both the project name and the form name. Hence create a conflict between the two.

In the next project, I will create a simple CRUD application that is not based on data binding or a wizard.

I’m a fan of data binding but for the sake of this tutorial, let’s see how easy it is to create a hard coding connection to our database.

Let me know if you encounter any problem on this project.

Technicalities:
Visual Studio 2019
Language: C#
Database: Microsoft SQL Server Database File

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.

2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.


Download
You must upgrade your account or reply in the thread to view hidden text.
 

442,401

317,942

317,951

Top