Latest Posts On Code Maze

Code Maze Weekly #87

Code Maze Weekly #87

Issue #87 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Creating a Dapper Helper C# Class to Generate Parameterized SQL [exceptionnotfound.net] Do you need a generic, yet fast way to create insert, and update SQL statements in...

Onion Architecture in ASP.NET Core

Onion Architecture in ASP.NET Core

In this article, we are going to learn about Onion architecture and what are its advantages. We will build a RESTful API that follows the Onion architecture, with ASP.NET Core and .NET 5.  The Onion architecture is also commonly known as the “Clean architecture” or...

Code Maze Weekly #86

Code Maze Weekly #86

Issue #86 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Appending strings, built-in types, and lists: A deep dive on StringBuilder - Part 2 [andrewlock.net] A continuation of the excellent StringBuilder analysis by Andrew...

Code Maze Weekly #85

Code Maze Weekly #85

Issue #85 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Building Minimal APIs In .NET 6 [dotnetcoretutorials.com] With the introduction of the .NET 6 features, APIs don't have to be bulky anymore. Check out this article by...

C# Tips to Improve Code Quality and Performance

C# Tips to Improve Code Quality and Performance

In this article, we are going to learn some useful C# tips and tricks on how to improve our code quality and performance. First, we will learn how to improve our code quality with a couple of tips related to readability and reducing nesting in code. Then, we are going...

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 are going to learn how to use Dapper in the ASP.NET Core Web API project. We are going to talk about Dapper overall, how to use different queries and executions, how to execute stored procedures, and how to create multiple queries inside a...

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

Asynchronous Programming with Async and Await in ASP.NET Core

Asynchronous Programming with Async and Await in ASP.NET Core

In this article, we are going to learn about asynchronous programming with the async and await keywords in the ASP.NET Core projects. We are going to dive deep inside these keywords and explain their advantages and how they help us scale our application. Additionally,...

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