https://github.com/ebolblga/sql-winforms-crud
Simple WinForms to SQL Server connection program
https://github.com/ebolblga/sql-winforms-crud
dapper sql ssms winforms
Last synced: 29 days ago
JSON representation
Simple WinForms to SQL Server connection program
- Host: GitHub
- URL: https://github.com/ebolblga/sql-winforms-crud
- Owner: ebolblga
- License: mit
- Created: 2022-10-05T19:53:45.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-11T02:00:25.000Z (over 3 years ago)
- Last Synced: 2025-10-26T23:47:12.216Z (8 months ago)
- Topics: dapper, sql, ssms, winforms
- Language: C#
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SQL-WinForms-CRUD
## Simple program on C# Windows Forms App (.NET 6.0 Framework) that does CRUD (Create Read Update Delete) on SQL Server database.
To run this you will need:
- [Visual Studio](https://visualstudio.microsoft.com/vs/) **2022**
- [SQL Server](https://www.microsoft.com/en-us/sql-server/sql-server-downloads) **2019**
- [SQL Server Management Studio](https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16) **19 Preview 3**
Useful resources: [Installation and setup Microsoft SQL Server](https://youtu.be/dP_ZmYhNFlg) by Semyon Alekseev and [How to connect C# to SQL](https://youtu.be/Et2khGnrIqc) by IAmTimCorey

Database name: **CRUD**
Table name: **dbo.People**
Data types:

Select Top 1000 Rows:

Note: this code in theory may be used for SQL injection, to fix it change DataAccess.cs to use stored procedures instead of direct sql queries.
## Dependencies
[Dapper](https://www.nuget.org/packages/Dapper/) v1.50.2 by Sam Saffron, Marc Gravell and Nick Craver
## License
This program is licensed under the MIT License. Please read the License file to know about the usage terms and conditions.