Skip to content

Piumir3/ASP.Net-WEb-API

Repository files navigation

ASP.Net-WEb-API

CRUD Operations in ASP.NET Core 5.0 Web API using Entity Framework Core

This article will provide a detailed guide on performing CRUD (Create, Read, Update, and Delete) operations in ASP.NET Core 5.0 Web API using Entity Framework Core. We will walk through the step-by-step process of implementing CRUD operations in an ASP.NET Core Web API project. In this demonstration, we will follow the Database First Approach, where the database will be created beforehand.

Objective

The objective of this demonstration is to cover the following topics:

  • Creating the Database and Tables
  • Creating an ASP.NET Core Web API Project
  • Installing NuGet Packages for Entity Framework
  • Generating Model Classes
  • Setting up Dependency Injection
  • Enabling CORS (Cross-Origin Resource Sharing)
  • Using Swagger for API documentation
  • Creating a Repository and implementing CRUD operations
  • Creating a Controller and implementing API calls

About

API Swagger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages