Ali Hamza Ansari

Ali Hamza Ansari

Meet Ali, a talented .NET developer from Pakistan. Besides blogging, Ali works for a range of international customers doing everything from C# to Azure.

22 posts
How to bulk insert with EF Core

You may have encountered a situation where your application must insert massive amounts of data at once. Scenarios such as analytics applications, IoT monitoring systems, legacy systems, and data migration critically require bulk insertion of records. Sometimes, you must deal with thousands of records simultaneously, so inserting them will significantly ...

C# 13 Features: What's New and How to Use It

This article is featured on C# Advent Calendar 2024. Thank you Matt for putting this together year after year. C# has always been one of the most popular programming languages among developers. It continuously evolves to meet timed features and trends. Its robustness and flexibility make it an all-purpose language ...

Schedule Background Job using Quartz.NET

You may have encountered a situation where you must do some backend job without user intervention. For example, in an IOT application, your application needs to receive frequently published data from devices or send scheduler values to devices. .NET provides background job libraries for such tasks. I will discuss one ...

Exploring C# Records and Their Use Cases

In C#, classes historically define types like in any other Object-Oriented Language. Classes define models, encapsulate data and behavior, and organize code. A new block organizer came into play with the launch of C# 9—Record. This article will explore C# records with practical code examples. I will also dive ...

What's new in .NET 9: System.Text.Json improvements

.NET 9 is releasing in mid-November 2024. Like every .NET version, this introduces several important features and enhancements aligning developers with an ever-changing development ecosystem. In this blog series, I will explore critical updates in different areas of .NET.  For this post, I will look through advancements in System.Text. ...

What's new in .NET 9: Two new LINQ methods

.NET 9 is releasing in mid-November 2024. Like every .NET version, this introduces several important features and enhancements aligning developers with an ever-changing development ecosystem. In this blog series, I will explore critical updates in different areas of .NET. In this post, I'll look at two new LINQ ...

Exploring C# 11 Features: What's New and How to Use It

C# has been a popular programming language for many years now. It continuously evolves to include new features and adopt recent trends. Its flexibility makes it a language ideal for many different domains and platforms like desktop applications, enterprise systems, web development, games, cross-platform, and native mobile applications. Back when ...

What's new in .NET 9: Cryptography improvements

.NET 9 is releasing in mid-November 2024. Like every .NET version, this introduces several important features and enhancements aligning developers with an ever-changing development ecosystem. In this blog series, I will explore critical updates in different areas of .NET.  For today's post, I'll present some improvements ...

Boosting Code Readability and Manageability in ASP.NET Core

In Software development, code readability transforms complexity into clarity.  Martin Fowler said: Any fool can write code that a computer can understand. Good programmers write code that humans can understand. Code should be readable and manageable so other developers can understand and work without additional fatigue. .NET has many ways ...