You are here:   Forum
Register   |  Login


Forum Notice

This Forum is ARCHIVE only
For LightSwitch questions,
please use the official forums at:


An Encrypted String Data Type for Visual Studio LightSwitch (Joe Kunk)
Last Post 01 Jul 2011 05:16 PM by admin. 0 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Michael WashingtonUser is Offline
Send Private Message

01 Jul 2011 05:16 PM
    In my recent article, "Is Visual Studio LightSwitch the New Access?", I looked at the suitability of LightSwitch as a replacement tool for departmental applications developed in Microsoft Access. LightSwitch is being positioned as a tool for the power user to develop Microsoft .NET Framework applications without having to face the substantial learning curve of the full .NET technology stack. I described each of the six extension types available to add the functionality to LightSwitch that an experienced .NET developer might want to use to make development in LightSwitch easier, or that a designer may want to use to build a visually appealing application.

    Read More... ]
    Michael Washington
    You are not authorized to post a reply.

    Latest Microsoft Visual Studio LightSwitch Forum Threads That Have Answers

    I am using Microsoft LightSwitch framework, need to add dynamic items in choice list. So far I found different posts saying that choice list is only for static items and you have to use a separate table if you need to populate it in non-static means. In my case, table will also not be a good option, I want to add items manually from C# code. Actually I need to populate years combobox, for this I need to add last 3 years, current year, and one next year. This I could not achieve through static data or TABLE will also be not a good idea. Muhammad Idrees

    Lets suppose that you have a Customer Entity. You have configured Row Level Security (RLS) so that the current user can only see the Customers that she/he created. From withing the Lightswitch Clients (Silverlight or HTML) it is impossible to Read, Delete or Update Customers that the user can´t read because of the configured RLS. You need to "see" the customers in a Screen in order to invoke Delete or Update Operations. But... Now you connect to the middle tier of this app from another external client (for example a WPF client). Lets suppose that you know the Id of a specific Customer that the RLS prevents you from reading (Id=124 for example) and you try to delete this customer sending HTTP commands to the oData endpoint... Will the middle tier prevent you from deleting the Customer with Id=124 ? I was trying to simulate a Delete Operation with fiddler but I was not able to achieve this.

    Create hook not firing on add
    10/8/2015 8:47 AM
    Created a simple entity and wanted to set default values. Added code to the created hook. But it's never called even after I have saved my add/edit window

    I having a problem coding an AddEdit Screen. When I use the Lightswitch existing method  to add an item the screen However I am trying to implement this using code from Michael Washingtons's book : myapp.ViewAssetRegister.AddAssetDepreciationAdjustments_Tap_execute = function (screen) { // Write code here. myapp.showAddEditAssetDepreciationAdjustments(null, { beforeShown: function (addEditScreen) { // Create new AssetDepreciationAdjustment here so that // discard will work. var newAssetDepreciationAdjustment = new myapp.AssetDepreciationAdjustments(); addEditScreen.AssetDepreciationAdjustments = newAssetDepreciationAdjustment; }, afterClosed: function (addEditScreen,navigationAction) { // If the user commits the change, // update the selected order on the Main screen if (navigationAction === msls.NavigateBackAction.commit) {

    I have the following code on an inserting method in a CBA. partial void CapitalAllowanceAllocations_Inserting(CapitalAllowanceAllocations entity) { int assetRegisterID = 1355313; int capitalAllowanceCategoryID = 1; decimal percentage = 0.50m; //int assetRegisterID = entity.AssetRegister.AssetRegisterID; //int capitalAllowanceCategoryID = entity.CapitalAllowanceCategories.CapitalAllowanceCategoryID; //decimal percentage = entity.Percentage; using (SqlConnection connection = new SqlConnection()) { string connectionStringName = this.DataWorkspace.WahacaData.Details.Name; connection.ConnectionString = ConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString; string procedure = "finance.CalculateCapitalAllowanceTotals"; using (SqlCommand command = new SqlCommand(procedure,

    Microsoft Visual Studio is a registered trademark of Microsoft Corporation / LightSwitch is a registered trademark of Microsoft Corporation