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
2
votes
0 answers

is there a way to make lightswitch screen to display out parameter returned from stored procedure?

I am using the following code to run a stored procedure given some input from user. The stored procedure updates some tables if the input was valid and there isn’t going to be a duplicate record. If the input is invalid or that record already…
Alice
  • 21
  • 1
2
votes
0 answers

Blueimp jquery uploader slide show from database

I'm trying to implement bluimp file upload plugin (https://github.com/blueimp/jQuery-File-Uploadjquery) in my ligthswtich application Everything works well, except blueimp-gallery support. Is there any way to force blueimp-gallery to get his data…
2
votes
1 answer

Lightswitch can't connect to the database on local development (VS 2012)

I have LightSwitch installed in VS 2012. I have SQL Server 2012 Express with LocalDB installed on my machine. I created a new project, add new table, and when I run the project I get the following error: An error occurred while establishing a…
SexyMF
  • 10,657
  • 33
  • 102
  • 206
2
votes
1 answer

Lightswitch Computed property wont compile

I keep making computed propeties on my table, but when I go to edit the code (even using the "Edit Method" link), I can't compile because it says the defining declaration is mia. Here's an error example. Error 1 No defining declaration found for…
jjw
  • 41
  • 5
2
votes
1 answer

Reuse of Lightswitch visual query designer

We are building application with ability for users to extract data without typing SQL queries. LightSwitch query designer looks user friendly. Is it possible to reuse (embed) LightSwitch visual query designer into .NET application?
2
votes
3 answers

Synchronizing two Lightswitch applications

As my title says, I need to figure out how to sinchronize two of my Microsoft Lightswitch applications between eachother. Also, what is important is that one app is on web and other one is created for desktop. So, what I need is to pull down…
Hoh
  • 1,196
  • 1
  • 12
  • 30
2
votes
2 answers

Deploying lightswitch desktop application error

I am having difficulty in deploying my forst lightswitch desktop application. when i try to publish, in the summary window it says Database: Donot Publish and the install.htm file is cofusing to me. Can someone help me with a step by step…
2
votes
4 answers

How to deploy a Lightswitch 2012 app as desktop+local - user connection string

In Lightswitch it is possible to publish the app on the desktop with a local database also on the same computer. In Lightswitch 2012 the publishing wizard asks for a valid user connection string. In Lightswitch 2011 this was more easy because this…
OlimilOops
  • 6,747
  • 6
  • 26
  • 36
1
vote
1 answer

How to use addNew api in lightswitch

Now I started working on lightswith application but I can't achieve crud operation light through api addNew() method like as screen.table.addNew()
1
vote
1 answer

Microsoft LightSwitch - How to write my own custom message in trace.axd

We can access all default trace messages in http://localhost/MyWeb/trace.axd But how can I write my own custom error/logging messages to this trace. I tried System.Diagnostics.Trace.Write() But could not see my message in this trace screen. Can…
M_Idrees
  • 2,080
  • 2
  • 23
  • 53
1
vote
1 answer

Lightswitch screen does not appear in Visual Studio

When I run the application in Visual Studio, some screens are not visible! Screens when App is started in VS 2012 The currently deployed version on the web server, shows all screens. Published Version I cant publish now, since not all screens are…
1
vote
0 answers

LightSwitch VS Deployment Error Message: "Only members on the system admin role or the database owner can set the compatibility level"

My team and I are developing a desktop application for an Information Systems course in South Africa. The application is created on the C# LightSwitch Application on Visual Studio 2012. We tried to do a test deployment of the application, however…
1
vote
5 answers

TimeSpan countdown between given dates

I would to calculate between two given dates the TimeSpan, counting down to 0 days. I have the following code: partial void mExpiration_Compute(ref string result) { DateTime a = mExpiryDate.AddMonths(-1); DateTime b =…
Xdrone
  • 781
  • 1
  • 11
  • 21
1
vote
1 answer

Get a column list of values in LINQ

I would like to get a column of Ages with the values of each row to calculate the Mode. Here is my code: int[] ages = ? var mode = ages.GroupBy(n => n). OrderByDescending(g => g.Count()). Select(g =>…
Xdrone
  • 781
  • 1
  • 11
  • 21
1
vote
1 answer

Create a text file and allow user to download in a lightswitch application

I would like to create a simple text file in my application and allow a user to download it. I have a web application built using lightswitch. I have already google and the responses doesn't help me as it relates to lightswitch. Download text as…
1
2
3
9 10