Year: 2015
-
Thanks for attending workshop on AngularJS at Infragistics Day
You can view photos from of Infragistics Day here I will start with thanking Jaosn Beres and Infragistics for letting me do it. Can you see any one tired in below photo? This was the group photo taken after marathon 8 hrs coding done by 140+ developers at Infragistics Day. Yes these smiling faces say…
-
How to Enable CORS in the ASP.NET Web API
Have you ever come across the following error: “Cross-origin Request Blocked. The same origin policy disallows reading the resource”. Us to! It turns out, we get this error due to lack of CORS support while sharing resources. When we try to consume the Web API from origin A in a web application residing in origin…
-
How to work with the Ignite UI Chart in an AngularJS application
In this post we will learn how to work with the Ignite UI chart in an AngularJS application. Although I will use the ASP.NET Web API to pull data from the database, you can use REST service or a Web API created on any stack with the Ignite UI charts in your AngularJS application. This…
-
Validating User Input on a Form in Angular JS
I have often seen entry level developers struggling with user input validation in AngularJS single page applications. In this post, I will give a quick but useful introduction of validations in AngularJS; consider this post as a base learning document from which you can do further learning. Let’s start with an example as shown in…
-
Creating an ASP.NET Web API using the Entity Framework Code First approach and the Repository pattern
In this article, we will learn how to create an ASP.NET Web API using the Repository pattern and the Entity Framework code first approach. Essentially you’ll learn how to: Create a core project which will contain entity and the repository interface; Create an Infrastructure project which will contain database operations code using the Entity Framework…
-
How to perform a CRUD operation on the jQuery igGrid with the ASP.NET Web API
In this post we will learn how to perform a CRUD operation on the igGrid using the ASP.NET Web API, including: Creating the ASP.NET Web API using the Entity Framework database first approach Performing a CRUD operation on the igGrid in a jQuery application At the end of the post we should able to create…
-
Getting started with .NET unit testing using NUnit
It’s usually good practice to have automated unit tests while developing your code. Doing so helps you find bugs early in the development cycle and saves you time in the long run. These tests can be run by the developer multiple times to verify the behavior of a particular unit of code for different sets…
-
How to Unit Test Private Methods in MS Test
Before we start to see, how a private method can be unit tested using the MS Test? Let us discuss whether it is a good idea to test a private method or not? Often I have seen there are two school of thoughts, Private methods should be tested. Private methods should not be tested. To…
-
Exploring Angular’s “Controller as” Syntax and the vm Variable
Read full article on the Infragistics blog Often, I hear developers ask “What is the ‘controller as’ syntax and how it is different from the $scope object approach of controller creation?” In this post we will learn about controller as syntax and compare it with the $scope object approach of controller creation. In AngularJS 1.2,…
-
Simplifying the Liskov Substitution Principle of SOLID in C#
Before I start writing this article, I want to thank Steve Smith for his great course on the same topic with Pluralsight. This post is inspired by that course. Read full article on the Infragistics blog here The Liskov Substitution Principle says that the object of a derived class should be able to replace an…