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
1
vote
1 answer

Lightswitch SSO

My question is if I can setup multiple lightswitch applications to authenticate against a single ASP.NET website's authentication provider when using forms authentication, can I not just them up to authenticate against a lightswitch application…
1
vote
2 answers

Stored Procedure using in Light Switch

I want to implement a scenario with light switch. the scenario is like below: 1- create a stored procedure in sql server with 2 input parameters 2- create a form with light switch that provide these 2 input parameters for sp 3- send these 2…
1
vote
2 answers

Lightswitch export all rows to CSV

I am using c# and VS2012 on a lightswitch web-application, I wish to export my data to CSV (on a search screen!), but can't reach any POC, As i understand there are 2 main problems - a savefiledialog must be caused directly from a user button and…
Matan L
  • 997
  • 3
  • 14
  • 35
1
vote
1 answer

Access Variables set in Common Project From Server Project in Lightswitch

So I have redone some of the code to the previous question, however the same underlying issue remains. What i am trying to do is this: When my lightswitch application launch through Application.cs i am using a method Application_LoggedIn() to call a…
1
vote
1 answer

linq query on application code in lightswitch

I am building a lightswitch application. I have my DataSource (sspData > which has all my tables) and my screens. Now I am trying to set a global variable in my Application as shown below. However I can't just query the tables just like:…
1
vote
1 answer

Convert Lightswitch app from VB.Net to C#

I'm working with a Lightswitch application that is using *VB.Net. Although no code has been written yet, there might be some auto-created by Lightswitch. Now I want to add some code to the project but want the whole thing to use C# instead of…
Owen
  • 420
  • 1
  • 4
  • 15
1
vote
2 answers

Need to call stored procedure from lightswitch - but cannot add SqlClient reference

I need to call a simple SQL stored procedure from Lightswitch. I have tried to follow the instructions given by Microsoft here: Microsoft instructions on executing a stored procedure from Lightswitch However this won't work for me because I cannot…
Owen
  • 420
  • 1
  • 4
  • 15
1
vote
0 answers

Basic Authentication with lightswitch 2012

I am trying to use basic authentication on my lightswitch 2012 (html) project, but i get an unauthorized error when trying to get something from the database. is there a way to use basic authentication with this tool?
user10319
  • 121
  • 1
  • 9
1
vote
1 answer

Microsoft LightSwitch HTML5 Client Read QueryString?

I am using LightSwitch HTML5 Client and have created the screen which contains new HTML5 table control .I also added the "Filter" popup in the "Browse Screen" which queries against the Odata source and filters rows in the table. There is a…
vish.Net
  • 962
  • 2
  • 10
  • 21
1
vote
1 answer

DevExpress XtraReport shows empty DetailReport but correct rowcount

I'm using XtraReports 12.2.12 in my lightswitch project. This projects connects to a sql database as datasource. I created a report class and added a query as datasource for the report. Then added a detailreport with the context menu -> "Insert…
1
vote
1 answer

Change database schema in published Lightswitch application

I have created a functioning LightSwitch (Visual studio 2012 Pro) application... Now it's time to publish! The only problem is that I can't seem to figure out how to change the schema name to something other than dbo. That is, I don't want the…
1
vote
1 answer

LightSwitch establishing a connection to SQL Server instance

I’m just trying to put together a simple example app. I choose my datasource, a SQL 2008 R2 development database not on my box, pick integrated security, I pick some tables and I add a screen to the HTML Client folder and I get the below error. …
Brian Kriesel
  • 71
  • 2
  • 11
1
vote
2 answers

Lightswitch ApplicationServerContext

I need to use functionality available with the Lightswitch ApplicationServerContext available in the 2012 version of Lightswitch in the Silverlight version of the client part of the application. The only examples I've been able to find so far show…
Mark
  • 23
  • 3
1
vote
1 answer

LightSwitch HTML Client - How to add global menu

Is it possible to add global menu items like in desktop client LightSwitch? Or something simular to it... How, or better question is, where can I do it? Ty
Tom
  • 679
  • 1
  • 12
  • 29
1
vote
1 answer

One to Zero...One Master Detail in Lightswitch HTML Client

Creating a master detail with this relationship: Parent (1) ---> Child(0 or 1) The details page shows the child record greyed out. I realise this is because Lightswitch doesn't know if it should create a record. When trying to add an existing…
Stuart Dobson
  • 3,001
  • 4
  • 35
  • 37
1 2
3
9 10