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...
How to Run an Async Method Synchronously in .NET
In this article, we will learn how to run an async method synchronously in .NET. Let's start. Different Ways We Can Run Asynchronous...
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
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...
Static Methods vs. Non-Static Methods in C#
In this article, we are going to look at the difference between static and non-static methods in C#. In truth, there are many .NET languages...
Short Circuit Evaluation of IF Statements with Await in C#
In this article, we are going to look at what exactly short circuit evaluation is in C# and how asynchronous calls are affecting it.
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...
Handling CommandTimeout With Dapper in .NET
In this article, we are going to learn how to handle CommandTimeout with Dapper in .NET. So, let’s start. About Dapper Dapper is a...
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
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...