Before we start coding make sure your environment is ready. Make sure you have .net 5 sdk install in your machine. If not download it form this link https://dotnet.microsoft.com/download/dotnet/5.0 We will also use docker in this tutorial, so make sure to install it. You can get docker from this link https://www.docker.com/products/docker-desktop We will be using … Continue reading .Net 5 Web API With Repository Pattern Docker and PostgreSQL
Category: C#
ASP.Net Core 3.1 Repository Pattern and Unit of Work Using Dapper
In this article I will create a web api using ASP.Net Core 3.1 and instead of using the Entity Framework which I usually do. I will try to use Dapper. We will also use Repository pattern and Unit of Work to manage our data.
ASP.NET Core 3.1 Clean Architecture – Invoice Management App (Part 5 NSwag – Setting up Swagger and Auto generate API client code)
How to use NSwag in ASP.Net Core 3.1 to generate API client code.
ASP.NET Core 3.1 Clean Architecture – Invoice Management App (Part 4 AutoMapper – Map object properties to another object)
AutoMapper is a library that can map your object properties with the other object. By default, It maps the value of one object to another by looking on the properties with similar names from the source object to destination object.
ASP.NET Core 3.1 Clean Architecture – Invoice Management App (Part 3 MediatR and FluentValidation)
We will follow CQRS (Command Query Responsibility Segregation) approach in handling our data. We will use MediatR to handle the mappings of request to response and FluentValidation for validation.
ASP.NET Core 3.1 Clean Architecture – Invoice Management App (Part 2 Auditing in EF Core with CreatedBy and LastModifiedBy)
Now we will create our domain entities and implement EF Core auditing by saving the user who created the record and the last user who modified the record.
ASP.NET Core 3.1 Clean Architecture – Invoice Management App (Part 1)
If you are not familiar with clean architecture, following along this article will help you understand it. I will try create my own implementation of clean architecture based on Jason Taylor's clean architecture.
ASP.NET Core 3.1 with React: User Authentication and Registration
In this article, I will show you an easy way to create an application with user authentication, registration and management using ASP.NET Core 3.1 Web Api as backend and React as a frontend framework.
ASP.NET Core 3 JWT Authentication
In this article we will implement JWT authentication in ASP.NET Core 3.1 API using Microsoft AspNetCore Identity.
Policy Based Authorization in Asp.Net Core Web Api
In the previous article we implement user authentication and secure our api endpoint using Authorize attribute. The Authorize attribute allowed us to make sure that only logged in users can access our api. In a real world application we only want to allow a certain type of users to access some part of the api. … Continue reading Policy Based Authorization in Asp.Net Core Web Api