Tutorials, guides and articles on .Net Core framework.

Automate API Documentation with NSwag

Producing documentation is a laborious task that most developers dislike. Considering software delivery is an iterative approach, maintaining documentation becomes a full time work, especially for public APIs. For small teams and solo devs, tools like NSwag can do the heavy lifting of creating and maintaining documentation. Benefits of NSwag:…

  • Post category:.NET Core
  • Post comments:0 Comments
  • Reading time:11 mins read
Continue ReadingAutomate API Documentation with NSwag

Generating a SQL Database with Entity Framework Core in a Web API Project

Learn how to generate a database with a code-first flow using EntityFramework Core in a Web API project. TL;DR: This article will show you how to build your Web API with the new ASP.NET Core 3.1 and how to integrate with EntityFramework Core in order to provide a backing database for…

  • Post category:.NET Core
  • Post comments:0 Comments
  • Reading time:8 mins read
Continue ReadingGenerating a SQL Database with Entity Framework Core in a Web API Project

Enable CORS in .NET Core

Due to the same-origin policy, most browsers restrict making requests to different domains than the originally served the website. This is a security feature that prevents a harmful site from accessing sensitive data on other sites. If you are developing an API though, cross-origin requests (CORS) are something you want…

  • Post category:.NET Core
  • Post comments:0 Comments
  • Reading time:3 mins read
Continue ReadingEnable CORS in .NET Core