Getting started with Lightswitch using MVC Part 1

Rama Sagar
Posted by in LightSwitch category on for Beginner level | Points: 250 | Views : 10880 red flag

According to Microsoft Most business applications are forms-over-data applications that provide a UI for viewing, adding, and modifying data. When you use other development tools to build forms-over-data applications, much of your time is spent on repetitive tasks. You write code to interact with a database, you write code for the user interface, and you write code for the business logic. When you use LightSwitch, much of the repetitive work is done for you and, in fact, you can create a LightSwitch application without writing any code at all! For most applications, the only code you have to write is the code that only you can write: the business logic.


Microsoft Visual Studio LightSwitch is an extension and framework specifically tailored for creating line-of-business applications built on existing .NET technologies and Microsoft platforms.

This article shows the walkthrough of how to use MVC with Visual Studio LightSwitch for absolute beginners.

Lets start  creating a LightSwitch Application

  •  Step 1: Create a New Project  Open visual studio 2013 -> click on File -> New Project -> Create new LightSwitchHTMLApplication -> Name it as SampleLightSwitchMVC.

  • Step 2: Lets Install Microsoft ASP.NET MVC and Microsoft ASP.NET IDentity  core Packages from Nuget..Right-click on the Server project and select Manage NuGet Packages as shown below.

      Type Microsoft ASP.NET MVC and install as shown 

   Type Microsoft ASP.NET Identity core and install as shown 


  • Step 3: Right-click on the Server project and select Add Reference‚Ķ


The System.Web.ApplicationServices namespace provides classes that enable us to access ASP.NET forms authentication, roles, and profiles application services as Windows Communication Foundation (WCF) services.


In this Part we have seen how to prepare LightSwitch Application to use MVC....


Page copy protected against web site content infringement by Copyscape

About the Author

Rama Sagar
Full Name: RamaSagar Pulidindi
Member Level: Silver
Member Status: Member,MVP
Member Since: 12/30/2012 1:51:40 AM
Country: India
A Software Profesional working in Microsoft .NET technologies since year 2008, and I work for Dake ACE. I am passionate about .NET technology and love to contribute to the .NET community at Dot Net Funda

Login to vote for this post.

Comments or Responses

Login to post response

Comment using Facebook(Author doesn't get notification)