Building Line of Business Applications with Visual Studio LightSwitch 2015

Learn how to master the powerful LightSwitch RAD environment to build complex and highly customized desktop, web, and mobile-based line-of-business applications.
Course info
Rating
(39)
Level
Intermediate
Updated
Sep 24, 2015
Duration
4h 58m
Table of contents
The LightSwitch RAD Revolution
Creating the Structure of a LightSwitch Application
Building a Real-world Desktop Client - Part 1
Building a Real-world Desktop Client - Part 2
Building Real-world HTML Clients - Part 1
Building Real-world HTML Clients - Part 2
Extending a LightSwitch Application - Part 1
Extending a LightSwitch Application - Part 2
Description
Course info
Rating
(39)
Level
Intermediate
Updated
Sep 24, 2015
Duration
4h 58m
Description

This course delves into the sophisticated Visual Studio LightSwitch development environment, which has been described as the fastest way to build line-of-business applications using technologies such as ASP.NET, WCF services, C#, and JavaScript. This course seeks to go beyond the basics and tackle real-world scenarios professional developers are commonly faced with when building real-world desktop, web, and mobile-based business applications. We will learn how LightSwitch lets us develop multi-tiered, service-oriented solutions that follow modern best practices, with an incredibly high degree of productivity and without sacrificing the ability to meet complex business requirements, from multi-client user experiences to versatile back-end integration. Once you get hooked on LightSwitch, your LOB developer life will never be the same again.

About the author
About the author

Yacine has been involved in the development of database-driven, n-tier web applications for over 10 years. Over time he has taken on various roles, including development, project management, offshore platform management and technical consulting. He has helped build a few solutions for Microsoft North Africa.

More from the author
Introduction to Windows Phone 8
Intermediate
3h 59m
Apr 3, 2013
Windows 8 Store Apps Hands-on in 20 Lessons
Intermediate
5h 48m
Jan 28, 2013
More courses by Yacine Khammal
Section Introduction Transcripts
Section Introduction Transcripts

Creating the Structure of a LightSwitch Application
Welcome back to Building Line of Business Applications with LightSwitch. In this module, we're going to take an in-depth look at building the backend of our application that is its backbone, which comprises the data layer and the middle tier layer or business layer. So first we're going to talk about the data model, how it's defined in LightSwitch, how it's stored and implemented, and how it constitutes a foundation for our application, and we'll see why LightSwitch is considered a model centric environment. Then we'll examine the data service that LightSwitch creates and exposes it for each data source we configure and we'll look at how it provides controlled access to our data. We'll understand the way LightSwitch works under the cover using the OData protocol for querying and updating data. We'll then examine the LightSwitch object model and the fundamental types exposed in the API for us to code against. We'll learn the mechanics of querying data across tiers and we'll zoom in on complex queries and the Query pipeline. And finally, we'll discuss updating data in LightSwitch using the built-in OData client and server machinery that's based on a unit of work approach and we'll explore the server hooks that we can use to intercept and customize a data update process in our applications.

Building a Real-world Desktop Client - Part 1
Hi. This is module three of Building Line of Business Applications with LightSwitch. In this module, we'll delve into the LightSwitch Silverlight client, which since the HTML client was released in early 2012 has been positioned primarily as a desktop client using Silverlight's out-of-browser capabilities. Understanding how to work with the LightSwitch clients requires an understanding of the model-view ViewModel architectural pattern. So we'll begin with a review of MVVM and the way it's done in the Silverlight client. Next, we'll look at one of the client's essential capabilities, querying the data service. We'll see how the powerful screen and query designers let us create data retrieval logic to implement common, but not so trivial client-side scenarios. Beyond the use of designers, we'll also take a look at the client- side API, which closely mirrors the server API and we'll see an example of using code to implement custom validation. And in the next module, we'll explore customizing the UI using Silverlight controls bound to its create View Model. We'll also discuss UI workflows and the different approaches we can take for creating a logical and intuitive user experience in our business application.

Building a Real-world Desktop Client - Part 2
Welcome back. In this module, we continue our exploration of the LightSwitch Desktop Client, which we started in part one. So first we look in some detail at extending our LightSwitch UI using custom controls. Then we look at structuring our user experience through different screen workflow approaches.

Building Real-world HTML Clients - Part 1
Hi. This is module four of Building Line of Business Applications with LightSwitch. In this module and the next one, we'll deep dive into the HTML client and we'll learn how to build responsive, touch first, mobile front-ends to our line of business applications. So we'll begin this module with a solid understanding of the HTML client's single page application architecture, a prerequisite to building any serious mobile front-end applications on the LightSwitch platform. We'll then examine the HTML client's approach to screens, user experience, and application workflow and we'll see how this approach, the first from the. NET client, and how we can leverage this approach to our mobile advantage. We'll apply these concepts in our sample application by adding an HTML front-end and designing our app's workflow in an effective way. Then we'll start our exploration of the HTML client API with a close look at the top level application object, which allows us to control things such as navigation and data submission through the LightSwitch shell.

Building Real-world HTML Clients - Part 2
Welcome back. In this module, we continue our exploration of the JavaScript API exposed by the LightSwitch HTML client. First we're going to start with an overview of the screen API, which probably contains the functionality we use the most when building an HTML client in LightSwitch. Many of the methods exposed by the screen object just like the application object are asynchronous, so it may be useful to stop for a brief review of Async programming in JavaScript. The next group of API functionality we'll look at is the entity and query APIs accessed through the data workspace and data source objects. These client-side data access APIs are almost all asynchronous since they typically issue requests to the data service and we'll look at some common scenarios for the use. Then we'll zoom in on the view layer and its customization mechanisms using the ContentItem API. We'll examine the post render and render event hooks that let us customize the way a node of the content tree is rendered. We'll also examine how data-binding works in the HTML client and how it can make our life, our developer life, so much easier.

Extending a LightSwitch Application - Part 1
Welcome to the last chapter of Building Line of Business Applications with LightSwitch. In this module and the next module, we explore some of LightSwitch's powerful extension and integration points, which enable things such as business reuse use and reporting scenarios. We'll begin this module by introducing the LightSwitch RIA Services, an existing Microsoft technology that was brought into LightSwitch to solve some important problems such as accessing custom external data sources or retrieving custom shade LightSwitch data for specific scenarios. Next we'll learn about the ServerApplicationContext API, which is a powerful server hook that opens up our LightSwitch application middle tier to the external world in a more universal and customizable way than the built-in LightSwitch OData endpoints. And in the next module, we'll get to apply our new combined knowledge of LightSwitch RIA Services and the ServerApplicationContext API to address one of LightSwitch's main shortcomings, reporting and printing, and we'll look at one way of tackling this coming need by leveraging the LightSwitch extension mechanisms, as well as SQL Server Reporting Services. And we'll end this two module series with a look at user authorization in the HTML client combining the ServerApplicationContext API and a web API controller to expose our user permissions and access them client- side in JavaScript.

Extending a LightSwitch Application - Part 2
This is part two of our two-part series on Extending a LightSwitch Application. In this module, we'll look at reporting and client-side authorization in the HTML client.