You are here:   Blog
Register   |  Login

 

By Michael Washington on 10/6/2013 9:34 PM

 

 

image

Handling complex business logic in a Single Page Application (SPA) is not a simple task. Process flow that is normally easily enforced in a traditional postback web application, can have security holes, because hackers can access the service methods directly...

By Michael Washington on 10/5/2013 6:28 AM

 image

The primary reason you may want to use WCF RIA Services with Visual Studio LightSwitch 2013 is to:

  • Combine more than one entity into a single entity.
  • Eliminate unneeded columns in an entity to improve performance (otherwise large amounts of data, for example pictures, will be transmitted even when they are not shown).
  • Implement calculated fields that allow the resulting values to be searchable and sortable.
By Michael Washington on 5/4/2013 10:29 AM

image

The primary reason you may want to use WCF RIA Services with Visual Studio LightSwitch 2012 is to:

  • Combine more than one entity into a single entity.
  • Eliminate unneeded columns in an entity to improve performance (otherwise large amounts of data, for example pictures, will be transmitted even when they are not shown).
  • Implement calculated fields that allow the resulting values to be searchable and sortable.
By Michael Washington on 4/17/2013 10:28 PM

image

This article describes a Visual Studio LightSwitch HTML Picture File Manager that uses WCF RIA Services to upload and view files on the web server.

By Michael Washington on 11/24/2012 7:15 AM

image

When you upgrade a LightSwitch project that uses WCF RIA Services to the format used in HTML Client Preview 2,  you may get the error: ApplicationData.cs could not be found…

By Michael Washington on 9/1/2012 8:38 AM

image

Visual Studio LightSwitch has the capability to allow you to create a picture file manager that will upload files to the server hard drive and display them in the user interface. This article builds on the previous article: Saving Files To File System With LightSwitch (Uploading Files). The difference is that in this article the pictures uploaded are displayed and you have the ability to delete them…

By Michael Washington on 2/29/2012 12:54 PM
clip_image001

Many of you have discovered the power of using WCF RIA Services that are simply pointing to the internal LightSwitch database. The LightSwitchHelpWebsite.com has covered this in the articles:

WCF RIA Service: Combining Two Tables

Using WCF RIA Services In LightSwitch To Simplify Your Application UI

...
By Michael Washington on 11/19/2011 7:15 PM
image

In this article we will create a simple chat application. If different users are using the same LightSwitch application, they will be able to chat with each other.

image

...
By Michael Washington on 11/3/2011 8:23 PM
clip_image018

Sometimes we are faced with the need to read data from a .csv (comma separated value) or Excel file. One option is to import the data, but this can turn out to be more trouble than any benefit if the file changes frequently.

Using WCF RIA Services allows the option to place the .csv or Excel file on the server hard drive and have LightSwitch access the data directly. When the file changes, simply...
By Michael Washington on 8/20/2011 10:37 AM
image

LightSwitch is a powerful application builder when you use WCF RIA Services and Silverlight Custom Controls (or Silverlight Control Extensions). Otherwise, it is merely just a fast and easy application builder. In order to be fast and easy, LightSwitch has it’s limitations. However,...
By Michael Washington on 8/1/2011 9:37 AM
Note: If you are new to LightSwitch, it is suggested that you start here: Online Ordering System (An End-To-End LightSwitch Example)

Note: You must have Visual Studio Professional (or higher) to complete this tutorial

LightSwitch is a powerful application builder, but you have to get your data INTO it first. Usually this is easy, but in some cases, you need to use WCF RIA Services to get data into LightSwitch that is ALREADY IN LightSwitch.

LightSwitch operates on one Entity (table) at a time. A Custom Control will allow you to visualize data from two entities at the same time, but inside LightSwitch, each Entity is always separate. This can be a problem if you want to, for example, combine two Entities into one.

LightSwitch wont do...
By Michael Washington on 6/25/2011 9:28 AM
image

This article describes how you can upload files using LightSwitch, and store them on the server hard drive. This is different from uploading files and storing them in the server database.

If you want to upload files and store them in the database, see How Do I: Import and Store a Data File by Matt Sampson.

image

...
By Michael Washington on 6/24/2011 6:08 AM

image

WCF RIA Services are the “fix any data issue” solution. If the problem is getting data to your LightSwitch application, and the normal create or add table will not work, the answer is to use a WCF RIA Service.

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