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....
About the Author