Consuming ODATA Services from LightSwitch with Impersonation

In case you are still using LightSwitch and are not entirely relying on its internal features, you might have started using ODATA services as LightSwitch data sources. This comes in especially handy when combined with the Microsoft Managed Extensibility Framework (MEF) which lets you create decoupled components that can be easily plugged into your core […]

Relative Path to DLL References in LightSwitch Projects

When I was writing unit tests for an ODataController I needed the references to the Microsoft.Lightswitch.dll and to the Microsoft.LightSwitch.Server.dll in the unit test project. I tried to add them with the Reference Manager in Microsoft Visual Studio (Solution Explorer: Right click on references -> Add reference…) but couldn’t find the references. The Reference Manager […]

Switching Language at Runtime in LightSwitch HTML Client

Introduction Hi, back again and as I promised in my last post, I will show you, how we can change the language in our localized LightSwitch HTML 2013 application. HINT: This article describes a “hack” and if anybody have a better idea-let’s talk about it! :-) Prerequisites You have to be familiar with localizing a […]

Cloud Business Apps with LightSwitch and SharePoint 2013 – The Pain with iOS and NTLM

Introduction This article describes building a Cloud Business App with LightSwitch HTML (2013) and SharePoint 2013. As you know, LightSwitch is a fantastic technology to develop fancy and responsive apps. A lot of articles already describes how to build them. Integrating in SharePoint 2013 as an app is also already described in many articles, so […]

LightSwitch HTML Client and Custom Icons for Buttons

Introduction LightSwitch is very powerful to build apps, but often, the standard LightSwitch controls, buttons and their appearances do not reflect your needs. In this article, I will show you an easy way to build buttons with a custom icon. Prerequisites For this article I used Visual Studio Update 3 and created a new LightSwitch […]

Full example of an ODATA Controller for ActiveDirectory search operations with the LightSwitch HTML Client

Introduction First, thank you all for your feedback to my first post, regarding the Extending the LightSwitch HTML client with a cascading push menu. Today I will show you, how to use an ODATA v3 Controller for ActiveDirectory search operations within a LightSwitch application. For this I will use the sample A simple ODATA v3 […]

Extending the LightSwitch HTML client with a cascading push menu

This article is about a project with the LightSwitch HTML Client and Visual Studio 2013 Update 2 and addresses a shortcoming in LightSwitch that it only provides very basic menu options (to say the least) … Introduction In one of our projects, we had the requirement to spice up the screens with a proper menu […]

Using LightSwitch with EntityFramework 6 and CodeFirst based ODATA Controllers

Enhancing LightSwitch applications with additional ODATA or WebAPI controllers is a pretty common task. However when you try to build a CodeFirst based controller in combination with EntityFramework 6, you will run into a lot of errors by default. Here are the steps to get this cleared and running: 1. Create a Visual Studio LightSwitch […]

A simple ODATA v3 Controller for ActiveDirectory search operations

Today I would like to present you a simple ODATA search controller that you can use in LightSwitch (or any other ODATA consumer) to look up user accounts (and possibly other objects). When using SharePoint you will probably know the very convenient PeoplePicker. However, in LightSwitch (HTML) there is no equivalent to that. You certainly […]

LightSwitch and NonSQL Data Structures with Server Side Validation


When working with LightSwitch (HTML Client or not) you define your entity sets via the Designer and set their relations. As the whole database schema is automatically created and maintained for you by the LightSwitch runtime you have relatively little control over how to handle changes once you have to alter your entity sets. In […]