Questions tagged [lightswitch-2012]

Microsoft Visual Studio 2012 LightSwitch is a rapid application development tool for creating data centric Silverlight and HTML applications.

LightSwitch is a designer-based addition to Visual Studio 2012 to assist in working with data-centric services and applications. When working with a LightSwitch project, the Visual Studio IDE changes to a development environment with only three main editors (in so-called “Logical mode”): the Entity Designer, the Query Designer and the Screen Designer. These editors focus on getting results quickly by being extremely intuitive, fast and easy to use. This adds some obvious benefits to the life of a LightSwitch developer:

  • First, it hides the plumbing (the repetitive code that’s typically associated with the development of these information systems). Easy-to-use editors mean fast development, fast development means productive developers and productive developers mean more value to the business. Or, as Scott Hanselman would say, “The way that you scale something really large, is that you do as little as possible, as much as you can. In fact, the less you do, the more of it you can do” (see Scott Hanselman's Personal Productivity Tips).

  • Second, and perhaps most important, nontechnical people, ranging from functional analysts to small business owners to Microsoft Access or Microsoft Excel “developers”—often referred to as citizen developers—who know the business inside out, can step in and help develop the application or even develop it entirely. The editors hide technological choices from those who prefer to avoid them and silently guide the application designer to apply best practices, such as encapsulating the domain logic in reusable domain models, keeping the UI responsive by executing business logic on a thread other than the UI thread, or applying the Model-View-ViewModel (MVVM) development pattern in the clients.

  • Finally, these editors actually don’t edit classes directly. Instead, they operate on XML files that contain metadata (LightSwitch Markup Language), which is then used by custom MSBuild tasks to generate code during compilation. This effectively frees the investment made in business logic from any technological choices. For example, a LightSwitch project that was made in version 1.0 would use WCF RIA Services for all communication between client and server, whereas that same project now compiles to use an Open Data Protocol (OData) service instead (more on OData later). This is about as adaptive to the ever-changing IT landscape as an application can get.

Source: Shape Up Your Data with Visual Studio LightSwitch 2012

136 questions
0
votes
3 answers

How to set a property value to auto increment in visual studio lightswitch 2012

i want to set a property value in a table to default auto increment,but their are no options to do so in lightswitch2012 to my knowledge which is given that i recently started learning lightswitch,very light. ok heres the real problem,this is the…
0
votes
1 answer

Opening Same Screen in Lightswitch

I have a screen called Customer and has a parameter Id. To open a screen through code I am using: Application.ShowCustomer(customerId); I am calling it in Customer Screen, but nothing happens. I can open a different screen, but I need to open same…
arcbound08
  • 107
  • 8
0
votes
1 answer

How can we resolve "Cannot Edit an Item Outside of the transaction" in LightSwitch?

Error: How can we resolve "Cannot Edit an Item Outside of the transaction" in LightSwitch? Solution: Please your solution and reopen it. for more detail please click here.
Harsh Gupta
  • 307
  • 2
  • 14
0
votes
1 answer

Lightswitch Desktop Application Wont Run in XP SP3

I have developed an application in Lightswitch 2012, and now need to deploy it to a desktop PC running XP SP3. I have already looked at two previous posts Can't run Lightswitch 2012 Programm under Windows XP and Lightswitch Desktop Application Wont…
maurocam
  • 411
  • 6
  • 15
0
votes
1 answer

In a LightSwitch HTML Client project, should ModelManifest.xml files be stored in repository?

In a LightSwitch HTML Client project, the ModelManifest.xml files present on the Server and HTMLClient directories seem to change every time the solution is opened. This causes merge conflicts if two developers work on the same project. Should the…
Fernando Correia
  • 21,803
  • 13
  • 83
  • 116
0
votes
1 answer

How do I create a one-to-one relationship in WCF RIA Services for LightSwitch?

I've come a long way in my understanding of WCF RIA Services and Microsoft LightSwitch, but now I'm at a loss. I'll use Animal and Dog as examples. I actually want a zero-or-one-to-one relationship, not every Animal will necessarily be/have…
0
votes
1 answer

Microsoft.LightSwitch.DataServiceOperationException: Invalid argument 'name'

This error appears whenever I save changes to my screen. The last thing I was working on is creating relationships in WCF RIA Services. I have looked at all of the exception information and attempted to step through my code in the debugger to just…
Christopher Galpin
  • 1,088
  • 12
  • 27
0
votes
1 answer

Is it possible to have a startup task in an Azure lightswitch app?

We are currently storing an encryption key in a protected registry key for our other azure apps and have been adding that key via a startup task. While I see that there is a csdef file in the lightswitch app as well, the startup task never seems to…
0
votes
1 answer

Connect to Windows azure storage table from Lightswitch 2012

I need to connect to Windows azure storage table from Lightswitch 2012 app. I found this extension, but it is only for Microsoft Visual Studio 2010 any adsices ?
0
votes
0 answers

Publish lightswitch application to use MySQL

I want to publish a lightswitch application to run with MySQL. I have created tables using lightswitch already. I installed MySQL Connector for .Net I can attach it as an externel datasource. But the MySQL option is not available when selecting the…
0
votes
1 answer

SetBinding() on Custom Image Control

I'm stuck on the SetBinding method. I would like to have 2 kinds of icons in the table, there will be a boolean property and the shown icon will depend on this property. Here is an example : The problem is that I can´t change the icon. I've tried…
0
votes
1 answer

Customize Lightswitch Autocomplete Footer

Is it possible to customize the footer of a light-switch auto-complete box? I want to be able to add a link or a button above the Refresh link. Which would allow me to create a new item. Thanks in Advance
0
votes
1 answer

Custom search screen with date range not working in VS Lightswitch

I created a custom search screen in Visual Studio 2012 LightSwitch based on a Transactions table that has a TransactionDate field. I also added a couple of other fields in my custom search screen that I want to filter. When LightSwitch generated my…
Ray
  • 4,679
  • 10
  • 46
  • 92
0
votes
1 answer

Lightswitch textboxes are not editable

I am building a simple lightswitch application. It has two tables, Cheque and Sale. When i add a new sale, it has the option to select the payment type. And if the cheque option is selected, i need to enter the cheque details for the sale. I have…
0
votes
2 answers

Using Computed Field in LightSwitch Query

Lets say I have a simple table of Customer with Field DayOfBirth and a computed field 'Age' Now I want to Search the table using Age. I pass Age as parameter to the query so the first thing that came to my mind was : query = from…
Stacker
  • 8,157
  • 18
  • 73
  • 135
1 2 3
9
10