Latest Posts On Code Maze

Top 11 C# Tips to Improve Code Quality and Performance

Top 11 C# Tips to Improve Code Quality and Performance

In this article, we are going to learn some useful C# tips on how to improve our code quality and performance.  Let’s get started! Why These C# Tips? Before we begin, let us briefly discuss why we chose these specific C# tips over many others that certainly exist....

10 Things You Should Avoid in Your ASP.NET Core Controllers

10 Things You Should Avoid in Your ASP.NET Core Controllers

Keeping controllers clean and tidy is something we've learned we should do the first time we've stumbled upon the MVC pattern. But as the project grows and other team members enter the project, things might get out of hand. Especially when deadlines need to be met,...

Using Dapper with ASP.NET Core Web API

Using Dapper with ASP.NET Core Web API

In this article, we'll learn how to use Dapper in the ASP.NET Core Web API project. We'll talk about Dapper overall, how to use different queries and executions, how to execute stored procedures, and how to create multiple queries inside a transaction. We'll also...

Hangfire with ASP.NET Core

Hangfire with ASP.NET Core

Almost all applications need to do some sort of background work. Whether it’s a long and tedious task or a repetitive job that we need to do every other day, in this article we are going to learn how we can easily implement it. For this, we are going to be using...

Creating Business Workflows with Azure Logic Apps

Creating Business Workflows with Azure Logic Apps

In this article, we’re going to learn how to use the Azure Logic Apps cloud service in detail. We’ll start by looking at what an Azure Logic App is. Then, we’ll discuss some of its advantages. After that, we’ll learn how to create an Azure Logic App from the portal...

Azure Cosmos DB with ASP.NET Core Web API

Azure Cosmos DB with ASP.NET Core Web API

In this article, we are going to learn Azure Cosmos DB in detail.  We’ll start by learning what an Azure Cosmos DB is and the various APIs that it supports. Then we’ll create a Cosmos DB from the portal. After that, we’ll learn how to create an ASP.NET Core...

Blazor Material Form Creation with File Upload and Dialogs

Blazor Material Form Creation with File Upload and Dialogs

In the previous article, we have created our interactive product details page using different MudBlazor components (Panel, Chart, Rating, etc). As a continuation, in this article, we are going to use the Blazor Material Form component, to create a form that handles...

Creating Blazor Material Navigation Menu

Creating Blazor Material Navigation Menu

In the previous article, we've integrated MudBlazor into our Blazor WebAssembly application and started working with some material components and theme modification. But our navigation menu doesn't look great. Well, to be honest, we didn't do anything with it. That...

Creating Resilient Microservices in .NET with Polly

Creating Resilient Microservices in .NET with Polly

In this article, we are going to look at one of the key challenges with building microservices: resilience. We will look at why the problem exists, and how the .NET library Polly can help us provide a solution to this problem, enabling resilient microservices. [sc...

Azure SQL with ASP.NET Core Web API

Azure SQL with ASP.NET Core Web API

Azure offers a set of managed products called Azure SQL that takes the SQL Server capabilities into the cloud environment. In this article, we are going to discuss those and see how to create an SQL database in Azure. Then, we’ll see how we can configure the database...

Introduction to Benchmarking in C# and ASP.NET Core Projects

Introduction to Benchmarking in C# and ASP.NET Core Projects

In this article, we are going to cover how to benchmark C# code and ASP.NET Core projects. To accomplish this, we are going to set up a benchmarking test on a simple project and then apply the same concept to a real-world kind of application (comparing gRPC and REST)....

Using HttpClientFactory in ASP.NET Core Applications

Using HttpClientFactory in ASP.NET Core Applications

Up until now, we've been using HttpClient directly in our services. In every service, we've created an HttpClient instance and all the required configurations. That led to repeating code in all of our service classes. [sc name="patreon-source-code"...