Code Maze Author

Vladimir Pecanac

Hi, my name is Vladimir Pecanac, and I am a full-time .NET developer and DevOps enthusiast. I created this blog so I can share the things I learn in the hope of both helping others and deepening my own knowledge of the topics I write about. The best way to learn is to teach.
Also find me here:


MY ARTICLES:

Data Shaping in ASP.NET Core Web API

In this article, we are going to talk about a neat concept called data shaping and how to implement it in ASP.NET Core Web API. To achieve that, we are going to use similar tools as we did in the sorting article. Data shaping is not something that every API needs, but...

Code Maze Weekly #6

We've compiled a lot of great articles this week so you can stock up before Christmas: .NET and C# An Introduction to Blazor and Web Assembly [grapecity.com] Is Blazor and Web Assembly hype justified or not? If you haven't learned what they are yet, here's your...

How to Implement Sorting in ASP.NET Core Web API

In this article, we're going to talk about sorting in ASP.NET Core Web API. Sorting is a commonly used mechanism, that every API should implement. Implementing it in ASP.NET Core is not difficult due to the flexibility of LINQ and good integration with EF Core. If you...

Code Maze Weekly #5

Seems like December is a great time for great articles. Here's a list for this week: .NET and C# Properly Setting Up .NET Framework Projects [dotnettips.wordpress.com] Learn what's missing from your Visual Studio template for .NET Framework projects. An Introduction...

Searching in ASP.NET Core Web API

In this article, we're going to tackle the topic of searching in ASP.NET Core Web API. Searching is one of those functionalities that can make or break your API, and the level of difficulty when implementing it can vary greatly depending on your specifications. If you...

Code Maze Weekly #4

We've read some great articles this week. Take a look: .NET and C# Cybertruck in XAML and running Cross-Platform with WebAssembly [platform.uno] Cybertruck in XAML? Smash its windows yourself! Converting integration tests to .NET Core 3.0: Upgrading to ASP.NET Core...

Filtering in ASP.NET Core Web API

In this article, we will cover filtering in ASP.NET Core Web API. We'll learn what filtering is, how it's different from searching, and how to implement it in a real-world project. While not critical as paging, filtering is still an important part of a flexible REST...

Code Maze Weekly #3

Here are the  articles that caught our attention this week: .NET and C# Embracing nullable reference types [devblogs.microsoft.com] "Make a plan! How are you going to act on nullable reference types? Try it out! Turn it on in your code and see what happens. Scary many...

Code Maze Weekly #2

This week we've read dozens of quality articles and here's a weekly roundup. .NET and C# Avoiding Startup service injection in ASP.NET Core 3 [andrewlock.net] The third part of the series of articles about upgrading to ASP.NET Core 3.0 by Andrew Lock. HttpClient...

Paging in ASP.NET Core Web API

In this article, we're going to learn how to implement paging in ASP.NET Core Web API. Paging (pagination) is one of the most important concepts in building RESTful APIs. We don't want to return a collection of all resources when querying our API. That can cause...

How to Configure PostgreSQL in Entity Framework Core

In this article, we are going to learn how to configure PostgreSQL, a popular and reliable open-source relational database, in our .NET Core application, and connect it to Entity Framework Core to utilize its full potential. If you want to learn more about Entity...

Dynamic Type in C#

The dynamic type has been added to C# since C# 4.0 (.NET 4.5) and its main purpose is to bypass the static type checks and add more flexibility to the language. In this article, we are going to go through the basic concepts of dynamic type, and learn how it works and...

Consuming GitHub API (REST) With Flurl

In our article A Few Great Ways to Consume RESTful API in C# we introduced a few different ways to consume a Restful API. This article is about going into details of Flurl library and giving a few examples of how to authenticate and consume a restful API such as...

Continuous Integration with TeamCity and Docker

In the previous post, we've discussed why continuous integration is important, what makes a good CI tool and after that, we've set up a basic TeamCity project to build our application using Docker. But continuous integration is much more than that, so in this article,...

Docker Hub vs Creating a Local Docker Registry

In the previous part, we've learned how to utilize Docker Compose to tie multiple containers together with a single command. We've added a MySQL database to our ASP.NET Core application and successfully run it. Before proceeding further, we need to learn more about...

Adding MySQL to ASP.NET Core App With Docker Compose

In the previous post, we've dockerized our ASP.NET Core application. In this post, we are going to add a MySQL database as another container and connect it with our application. Since we'll have multiple containers running we are going to introduce the Docker Compose...

Dockerizing ASP.NET Core Application With Dockerfiles

In the previous part, we've gone through some scenarios to show off the Docker's potential. We have also seen how to utilize Docker CLI and even made the simplest Dockerfiles to learn how to build the images using Docker. In this article, we are going to focus on...

Why Docker: The Docker CLI Through Examples

Now that we've prepared our ASP.NET Core application, we are going to learn how to install and use Docker on Windows 10, the reasons behind using Docker, and some useful Docker CLI commands. Understanding how the Docker CLI works is crucial, and you'll most definitely...

How to Prepare an ASP.NET Core Application for Dockerization

In this part, we are going to apply some modifications to our ASP.NET Core application in order to prepare it for the dockerization process. To follow along with this part you need: .NET Core 3.1 SDK Windows 10 Git IDE of your choice (we use Visual Studio 2019) Docker...