Introduction In this modern era of enterprises application, entity framework playing a key role in dealing with the databases. so we need to follow the best practices in each statements of our code to speedup. Sometimes we developers will have multiple options to check the same condition. We must choose the best option else it will cost to us. Let's have this scenario, we need to check whether our collection object is having any elements in LINQ. We can use Any() method or Count()>0, still this is debatable topic in many technical forums. So, I decided to create this article for the developers who is having same thought which I am having. Let's conclude is our way Approaches Performance checking for Any and Count LINQ Methods is trickiest thing over ICollection<T> and IEnumerable<T> ICollection<T> Count is better performer than Any Method IEnumerable<T> Any is best option, no availability of Count property Public API To check the performance, I nee
Introduction We are in the new world of microservices and cross-platform applications which will be supported for multiple platforms and multiple heterogeneous teams can work on the same application. I like ASP.NET Core by the way its groomed to support modern architecture and adhere to the software principles. I am a big fan of dot net and now I become the craziest fan after seeing the sophisticated facility by dot net core to support infrastructure level where we can easily perform vertical and horizontal scaling. It very important design aspect is to keep things simple and short and by the way, RESTFul applications are build and it is a powerful mantra for REST-based application and frameworks. Some times we need to overrule some principles and order to handle some situations. I would like to share my situation of handling HTTP long polling to resolve the ASP.Net core 2 mins issue. What is HTTP Long polling? In the RESTFul term, when a client asks for a query from the serv