• How to Implement the Repository Pattern in an ASP.NET MVC Application - Webinar Recap

    On January 29th we hosted a webinar titled “How to implement the Repository Pattern in an ASP.NET MVC Application” for the Indian region and we’d like to share the presentation and recorded webinar with you now! In the webinar, we covered:

    • Getting started with the database first approach
    • Understanding the Repository Pattern
    • Understanding Domain Driven Development
    • Creating Core, Infrastructure,…
    • Wed, Feb 10 2016
  • 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 relationship with ASP.NET Identity 2.0 user table
    • Connecting an ASP.NET MVC application to Azure Storage
    • Creating or Uploading…
    • Mon, Jan 25 2016
  • 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:

    1. ViewData of the Controller
    2. TempData of the Controller
    3. ViewBag of the Controller
    4. View of the Controller

    Let’s get started!

    Creating the MVC Project under Test

    Let us go ahead and create…

    • Fri, Jan 15 2016
  • Getting started with Azure API Apps and Azure MVC web App in Azure App Service

    In this article, you will learn how to create Azure API Apps and an MVC client deployed in Azure We App. This is going to be a very simple application connecting various components of Azure App services, and to build it we’re going to use Azure API App, Azure Web App, and SQL Server in Azure. A high level architecture of the application can be drawn as shown in the image below:

    Essentially, in this post we will…

    • Mon, Jan 11 2016
  • Webinar Recap: JavaScript for C# Developers

    On December 11th we hosted a webinar titled “JavaScript for C# Developers” for the Indian region and we’d like to share the presentation and recorded webinar with you now! In the webinar, we covered:

    • Function as statement
    • Function as expression
    • Return statement
    • Parameters in function
    • The Arguments object
    • Vargs JavaScript function
    • Scopes in functions – global, local, and lexical
    • this keyword
    • JavaScript…
    • Mon, Dec 21 2015
  • Areas in ASP.NET MVC

    What is an Area in ASP.NET MVC?

    Areas are some of the most important components of ASP.NET MVC projects. The main use of Areas are to physically partition web project in separate units.  If you look into an ASP.NET MVC project, logical components like Model, Controller, and the View are kept physically in different folders, and ASP.NET MVC uses naming conventions to create the relationship between these components. Problems…

    • Wed, Nov 25 2015
  • How to create Custom Filters in AngularJS

     

    Have you ever used filters with the ng-repeat directive as shown in the listing below?
    <div ng-controller="ProductController">
                 <table class="table">              
                     <tr ng-repeat="a in products|filter:searchTerm">
                         <td>{{a.name}}</td>
                         <td>{{a.price}}</td>
                     </tr>
                 </table>
            </div>
     
    If so, then you’ve used a filter in an AngularJS application…
    • Tue, Nov 24 2015
  • Webinar Recap: Getting Started with ASP.NET MVC

    On November 6th we hosted a webinar titled “Getting started with ASP.NET MVC” for the Indian region and we’d like to share the presentation and recorded webinar with you now! In the webinar, we covered:

    • Getting started with ASP.NET MVC
    • Understanding Controllers
    • Understanding Views
    • Understanding Model
    • ViewBag, ViewData, and TempData
    • Strongly Typed and dynamic views
    • Child Action and Partial Views
    • Areas
    • Database…
    • Wed, Nov 11 2015
  • What are ViewData, ViewBag, and TempData in ASP.NET MVC?

     

    I have often seen entry-level developers struggle with the differences between and usage of ViewData, ViewBag, and TempData in ASP.NET MVC. And while there are many articles and blog posts on this topic out there, I’ll try to explain it simply.

    To start with, ViewData, ViewBag, and TempData all three are objects in ASP.NET MVC that are used to carry or pass data in different scenarios. You may have a requirement…

    • Fri, Nov 6 2015
  • How to create relationships between entities in the Entity Framework Code First Approach

     

     
    The Entity Framework Code First approach allows us to create a model as a plain class and then the database gets created from the domain model or entity class. In the Code First approach, the database gets created from the classes.
    Some advantages of the Entity Framework Code First approach include (as stated in Scott Gu’s blog):
            Developing without ever having to open a designer or define an XML mapping…
    • Wed, Oct 21 2015
  • Getting started with TypeScript

     

    TypeScript is superset of JavaScript created by Microsoft. TypeScript – according to its website – “lets you write JavaScript the way you really want to. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript”.
     Some features of TypeScript include:

    ·        Support standard JavaScript

    ·        Static typing

    ·        Encapsulation using the classes and the modules

    ·…

    • Thu, Oct 8 2015
  • The Top 5 New Features in C#6.0

     

    Visual Studio 2015 recently introduced a new version of C# named C#6.0. I would not say it has major features added like Extension Method or LINQ in C# 3.0 or Async/ Await in C# 5.0.  However it has many features that simplify the syntaxes and improve the readability of the code. Major C# 6.0 features include:

    ·        Initializers for auto-properties

    ·        Getter-only auto-properties

    ·        Expression-bodied function…

    • Tue, Oct 6 2015
  • Step by Step AngularJS for Beginners - Webinar Recap

    On September 25th we hosted a webinar titled “Step by Step AngularJS for Beginners” for the Indian region and we’d like to share the presentation and recorded webinar with you now! In the webinar, we covered:

    • Introduction to AngularJS
    • Introduction to SPA
    • Controller and $scope object
    • Controller hierarchy
    • Service and factory methods
    • Routing
    • CRUD operations in AngularJS application

     

    You can…

    • Wed, Sep 30 2015
  • 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 article is divided in two sections:

    1.       Section 1 : creating ASP.NET Web API using Code First approach

    2.       Section 2 :  using Ignite UI…

    • Mon, Sep 7 2015
  • Simplifying the Code First Approach in Entity Framework – Webinar Recap

    On Aug 28th we hosted a webinar on “Simplifying the Code First Approach in the Entity Framework” for the Indian region and we’d like to share the presentation and recorded webinar with you now! In the webinar, we covered:

    • A review of the Code First Approach
    • Creating your first database
    • Managing connection strings
    • Data Annotations and Fluent API
    • The relationship between entities using the Anno…
    • Tue, Sep 1 2015
  • 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 too! 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 B, we get the above error. To solve this error, we need to have a good understanding of CORS…
    • Mon, Aug 31 2015
  • 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 the image below. You have a registration form with three fields with the following restrictions…
    • Wed, Aug 26 2015
  • 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:

    1.       Create a core project which will contain entity and the repository interface;

    2.       Create an Infrastructure project which will contain database operations code using the Entity Framework code first approach;

    3.       Create a Web API to perform CRUD…

    • Mon, Aug 10 2015
  • Getting Started with the ASP.NET Web API - Webinar Recap

    On July 24th we hosted a webinar on “Getting started with ASP.NET Web API” for the Indian region and we’d like to share the presentation and recorded webinar with you now! In the webinar, we explored:

    • An intro to the Web API
    • How to write your First Web API using Scaffolding
    • Consuming Web API in jQuery and IGGrid
    • Enabling CORS
    • Code First and Repository Pattern in Web API

    You can find the recording…

    • Thu, Aug 6 2015
  • 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 Web API for CRUD operations on the City entity and perform the CRUD operations from the igGrid…
    • Thu, Jul 30 2015
  • 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 of input.
    Unit tests essentially check the behavior of a particular unit of the code or the function and are…
    • Mon, Jul 27 2015
  • Step by Step creating Hello World Native Android App using Xamarin

    If you are a beginner with Xamarin, this post is here to help you get started. Step by step, we’re going to show you how to create a native Android app using Xamarin.

    Xamarin allows us to create native Android and iOS apps using C#. In this post, we’ll assume you have downloaded and installed Xamarin, and we’re going to create the app in Xamarin Studio. Let’s see how it’s done:

    Step 1: Create…

    • Wed, Jul 22 2015
  • How to Write Unit Tests in C# - Webinar Recap

    On July 10th we hosted a webinar on “How to write Unit Tests in C#” for the Indian region and we’d like to share the presentation and recorded webinar with you now! In the webinar, we covered:

    • Setting up a the test project
    • Write your first unit test using MS Test
    • Setting up environment for NUnit test
    • Write unit tests using the NUnit.
    • Understanding Red – Green Tests, Test Setup, Test Teardown,…
    • Fri, Jul 17 2015
  • 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,

    1.       Private methods should be tested.

    2.       Private methods should not be tested.

    To put these things in perspective, let us consider a system under test (SUT) Salary class as shown in the listing below.
     
    names…
    • Thu, Jul 16 2015
  • How to create an Azure-based real time Chat Application using Firebase and jQuery

    In this post, we’re going to show you step by step instructions on how to create a Chat application that’s similar to a group chat messenger where many people at any given time can read and send messages with the group. In this example we’re going to use the following technologies:

    1.      Firebase

    2.      HTML

    3.      Bootstrap

    4.      jQuery

    Eventually we will host the application on the Microsoft Azure website…
    • Tue, Jul 14 2015