Tag Archives: .NET CORE

Web API – Versioning

By | 18/03/2020

In this post, we will see how to manage the versioning in a .net core Web API service, using three different approaches:1) Query String-Based Versioning2) URL-Based Versioning3) HTTP Header-Based Versioning First of all, we open Visual Studio 2019 and we create a Web API project: If we run the application, this will be the output:… Read More »

C# – How to add and read an appsetting.json file in a Console Application

By | 19/02/2020

In this post, we will see how to add and read an appsettings.json file in a .NET Core Console Application.We open Visual Studio and we create a Console Application (.NET Core) project called “TestJson“: Now, we add a file called “Parameters.json”, where we will storage a connection string for a DB and two parameters called… Read More »

C# – Dapper

By | 06/12/2019

From Dapper Official Web Site:“Dapper is a simple object mapper for .NET and owns the title of King of Micro ORM in terms of speed and is virtually as fast as using a raw ADO.NET data reader. An ORM is an Object Relational Mapper, which is responsible for mapping between database and programming language.Dapper extends… Read More »

Design Patterns – Repository and Unit of Work

By | 03/12/2019

From Microsoft Web Site:“The repository and unit of work patterns are intended to create an abstraction layer between the data access layer and the business logic layer of an application. Implementing these patterns can help insulate your application from changes in the data store and can facilitate automated unit testing or test-driven development (TDD)“. In… Read More »


By | 13/08/2019

In this post, we will see what Swagger is and how to install it in the Web API project created in the post: ASP.NET Core – Web API.First of all, what is Swagger?From the official web site:Swagger allows you to describe the structure of your APIs so that machines can read them. The ability of… Read More »

Web API – ASP.NET Core

By | 06/08/2019

In this post, we will see how to create a RESTful Web Service with ASP.NET Core. We open Visual Studio 2019 and select the template ASP.NET Core Web Application. Then, we select the API template, framework 2.2 and then we click on Create. At the end, we will have a project like that: If we… Read More »