Async Programming with Async/Await on ASP.NET

Synchronous vs. Asynchronous Request Handling Before diving into asynchronous request handlers, I’d like to briefly review how synchronous request handlers work on ASP.NET. For this example, let’s say the requests in the system depend on some external resource, like a database or Web API. When a request comes in, ASP.NET takes one of its thread… Continue reading Async Programming with Async/Await on ASP.NET

Building OrderBy Lambda Expression from Property Name in C#

Introduction: Here in this post, I am going to see how to make a lambda expression from a property name of a particular entity, and use it for OrderBy shorting for both IQueryable and IEnumerable sources. Background: Let’s say we have a model. public class Phone { public double Price { get; set; } public… Continue reading Building OrderBy Lambda Expression from Property Name in C#

Difference Between IEnumerable, IQueryable, ICollection, IList and List

Since long time, I was trying to understand the difference between these four. Today morning I did some research and got the concept. Brief is below: IEnumerable<T> is the base interface that the following extend or implement. It doesn’t allow for direct access and is readonly. So use this only if you intend to iterate… Continue reading Difference Between IEnumerable, IQueryable, ICollection, IList and List