Questions tagged [visual-studio-lightswitch]

Microsoft Visual Studio LightSwitch is a rapid application development tool for creating data centric Silverlight or HTML5 applications.

LightSwitch is a rapid application development tool for creating data centric Silverlight or HTML5 applications. Silverlight client can be extended using custom controls and RIA Services data sources. LightSwitch applications focus solely on data entry and provide no built-in support for reporting, although 3rd party reporting extensions are available. Applications created with LightSwitch can be deloyed as Windows desktop applications (using the WCF service host to create local RIA services), in a 3 tiered LAN configuration, as web applications hosted on IIS 7, or using the Microsoft Azure platform.

Visual Studio LightSwitch version 1.0 was released on July 26, 2011. It appears in two configurations: a simplified version of Visual Studio that can only build LightSwitch applications, and as a project type within Visual Studio Professional or better. A trial copy can be downloaded from the Microsoft website here.

Other useful resources include:

1073 questions
4
votes
0 answers

Modifying Request Validation for Lightswitch WCF RIA Services

I have a VS2010 Lightswitch application which uses a number of services which I've developed in a separate DLL and added to the application as WCF RIA Services. My problem is that some of these service calls include string parameters that can…
Emmanuel
  • 3,475
  • 6
  • 29
  • 45
4
votes
1 answer

Connecting to a remote database from Azure Websites

I'm trying to 'collate' some data into one database. This requires me to connect to MySQL and MSSQL databases from my Azure Website (it's actually a lightswitch app using mysql connector.net). Is this possible? I get the following error from…
4
votes
2 answers

How can I use MySQL with Visual Studio 2012 Lightswitch?

How can I use MySQL with Visual Studio 2012 Lightswitch? I want to use Amazon AWS RDS for the MySQL server. I'm getting an error: Failed to find or load the registered .Net Framework Data Provider.
4
votes
1 answer

LINQ - filter duplicates with condition

I'm developing an .NET application where I need to filter data from SQL Server 2008 depending on a condition. My data structure looks like this: The result should be grouped and sorted by Key. By default, the row with Revision null should be…
4
votes
1 answer

Delaying the firing of Lightswitch autocomplete filters

I am trying to find a way to delay the list retrieval on a Lightswitch autocomplete box so that it only fires after 3 characters have been entered by the user. This is for performance reasons so that LS doesn't return thousands of items after the…
4
votes
0 answers

LightSwitch DatePicker Default Value

In LightSwitch, my experience has been that a date picker will show the most recent date viewed for a particular field when a null date is viewed. For instance: 1 I view a Contract Offer Date that is set to '5/1/2012' on one detail page of a List…
4
votes
1 answer

Field Formatting in Lightswitch HTML Client Preview2

Just trying to format a Date (or any field for that matter) in LightSwitch HTML Client Preview 2. I have tried this 'Format Pattern' field: But it always seems to be ignored: I have tried a lot of different types of fields including Text,…
Peanut
  • 2,126
  • 4
  • 25
  • 38
3
votes
4 answers

GetManifestResourceStream giving Null Reference exception ( Parameter name: streamSource)

I keep on getting a null reference exception from GetManifestResourceStream, am trying to add Logo image to the Lightswitch ribbon and it is supposed to work just fine.... was referring to LR__…
Thuto Paul Gaotingwe
  • 1,425
  • 4
  • 15
  • 15
3
votes
1 answer

show/hide controls based on dropdown list value

I have an application that I am working on, and need to show/hide controls based on a selected value in a dropdown list. By default most of the controls will be hidden and when a value ("VFD") is selected from the Control Device control, the hidden…
Jason
  • 333
  • 1
  • 6
  • 17
3
votes
2 answers

How to access database in lightswitch in other class?

I just don't know how to explain this clearly. So I create a simple image pattern of what I did. My question is, how would I be able to access my database in other class in LS? I've been searching on net, but I didn't found any solution. I hope…
fiberOptics
  • 6,955
  • 25
  • 70
  • 105
3
votes
1 answer

How do I create/use a Lightswitch domain model (EF) from a standalone app?

The rest of my team are working on a Lightswitch CRUD & reporting app, and I'm looking at migrating a load of legacy data into the underlying SQL Server database they're using. Their Lightswitch app already exposes a domain model (based on Entity…
3
votes
1 answer

Lightswitch - How to re-use existing resources?

I am trying to understand what is the most streamlined way of customizing the look and feel of my LightSwitch applications. I have built several WPF and Silverlight applications, and have a common set of brushes, styles, storyboards, images, etc,…
Gus Cavalcanti
  • 10,527
  • 23
  • 71
  • 104
3
votes
3 answers

LightSwitch and IIS 7 Windows Authentication

I ask this under the pretense of LightSwitch as that is what I am trying to deploy even though I have a sneaky suspicion that it has nothing to do with it. If I have Authentication Enabled in any form on any App Type for LS I get the "Load…
Refracted Paladin
  • 12,096
  • 33
  • 123
  • 233
3
votes
1 answer

Using Lightswitch with my own Domain objects

I'm working on an asp.net application. I have a Domain assembly (containing mostly command and queries code), a Domain.Contract assembly ( containing mostly the domain objets), a Repository (called by the Domain) and the Web site. For some specific…
Guillaume
  • 1,076
  • 10
  • 21
3
votes
1 answer

How do I refer a different screen in LightSwitch?

I need to get a value of a text box which is the parent screen in the ListDetails screen. The parent screen gives me a list of users and the child (details) screen gives me a list of permissions associated with that user. When I add a new…
rizalp1
  • 6,346
  • 2
  • 17
  • 19