Query Reuse in Visual Studio LightSwitch

One of the features available in Visual Studio LightSwitch is to model queries that can be reused in other queries that you model.  This allows developers to write a potentially complex query once and be able to define other queries which reuse that logic.  In V1 of LightSwitch, this query reuse is exposed through the…


How to reference security entities in LightSwitch

In Visual Studio LightSwitch, there are a set of security entities defined by the runtime such as UserRegistration, Role, and Permission.  Numerous people have asked how they can create relationships to these entities.  These entities can’t be referenced within a developer’s application model.  They are only available programmatically.  There are potentially multiple solutions for working…


Filtering data based on current user in LightSwitch apps

In many applications, you need to filter data that is only relevant to the particular user that is logged in.  For example, a personal information manager application may only want users to view their own tasks and not the tasks of other users.  Here’s a walkthrough of how you can setup this kind of data…


Using application permissions in Visual Studio LightSwitch

Securing your Visual Studio LightSwitch application begins with defining permissions.  In the first version of LightSwitch, developers are responsible for defining and consuming their own permissions.  Once permissions have been defined, you can write the business logic to consume them where appropriate.  As part of the development process, only permissions and their associated logic need…


How to: designing one LightSwitch screen to create or edit an entity

Visual Studio LightSwitch provides screen templates for defining a details screen or a new data screen for an entity.  But you may want to use the same screen for doing both tasks.  This allows you to have a consistent experience no matter whether you are creating an entity or simply editing an existing one.  Here’s…


Authentication Features in Visual Studio LightSwitch

LightSwitch lets you configure your applications to use authentication.  This allows you to control who is able to access the application and lets your business logic know who the current user is. Configuring the type of authentication to use LightSwitch developers can choose what type of authentication to use for their application.  The options are…


Visual Studio LightSwitch Beta Available via MSDN Subscription

The beta release of Visual Studio LightSwitch has just been made available via MSDN subscription!  You can find it at http://msdn.microsoft.com/subscriptions/downloads.  Just select Developer Tools –> Visual Studio 2010 and you’ll see it at the top of the list.  Download it and have fun.  Let us know what you think.


Introduction to Visual Studio LightSwitch Security

Visual Studio LightSwitch is all about creating LOB applications.  And, of course, managing who can access the data in those applications is highly important.  LightSwitch aims to make the task of managing security simple for both the developer and the application administrator. Here are the basic points about security within Visual Studio LightSwitch: It has…


Back from the Depths: My Work on Visual Studio LightSwitch

I’m back.  And this time for good.  I promise. During the past couple of years, I’ve been working on a cool new developer tool product called Visual Studio LightSwitch.  If you haven’t heard of it, Jason Zander has a good blog post about it which you should read.  Basically, it’s a new rapid application development…