The intention of this post is to explain about the Repository pattern and how it’s useful in enterprise applications. Introduction Why use Repository Misconceptions Implementation Conclusion Source Code Introduction The repository pattern is an abstraction layer between your database and…
ASP.NET 4.7.1 Hosting – Custom Filter In MVC Or Logging Using MVC Filter
I want to create a filter in MVC project which logs activity of each and every controller action. I am just injecting an object of type ILogger using which I am logging the logs in my Azure table storage. This…
ASP.NET 4.7.1 Hosting – Mapping Similar Objects In ASP.NET Core 2.0
This post is about Automapper. As its name suggests, it will do some sort of mapping. Now, the question is, what sort of mapping? Well, this mapping is all about mapping the properties of two objects with each other. If…

ASP.NET 4.7 Hosting – Using Switch Case Statement In AngularJS Application Using JavaScript/ jQuery
Let us see how to use switch-case statements in JavaScript/jQuery with AngularJS implementation and in .NET Applications. Note Here, one important point needs to be remembered about switch-case statements in JavaScript/jQuery, which is that this is also working in a…

ASP.NET 4.7 Hosting – Accessing Identity And HttpContext Info Using Dependency Injection In .NET Core
If you have been using .NET Core, then you know that Dependency Injection is rather important in this new ecosystem. Thankfully, the development team made it incredibly easy to use. One common scenario that I have seen arise since its…
ASP.NET CORE 2.0 Hosting – Aspect Oriented Programming In C# Using DispatchProxy
Aspect Oriented Programming (AOP) is a very powerful approach to avoid boilerplate code and archive better modularity. The main idea is to add behavior (advice) to the existing code without making any changes in the code itself. AOP provides a…

ASP.NET CORE 2.0 Hosting – Developers Use Case For .NET API Browser
Many times, developers need to know, if a technology or a feature is supported by a specific .NET version. For example, how to verify that .NET Core has Linux support or not. Well, you can always Bing that but wouldn’t…
ASP.NET CORE 2.0 Hosting – Manage Product And Quickly Add It To Cart
In this post I will tell you about how to manage product and Quickly add it to cart. Manage product in ASP.NET. @{ ViewBag.Title = “Index”; // Layout = null; } <!– Latest compiled and minified CSS –> <!– jQuery…
ASP.NET CORE 2.0 Hosting – HttpResponseMessage In WebAPI
A HttpResponseMessage allows us to work with the HTTP protocol (for example, with the headers property) and unifies our return type. In simple words an HttpResponseMessage is a way of returning a message/data from your action. The following is a…

ASP.NET Core 2.0 Hosting: Deleting Files With Events
While writing this utility I found and worked on speed issues, almost all relating to updating the user interface. Processor Class I added a new class in the .Utility.IO namespace called Processor. The purpose of this class is to copy,…