https://github.com/knowledgefactory4u/dotnet6-sqlserver-crud-application
Build REST CRUD APIs with .Net 6 and Microsoft SQL Server
https://github.com/knowledgefactory4u/dotnet6-sqlserver-crud-application
crud dotnet6 rest-api sqlserver
Last synced: 4 months ago
JSON representation
Build REST CRUD APIs with .Net 6 and Microsoft SQL Server
- Host: GitHub
- URL: https://github.com/knowledgefactory4u/dotnet6-sqlserver-crud-application
- Owner: knowledgefactory4u
- Created: 2023-02-12T17:30:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T17:32:45.000Z (over 2 years ago)
- Last Synced: 2025-01-14T15:43:01.794Z (5 months ago)
- Topics: crud, dotnet6, rest-api, sqlserver
- Language: C#
- Homepage: https://www.knowledgefactory.net/2023/02/build-rest-crud-apis-with-net-6-and-microsoft-sql-server.html
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Build REST CRUD APIs with .Net 6 and Microsoft SQL Server
# Local Setup and Run the application
Create database and table
```CREATE DATABASE testdb;```
```
CREATE TABLE users (
id INT NOT NULL IDENTITY PRIMARY KEY,
first_name VARCHAR(100) NOT NULL,
last_name VARCHAR(100),
email VARCHAR(100) NOT NULL,
);
```Download or clone the source code from GitHub to the local machine
You can start the api by running ```dotnet run``` from the command line in the project root folder (where the WebApi.csproj file is located)
OR
You can also start the application in debug mode in Visula Studio by opening the project root folder in Visual Studio and pressing F5 or by selecting Debug -> Start Debugging from the top menu, running in debug mode.