Writing unit test code when using the Dapper ORM tool for database operations with ASP.NET Core Web Application
How to write unit tests with Dapper
Writing unit tests when using the Dapper ORM tool for database operations in an ASP.NET Core Web Application can be complex. This is because Dapper uses static extension methods that are difficult to mock when testing services.
There is one approach to resolving this problem. We need to...
далее...
Introduction
This article demonstrates Middleware concepts in ASP.NET Core. At the end of this article, you will have clear understanding on below points:
What is Middleware?
Why Middleware ordering is important?
Understanding of Run, Use and Map Method.
How to create a Custom Middleware?
How to enable directory browsing through Middleware?
What is Middleware?
Middleware is a piece...
далее...
Did you ever face a situation where you have a search UI, like a front-end application, that has a data table and you need to support a complex query construction that can contain Free Text search, Sorting of multiple columns, and extra filters and query parameters starts to look a nightmare on your controllers?
ASP.Net offers great flexibility, extensibility, and customization to graceful handle these situations.
The problem
Let’s imagine the scenario where...
далее...
In this article, we are going to discuss the working of CQRS and MediatR patterns and step-by-step implementation using .NET Core 6 Web API.
Agenda
Introduction of CQRS Pattern
When to use CQRS
MediatR
Step-by-step Implementation
Prerequisites
Visual Studio 2022
SQL Server
.NET Core 6
Introduction of CQRS Pattern
...
далее...
By software engineering standards, ASP.NET Web Forms can be considered old school. Perhaps I’m aging myself with that statement, but its true. From a software perspective, even 10 years begins to show its age. I started to use Web Forms the year after they were introduced by Microsoft in 2003.
Most of my college years were spent in Web Forms and around 80% of my professional career has revolved around them...
далее...
We are going to discuss Caching in .NET Core and how it works. So, we look at the following things one by one.
Introduction of Caching.
What is Cache.
Types of cache.
Cache Implementation.
So, let’s start one by one.
Introduction
Caching is very popular nowadays in the software industry because it will improve the performance and scalability of the application....
далее...