An example project of ASP.NET Core Web API Application, using Entity Framework (Sql Server) and AutoMapper. This project uses .NET 8.
- Entity Framework with Sql Server and migrations (inside WebApi project)
- AutoMapper to map Entity <-> DTO
- Swagger
- Some dummy data from kaggle.com as .csv file that can be seeded to database via API route
- Clone the repo
- Open the solution
- Change
appsettings.Development.json
file ConnectionString cd Earthquakes.WebApi
dotnet ef database update
- Start the project
- Open swagger
- Call
/api/data/update-database
endpoint once to seed the database