Pro Visual Studio LightSwitch 2011 Development

Book description

Microsoft Visual Studio LightSwitch 2011 is a rapid application deployment tool that lets power users and administrators build data-centric business applications for the desktop, cloud, and Web in just a few clicks, with no code required. But more advanced developers and business users will hunger for more: how do you design complex screens? How do you query data using LINQ and other syntax structures? How do you secure your application?

Pro Visual Studio LightSwitch 2011 Development answers these questions and more as authors Tim Leung and Yann Duran—both awarded Microsoft 2011 Community Contributor Awards for their LightSwitch expertise—cover this breakthrough product and its operations and structure under the covers.

For serious developers building, enhancing and deploying advanced business applications using LightSwitch, Pro Visual Studio LightSwitch 2011 Development is the guide for going beyond the "click-and-you're-done" interface, while still maintaining the elegance and convenience of rapid application development.

What you'll learn

With Pro Visual Studio LightSwitch 2011, learn how to:

  • Add visibility through with Relationships and Details screens

  • Use customized queries, sorts and filters, and reporting

  • Customize displays via user controls

  • Use multiple line-of-business data sources to aggregate reports

For more advanced LightSwitch users, see how to:

  • Handle events in code and debug applications

  • Master the intricacies of complex user interface design

  • Secure your applications through authentication

  • Write custom .NET code to enhance LightSwitch

  • Deploy maintainable LightSwitch projects

Who this book is for

Pro Visual Studio LightSwitch 2011 is a book designed for any software developer who wants to take advantage of the rapid application deployment (RAD) experience offered by LightSwitch. It is ideal reading for those wanting to build and design applications correctly from the onset.

Those who have grasped the basics of LightSwitch and are looking to do more will benefit greatly from this book. Anyone struggling to design complex screens and queries in order to meet user requirements will find the answers in this book.

Table of contents

  1. Title
  2. Contents at a Glance
  3. Contents
  4. About the Authors
  5. About the Technical Reviewers
  6. Acknowledgments
  7. Foreword
  8. Introduction
    1. Understanding the Basics
    2. How This Book Is Structured
    3. Conventions
    4. Comments and Errata
  9. Part 1: LightSwitch Concepts
    1. Chapter 1: Forms Over Data and Beyond
      1. Who Is LightSwitch For?
      2. The 10,000-Foot View
      3. Model-Centric Architecture
      4. Model-View-ViewModel (MVVM)
      5. The LightSwitch Application Lifecycle
      6. Summary
    2. Chapter 2: Working in Visual Studio
      1. Switching to File View
      2. Root Folder Contents
      3. ApplicationDefinition.lsml File
      4. Server Project
      5. ServerGenerated Project
      6. Client Project
      7. ClientGenerated Project
      8. Common Project
      9. SQL Server
      10. Debugging LightSwitch Code
      11. Compacting LS Solutions for Backup
      12. Summary
  10. Part 2: Working With Data
    1. Chapter 3: Working with Data
      1. Understanding Entities and Properties
      2. Attaching to Existing Data
      3. Creating a Table in the Intrinsic Database
      4. Working with LightSwitch Data Types
      5. Ensuring Unique Values
      6. Creating Choice Lists
      7. Setting Relationships
      8. Using Computed Properties
      9. Summary
    2. Chapter 4: Accessing Data from Code
      1. Introducing Data Access
      2. Using LightSwitch Data Access Objects
      3. Working with Screen Data
      4. Working with Change Sets
      5. Working with the Save Pipeline
      6. Managing Transactions in LightSwitch
      7. Understanding Concurrency
      8. Working with User Data
      9. Summary
    3. Chapter 5: Validating Data
      1. Where Is Validation Performed?
      2. Predefined Validation
      3. Custom Validation
      4. The Validation Engine
      5. Accessing Validation Results in Code
      6. Custom Validation Examples
      7. Performing Screen Validation
      8. Validating Deletions
      9. Database Validation
      10. Summary
    4. Chapter 6: Querying Data
      1. Understanding Query Features
      2. Filtering and Sorting Data by Using the Designer
      3. Using LINQ
      4. Where Is the Query Executed?
      5. Exploring Query Examples
      6. Using Advanced Sorting Techniques
      7. Creating User-Defined Global Values
      8. Summary
  11. Part 3: Interacting With Data
    1. Chapter 7: Creating and Using RIA Services
      1. Why Would I Need a RIA Service?
      2. Creating a RIA Service
      3. Writing the RIA Service Code
      4. Using a RIA Service
      5. Summary
    2. Chapter 8: Creating and Using Screens
      1. Designing Screens
      2. User Interface Settings
      3. Writing Screen Code
      4. Working with Built-In Data Controls
      5. Custom Screens and Scenarios
      6. Working with Files
      7. Summary
    3. Chapter 9: Creating and Using Custom Controls
      1. Using Custom Controls vs. Control Extensions
      2. Directly Using Silverlight Controls
      3. Creating a Custom Silverlight Class
      4. Calling Screen Code from a Custom Control
      5. Summary
    4. Chapter 10: Creating and Using Extensions
      1. Understanding the Need for Extensions
      2. Finding Extensions
      3. Installing Extensions
      4. Creating Extensions
      5. Creating the Extension Library Project
      6. Understanding Extensions
      7. Understanding Theme Extensions
      8. Understanding Shell Extensions
      9. Understanding Screen Template Extensions
      10. Understanding Control Extensions
      11. Understanding Business Type Extensions
      12. Understanding Data Source Extensions
      13. Debugging Extensions
      14. Distributing Extensions
      15. Summary
  12. Part 4: Getting Data Out
    1. Chapter 11: Creating and Displaying Reports
      1. Using ASP.NET to Create Reports
      2. Using Microsoft Reporting Services
      3. Linking Reports to LightSwitch
      4. Creating Reports with Microsoft Word
      5. Creating Adobe PDF Documents
      6. Using Other Third-Party Solutions
      7. Summary
    2. Chapter 12: Creating and Sending Emails
      1. Sending Email by Using Server-Side Code
      2. Creating Mail in a Pickup Folder
      3. Sending Mail via Outlook by Using COM Automation
      4. Creating mailto Hyperlinks
      5. Using mailto in a Screen Button
      6. Summary
  13. Part 5: Securing Your Application
    1. Chapter 13: Authenticating Your Users
      1. Choosing an Authentication Method
      2. Using No Authentication
      3. Using Windows Authentication—Allow Any Authenticated Windows User
      4. Using Windows Authentication—Allow Specified Users
      5. Using Forms Authentication
      6. Membership Provider Settings
      7. Summary
    2. Chapter 14: Authorization
      1. Understanding Authorization
      2. Setting Permissions
      3. Specifying the Application Administrator
      4. Creating Roles
      5. Adding Users
      6. Filtering Data Based on User
      7. Creating a Log Out Option
      8. Summary
    3. Chapter 15: Auditing What Your Users Do
      1. Basic Table Properties
      2. The General Approach
      3. The Specific Approach
      4. Summary
  14. Part 6: Deployment
    1. Chapter 16: Deploying Your Application
      1. Deployment Fundamentals
      2. Setting Up Your Web Server
      3. Deployment Wizard
      4. Installing the Packages
      5. Three-Tier Manual Deployment
      6. IIS7 ZIP File Deployment
      7. Deploying Data
      8. Updating an Application
      9. Deploying to Azure
      10. Summary
    2. Chapter 17: When Things Don’t Go Quite Right
      1. Troubleshooting Installations
      2. Troubleshooting the SQL Server
      3. Tracing LightSwitch Applications
      4. SQL Server Connection Problems
      5. Troubleshooting Publishing
      6. Summary
  15. Appendix A: Culture Names
  16. Appendix B: LINQ Query Operators
  17. Index

Product information

  • Title: Pro Visual Studio LightSwitch 2011 Development
  • Author(s):
  • Release date: March 2012
  • Publisher(s): Apress
  • ISBN: 9781430240082