Code Maze Author

Code Maze

This is the standard author on the site. Most articles are published by individual authors, with their profiles, but when several authors have contributed, we publish collectively as a part of this profile.
Also find me here:



MY ARTICLES:

Getting Started with AutoMapper in ASP.NET Core

In this article, we are going to learn how to use AutoMapper in an ASP.NET Core application. We are going to start by looking into what AutoMapper is and what problem it solves. Then, we are going to explain how we can use AutoMapper in our MVC application. After...

Differences Between .NET Framework, .NET Core, and .NET Standard

Since the birth of various .NET implementations and .NET Standard, there has been a lot of confusion regarding these topics in the development community. We will try to eliminate that confusion by explaining these topics in a simple and understandable way. Let's start...

Filters in ASP.NET Core MVC

Filters in ASP.NET Core MVC allow us to run certain actions before or after specific stages in the request processing pipeline. There are some built-in filters in ASP.NET Core. We can also write custom filters to execute actions at various stages of the request...

Unit Testing in ASP.NET Core MVC

In this article, we are going to cover Unit Testing or rather why we need unit tests and how to implement them in our ASP.NET Core applications. If you’ve missed some of the previous articles in the series we recommend visiting the series page: ASP.NET Core MVC...

Dependency Injection in ASP.NET Core MVC

In this article, we are going to discuss an important concept of ASP.NET Core MVC - Dependency Injection. If you’ve missed some of the previous articles in the series we recommend visiting the series page: ASP.NET Core MVC Series. To download this article’s source...

File Upload in ASP.NET Core MVC

File Upload is the process of uploading files from the user’s system to the web application’s storage. ASP.NET Core MVC actions support uploading of one or more files using simple model binding. We have covered the file upload support in ASP.NET Core Web API in detail...

Routing in ASP.NET Core MVC

In this article, we’re going to discuss the routing capabilities in ASP.NET Core MVC. We're also going to learn how to set up routes in two different ways. If you've missed some of the previous articles in the series we recommend visiting the series page: ASP.NET Core...

State Management in ASP.NET Core MVC

HTTP is a stateless protocol. So HTTP requests are independent messages that don't retain user values or app states. We need to take additional steps to manage state between the requests. In this article, we are going to look at various approaches to HTTP state...

Views, Partial Views, and Layouts in ASP.NET Core MVC

In the MVC pattern, Views handle the application's data presentation and user interaction. They also help to establish a Separation of Concerns (SoC) within an MVC application by separating the user interface markup from other parts of the application. A view is an...

Working with Data in ASP.NET Core MVC

In the previous part of this series, we built an ASP.NET Core MVC application using some mock data. In this part, we are going to look at the ways to connect the application with a database and work with data. We are going to use the EF Core Code-First approach which...

Getting Started with ASP.NET Core MVC

In this article, we are going to look at the basics of building an ASP.NET Core MVC web app. We are going to start by creating a simple ASP.NET Core MVC app using the default template provided by Visual Studio. The default template itself will translate into a working...

Using C# and DalSoft.RestClient to Consume Any REST API

This post is going to take you through using the DalSoft.RestClient C# library to consume a RESTful API. We are going to show you the most common scenarios using live examples from the REST API JSONPlaceholder. We are using JSONPlaceholder because it's a great tool...

ASP.NET Core Web API with EF Core DB-First Approach

In this article, we’ll take a look at the EF Core Database-First approach. In this approach, we create our database first. We then model our entities. This approach is useful when we work with an existing database. This is also useful when we migrate from existing...

ASP.NET Core Web API with EF Core Code-First Approach

While working with the EF Core Code-First approach, we create the classes for our domain entities first. Later, we'll create the database from our code by using migrations. This is the opposite of the Database-First approach where we design our database first and then...

Enabling CORS in ASP.NET Core

In this post, we are going to talk about enabling CORS in ASP.NET Core Web Applications. .NET Core Tutorial Global Error Handling in .NET Core Web API Create PDF in .NET Core Web API Implementing Action Filters in .NET Core Web API Design Patterns in C# [sc...

Top Docker Monitoring Tools

As more and more companies tend to adopt the DevOps trend in their software development process, DevOps has slowly become a set of practices rather than a concept. It is about finding a smooth interaction between development and operations in order to overcome the...

Unit Testing in ASP.NET Core Web API

Software maintenance is an inevitable part of the development process and one that could give developers the most trouble. We’ve all been there, whether we left our code in someone else’s care, or we’ve inherited some legacy code. This doesn’t necessarily need to be a...