Latest Posts On Code Maze

Code Maze Weekly #84

Code Maze Weekly #84

Issue #84 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# How Does the StringBuilder Work in .NET? (Part 1) [www.stevejgordon.co.uk] Properly understanding and using the StringBuilder class is the topic of this series of...

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,...

Code Maze Weekly #83

Code Maze Weekly #83

Issue #83 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Conditional compilation for ignoring method calls with the ConditionalAttribute [andrewlock.net] Ever heard of the [Conditional] attribute? No? Check out this article by...

Code Maze Weekly #82

Code Maze Weekly #82

Issue #82 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Customized JSON formatting with Serilog [nblumhardt.com] If customizing logs presentation is your cup of tea, this article by Nicholas Blumhardt is the perfect read for...

Code Maze Weekly #81

Code Maze Weekly #81

Issue #81 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Caching Enum.ToString to improve performance [www.meziantou.net] How to make converting an enum value to a string using the ToString() less expensive by Gérald Barré....

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...

Code Maze Weekly #80

Code Maze Weekly #80

Issue #80 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Customizing Serilog text output [nblumhardt.com] Everything you need to know about formatting plain text with Serilog.Expressions, by Nicholas Blumhardt. Minimal APIs in...

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...

Code Maze Weekly #79

Code Maze Weekly #79

Issue #79 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Benchmarking 4 reflection methods for calling a constructor in .NET [andrewlock.net] Four different reflection methods, four different results. Which reflection method...

Code Maze Weekly #78

Code Maze Weekly #78

Issue #78 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Secure an Angular SPA and an ASP.NET Core API using Auth0 [damienbod.com] A comprehensive article on securing angular SPA + ASP.NET Core with Auth0 by Damien Bowden. Must...

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...

Code Maze Weekly #77

Code Maze Weekly #77

Issue #77 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Global Exception Handling in ASP.NET Core – Ultimate Guide [codewithmukesh.com] Handling exceptions in a centralized manner is a good addition to many ASP.NET Core...

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...

Code Maze Weekly #76

Code Maze Weekly #76

Issue #76 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Adding CAPTCHA on form posts with ASP.NET Core [blog.elmah.io] The necessary evil - CAPTCHA challenges. We don't like to implement them, and we don't like to use them,...

Using the ProblemDetails Class in ASP.NET Core Web API

Using the ProblemDetails Class in ASP.NET Core Web API

In this article, we are going to talk about the ProblemDetails class and how it plays a role in standardizing error and exception handling in our .NET Core APIs. Generic Repository Pattern is considered by some to be an antipattern in...

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...