This article describes creation of a relationship between tables in LightSwitch using Visual Studio 2012.Procedure for creation of a relationship in LightSwitch 2012.Step 1In the LightSwitch Application, open the Solution Explorer.Step 2Right-click on the data source and choose "Add table".Step 3Here we will add two tables.Emp Table:Item Table:Step 4Select the "Relationship" button form the menu bar.The Add New Relationship dialog box appears. Establish the relationship between the "Item" and "Emp" tables.Step 5The Application Designer appears.Step 6Go to the Solution Explorer, right-click on the screen and choose "Add Screen".The New Screen Designer appears. Select a New Data Screen template and under Screen Data choose "Emp". You can provide a Screen Name of your choice and click the "OK" button.Step 7The screen designer appears.
Step 8Add a new "Search" Screen and under Screen Data choose "Emp" and click the "OK" button. Step 9 Press F5 to run the application. Insert some value into the fields and click the "Save" button.You will see that you can easily find the data in the Search Screen.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: