How To
Using the OrderBy and OrderByDescending in LINQ
By Tan Lee Published on Feb 22, 2025 97
The OrderBy and OrderByDescending operators in LINQ are powerful tools for sorting collections of data elements based on specific criteria. These operators enable efficient and flexible sorting of data, making it easier to organize and display information.
Querying with LINQ
By Tan Lee Published on Feb 22, 2025 87
LINQ (Language Integrated Query) is an essential feature in C# that simplifies data querying from various sources in a standardized manner.
Optimizing Performance with Compiled Queries in LINQ
By Tan Lee Published on Feb 22, 2025 82
In modern software development, application performance is often a top priority to ensure smooth user experiences and efficient scalability. When using LINQ (Language Integrated Query) in C#, developers can enhance query performance with a feature called compiled queries.
MinBy() and MaxBy() Extension Methods in .NET
By Tan Lee Published on Feb 22, 2025 91
In this article, we will explore two exciting new LINQ extension methods introduced in .NET 6: MinBy() and MaxBy(). These methods provide a more streamlined and efficient way to find the minimum or maximum value in a sequence, based on a key selector function.
Understanding Single, SingleOrDefault, First, and FirstOrDefault in LINQ
By Tan Lee Published on Feb 22, 2025 121
LINQ (Language Integrated Query) in C# is a powerful tool for querying and manipulating data collections. Among its many operators, Single, SingleOrDefault, First, and FirstOrDefault are commonly used to retrieve specific elements from sequences.
Creating Dynamic LINQ Queries in C# with Predicate Builder
By Tan Lee Published on Feb 22, 2025 143
In C#, one of the most powerful techniques for building dynamic LINQ queries is using the Predicate Builder.
How to Use Select and SelectMany Effectively in LINQ
By Tan Lee Published on Feb 22, 2025 100
When working with LINQ in C#, two of the most commonly used methods are Select and SelectMany.
Optimizing LINQ: Best Practices and Tips
By Tan Lee Published on Feb 22, 2025 68
In this article, we will explore some of the best practices for using LINQ (Language Integrated Query) in software development.
Options Pattern In ASP.NET Core
By Tan Lee Published on Feb 21, 2025 187
The Options Pattern is a design pattern in ASP.NET Core that simplifies the management and access of application settings.
Implementing Rate Limiting in .NET
By Tan Lee Published on Feb 21, 2025 215
Rate limiting is a crucial feature for any publicly exposed API or application. It helps prevent resource exhaustion, ensures fair usage, and provides protection against malicious attacks like denial-of-service (DoS).
Exploring Hybrid Caching in .NET 9.0
By Tan Lee Published on Feb 21, 2025 252
Caching plays a crucial role in enhancing application performance by reducing data retrieval time and minimizing database or API calls. In .NET 9.0, Microsoft introduces advanced caching techniques, including Hybrid Caching, which combines the benefits of in-memory and distributed caching.
Using Entity Framework with IDbContext in .NET 9.0
By Tan Lee Published on Feb 21, 2025 281
Entity Framework (EF) Core is a powerful ORM for managing databases in .NET applications. While EF Core provides ease in interacting with databases, directly using DbContext in services or repositories can create tight coupling and make unit testing more challenging.