Latest Posts On Code Maze

Consuming GitHub API (REST) With Flurl

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

.NET Core with SignalR and Angular – Real-Time Charts

.NET Core with SignalR and Angular – Real-Time Charts

SingalR is a library that helps us provide real-time web functionality to our applications. This means that our server can push data to any connected client as soon as that data is provided, in real-time, and vice versa. In this article, we are going to show you how...

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

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

Angular Material Table, Filtering, Sorting, Paging

Angular Material Table, Filtering, Sorting, Paging

We are going to divide this article into two major parts. The first part will consist of creating environment files, HTTP repository service, and creating a new Owner module with the lazy loading feature. As you can see, everything is Angular specific, so we won’t...

C# Intermediate – Delegates

C# Intermediate – Delegates

In this article, we are going to talk more about delegates in C#. A delegate is a reference to a method. We can use a delegate object to pass it to the code in which we want to call a referenced method, without knowing at compile time which method will be invoked....

C# Intermediate – Generic List and Dictionary

C# Intermediate – Generic List and Dictionary

In this article, we are going to talk more about Generic List and Dictionary in C#. A List<T> and Dictionary are very useful collections in C#, and we are going to discover its features in the rest of the article. Classes and Constructors Properties Static...

C# Intermediate – Queue, Stack, and Hashtable

C# Intermediate – Queue, Stack, and Hashtable

In this article, we are going to talk about the queue, stack, and hashtable collections in C#, how to use them and how to use the methods they provide. Classes and Constructors Properties Static Members, Constants, and Extension Methods Anonymous and Nullable Types...

Getting Started With Angular Material

Getting Started With Angular Material

In this article, we are going to show you how to prepare our Angular project and how to install Angular Material in a few simple steps. But first things first. Before we start with the Angular Material features, we need to create the project first. So let’s dive right...

C# Intermediate – Generics

C# Intermediate – Generics

C# provides generics to help us remove the need for casting, to improve type safety and make it easier to create generic classes and generic methods. Classes and Constructors Properties Static Members, Constants, and Extension Methods Anonymous and Nullable Types...

C# Intermediate – Abstract Classes

C# Intermediate – Abstract Classes

Different classes may implement the same interface, and that is the common case in software development. What is common as well is that the method from that interface can have the same implementation in those classes. That could be a signal that we are doing something...

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

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

C# Intermediate – Interfaces

C# Intermediate – Interfaces

Inheriting from a class is a powerful mechanism, but the real inheritance power comes from an interface. An interface provides the members that a class that inherits from an interface must implement. We can look at the interface as a contract which states that a class...

C# Intermediate – Inheritance

C# Intermediate – Inheritance

Inheritance is one of the three key concepts in object-oriented programming. We can use inheritance to avoid repetition when different classes have a number of features in common and are related to each other. In this post, we are going to talk about C# inheritance,...

Enabling CORS in ASP.NET Core

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

C# Intermediate – Enumerations

C# Intermediate – Enumerations

Besides the structures, C# supports another value type Enumeration. In this article, we are going to talk more about Enumerations in C#. Classes and Constructors Properties Static Members, Constants, and Extension Methods Anonymous and Nullable Types Structures...

C# Intermediate – Structures

C# Intermediate – Structures

In the previous articles, we have learned about classes, how to use them and how to create an object as an instance of a class. In this article, we are going to talk about structures that are similar to classes but have some differences as well. Classes and...

Implementing Action Filters in ASP.NET Core

Implementing Action Filters in ASP.NET Core

Filters in .NET offer a great way to hook into the MVC action invocation pipeline. Therefore, we can use filters to extract code that can be reused and make our actions cleaner and maintainable. There are some filters that are already provided by ASP.NET Core like the...