Here we will see how to use the Computed Property in a LightSwitch Application (Visual C#) in Visual Studio 2012.
The following is the procedure for using the Computed Property in LightSwitch.
Step 1
Open the Solution Explorer.
Step 2
In the Solution Explorer, right-click on the Server and choose "Add Table".
Step 3
The table appears.
Step 4
In the table designer go to the menu bar and choose "Computed Property".
Once you click on it, a column is added as Property1 to the table.
We can easily change the name of the column by clicking on it and renaming it, as well as change the data type.
Step 5
Select the Computed Property column and go to the property window and click on the "Edit Method" link as shown.
Step 6
The Code Designer appears.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.LightSwitch;
namespace LightSwitchApplication
{
public partial class Employee




Join the conversation! Your thoughts help the community grow.