How to Get the Remote Host IP Address in ASP.NET Core Web API
In this article, we will learn what is a remote host IP address and explore different ways to extract it in ASP.NET Core Web API. Let's start....
Code Maze Weekly #170
Issue #170 of the Code Maze weekly. Check out what's new this week and enjoy the read. .NET and C# Top Picks 13 Libraries in ASP.NET Core Every Developer Should Know About [codingsonata.com] Some of the extremely helpful libraries we...
How to Store JSON in an Entity Field With EF Core
In this article, we are going to talk about how to store data in the JSON entity field using Entity Framework Core. But before we start, we...
Extending LINQ to Objects With MoreLINQ Library
In this article, we'll explore the capabilities of the MoreLINQ library, which enables us to improve the already robust LINQ functionality. Let's...
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. [sc name="github"...
Upcasting and Downcasting in C#
Upcasting and downcasting are important concepts in C# programming that allow us to convert an object of one type to another type. These concepts are essential to work with polymorphism and object-oriented programming. In this article, we will explore how upcasting...
How to Validate Email Address in C#
Validating an email address is a common task in the routine of a software developer, especially when we build applications that deal with users' data. In this article, we are going to explore a few different ways to validate email addresses. First, we'll use built-in...
How to Round Down a Number to a Nearest Integer in C#
In this article, we will explore C# possibilities when we want to round down a number to the nearest integer. We will do that by testing several methods, which would probably first cross the minds of developers when solving this task. [sc name="github"...
How to Do an Inner Join in LINQ?
This article guides us on how to do an inner join in LINQ. We are going to discover how to seamlessly extract linked data and carry out additional LINQ tasks in conjunction with the join. Additionally, we also explore how to perform multi-level joins, that are...