Latest Posts On Code Maze

Fast Inserts With Entity Framework (EF Core)

Fast Inserts With Entity Framework (EF Core)

In this article, we will review multiple ways of performing fast inserts of bulk data into a database using the Entity Framework (EF for short). Entity Framework "classic" was introduced in 2008, was superseded nearly a decade later by EF Core, and continues to add...

Easy Sorting, Filtering and Pagination in .NET With Sieve Package

Easy Sorting, Filtering and Pagination in .NET With Sieve Package

Most applications that are developed nowadays usually involve interacting with non-trivial amounts of data, so we need to provide functionality for sorting and filtering in our applications. Moreover, speed and load times are increasingly important, so we don't want...

How to Return XML From ASP.NET Core Web API

How to Return XML From ASP.NET Core Web API

ASP.NET Core is a powerful and flexible platform for building web applications. It supports multiple data formats, including JSON and XML, and provides many tools for serialization and deserialization. In this article, we will focus on how to return XML from ASP.NET...

Different Ways to Split a String in C#

Different Ways to Split a String in C#

In this article, we will cover different ways to split a string in C#. As developers, we might often need to split strings into smaller substrings based on certain delimiters. C# provides us with the Split method, which is part of the String class. Let's find out what C# has in store for us going forward. Let's take a look at features like...

How to Declare an Empty Array in C#

How to Declare an Empty Array in C#

In this article, we are going to look at the numerous ways to declare an empty array in C#. Arrays are used to store multiple variables of the same type. Sometimes our solution design may require the use of an empty array. For example, as an initial value for a...

How to Write Logs From Startup.cs/Program.cs in .NET

How to Write Logs From Startup.cs/Program.cs in .NET

Why should we write logs from the startup of an application? Usually, we write logs from various application events and user interactions. These are to record what activities the user performs, what data the app deals with, etc. When something goes wrong with our...