What is the Extension Method in C#?

Read full article on Infragistics blog I often get questions about the Extension Method in C#. The Extension Method was introduced in C# Version 3.0. and allows us to add functionalities in an existing class without modifying it, extending it, or re-compiling it. Essentially, the Extension Method allows us to add a new method toContinueContinue reading “What is the Extension Method in C#?”

Got Microsoft Most Valuable Professional Award 7th times

  Thank you Microsoft, once again for recognizing me and my contributions I am very excited and happy to share that, once again I have got Microsoft Most Valuable Professional (MVP) Award. Microsoft has been awarding me this prestigious MVP Award for last 7 consecutive years. Even though, I have got it many times, IContinueContinue reading “Got Microsoft Most Valuable Professional Award 7th times”

How to Implement the Repository Pattern in ASP.NET MVC Application

Read full article on the Infragistics blog The Repository Pattern is one of the most popular patterns to create an enterprise level application. It restricts us to work directly with the data in the application and creates new layers for database operations, business logic and the application’s UI. If an application does not follow theContinueContinue reading “How to Implement the Repository Pattern in ASP.NET MVC Application”

How to Create a Custom Action Filter in ASP.NET MVC

Read full article on the Infragistics blog In ASP.NET MVC, Filters are used to inject logic at different levels of request processing and allow us to share logics across Controllers. For example, let’s say we want to run a security logic or a logging logic across the controller. To do so, we’ll write a filterContinueContinue reading “How to Create a Custom Action Filter in ASP.NET MVC”

Different ways of injecting dependency in an AngularJS Application

When you start learning the very first characteristics of AngularJS, you may come across something called Dependency Injection (DI): the premise that AngularJS injects dependencies whenever an application needs them. As a developer, our task is only to pass the dependency to the module and everything else will be taken care by AngularJS. To createContinueContinue reading “Different ways of injecting dependency in an AngularJS Application”

What is a Provider () in AngularJS?

The provider() function allows us to create a configurable service where we can set input per application for the service created using the provider (). For example, if we need to set API key to access a service on the application level, we can set that in the module config and pass input to theContinueContinue reading “What is a Provider () in AngularJS?”

Creating a photo album for ASP.NET MVC 5 Users using Azure BLOB storage

In this blog post, we will integrate ASP.NET MVC with Azure BLOB Storage by saving an image for an ASP.NET Identity 2.0 user in Azure BLOB Storage. We’re going to cover a lot of ground in this post, including: Using ASP.NET Identity 2.0 user as reference in other table. Creating a one to many relationshipContinueContinue reading “Creating a photo album for ASP.NET MVC 5 Users using Azure BLOB storage”

Creating Unit Tests for ASP.NET MVC Controllers

In this blog post, we will learn to write unit tests for various MVC controller’s behaviors, such as view’s return types, redirecting to different actions etc. Specifically, we’ll cover writing Unit Tests for: ViewData of the Controller TempData of the Controller ViewBag of the Controller View of the Controller Let’s get started! Creating the MVCContinueContinue reading “Creating Unit Tests for ASP.NET MVC Controllers”