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.

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

3 Essential Techniques for Managing Transactions in EF Core

Transaction are a crucial concept in database operations. It helps in updating related data safely without leaving the database state inconsistent. Entity Framework Core (EF Core) provides a mechanism to wrap database operations as transactions. In this blog post, we will see what a transaction is and how we can ...

Caching Strategies in ASP.NET Core

Decreasing response time is one of the key measures towards improving the user experience of an application. Caching techniques and other practices can help your .NET application perform well with low effort. With caching, you can keep frequently accessed delay-prone data in a fast, accessible location. This can improve your ...