A STEP IN FRONT OF OTHERS
VISUAL STUDIO LIGHTSWITCH
            Danijel Malik
      Artifis Danijel Malik s.p.
WHAT IS VISUAL STUDIO LIGHTSWITCH?
„Build for today, prepare for tomorrow“



• Tool to build business applications using
  Silverlight 4.0
• Automatic generation of user interface
  on the basis of the data model
• Multiple built-in data sources
• Easy customization, maintenance and
  upgrade
• No need for XAML or C# code
DEMO
Simple LightSwitch Application
ARCHITECTURE




  Presentation                Logic                Storage
  • Silverlight 4.0           • ASP.NET 4.0        • SQL Server
  • WCF RIA Services Client   • WCF RIA Services   • SQL Server Express
  • Office Automation         • Entity Framework   • SQL Azure
                              • OData              • SharePoint
PRESENTATION



• Data Services        • Data Workspace
   • Hosting              •   Data Service Client
   • Shell UI (MVVM)      •   Entities
   • Theming              •   Relationships
• Screens                 •   CRUD
   •   Data & Logic
   •   Layout
   •   Visual
   •   No XAML
LOGIC



• Data Services                • Transaction Management
   • Encapsulates all access      • Per Data Workspace
   • Endpoint for each Data       • Single Data Source at once
     Source                    • Data Providers
• Entity Sets                     • ADO.NET Entity Framework
   • Entity Data Models           • WCF Data Services
• Operations                      • WCF RIA DomainService
   •   Query
   •   Submit
   •   Custom
   •   Pipeline
STORAGE

Data Storage Service         Data Provider              Supported Features          Not Supported
Microsoft SQL Server         SqlClient for the Entity   •   Referential integrity   •   SQL Server Compact
SQL Server 2005              Framework                  •   Transactions            •   Stored Procedures
SQL Server 2008                                         •   SQL authentication
SQL Server 2008 R2                                      •   Integrated Windows
including Express versions
                                                            authentication

Microsoft SQL Azure          SqlClient for the Entity   •   Referential integrity   •   Stored Procedures
                             Framework                  •   Transactions            •   Integrated Windows
                                                        •   SQL authentication          authentication
                                                                                    •   Azure Federated
                                                                                        authentication

Microsoft SharePoint         OData client               •   Lists                   •   Attachments
SharePoint 2010              DataServiceContext         •   Relationships           •   Transactions

Other (RIA)                  Requires a custom WCF      •   Default queries       •     Entity operations
                             RIA DomainService..        •   Parameterized queries •     Custom operations
                                                        •   Transactions          •     Complex types
                                                                                  •     Query “Includes”
DEMO
Advanced Application
SUMMARY

PROS                                   CONS
•   Rapid Application Development      • Blackbox
•   3-tier architecture                • Doesn’t support complex types
•   Extensible                           and import functions
•   Automatic UI generating            • No custom workflows, web
•   Easy customization, maintenance,     services, …
    upgrade and deploy                 • Missing multilingual support
•   Built-in security and data
    validation
•   Office integration
•   No need to write XAML or C#
    code
•   …
RESOURCES

• http://blogs.msdn.com/b/lightswitch/
• http://blogs.msdn.com/b/bethmassi/
QUESTIONS?
DANIJEL MALIK
http://arkcore.wordpress.com
       danijel@artifis.si
        @DanijelMalik

Visual Studio LightSwitch

  • 1.
    A STEP INFRONT OF OTHERS VISUAL STUDIO LIGHTSWITCH Danijel Malik Artifis Danijel Malik s.p.
  • 2.
    WHAT IS VISUALSTUDIO LIGHTSWITCH? „Build for today, prepare for tomorrow“ • Tool to build business applications using Silverlight 4.0 • Automatic generation of user interface on the basis of the data model • Multiple built-in data sources • Easy customization, maintenance and upgrade • No need for XAML or C# code
  • 3.
  • 4.
    ARCHITECTURE Presentation Logic Storage • Silverlight 4.0 • ASP.NET 4.0 • SQL Server • WCF RIA Services Client • WCF RIA Services • SQL Server Express • Office Automation • Entity Framework • SQL Azure • OData • SharePoint
  • 5.
    PRESENTATION • Data Services • Data Workspace • Hosting • Data Service Client • Shell UI (MVVM) • Entities • Theming • Relationships • Screens • CRUD • Data & Logic • Layout • Visual • No XAML
  • 6.
    LOGIC • Data Services • Transaction Management • Encapsulates all access • Per Data Workspace • Endpoint for each Data • Single Data Source at once Source • Data Providers • Entity Sets • ADO.NET Entity Framework • Entity Data Models • WCF Data Services • Operations • WCF RIA DomainService • Query • Submit • Custom • Pipeline
  • 7.
    STORAGE Data Storage Service Data Provider Supported Features Not Supported Microsoft SQL Server SqlClient for the Entity • Referential integrity • SQL Server Compact SQL Server 2005 Framework • Transactions • Stored Procedures SQL Server 2008 • SQL authentication SQL Server 2008 R2 • Integrated Windows including Express versions authentication Microsoft SQL Azure SqlClient for the Entity • Referential integrity • Stored Procedures Framework • Transactions • Integrated Windows • SQL authentication authentication • Azure Federated authentication Microsoft SharePoint OData client • Lists • Attachments SharePoint 2010 DataServiceContext • Relationships • Transactions Other (RIA) Requires a custom WCF • Default queries • Entity operations RIA DomainService.. • Parameterized queries • Custom operations • Transactions • Complex types • Query “Includes”
  • 8.
  • 9.
    SUMMARY PROS CONS • Rapid Application Development • Blackbox • 3-tier architecture • Doesn’t support complex types • Extensible and import functions • Automatic UI generating • No custom workflows, web • Easy customization, maintenance, services, … upgrade and deploy • Missing multilingual support • Built-in security and data validation • Office integration • No need to write XAML or C# code • …
  • 10.
  • 11.
  • 12.
    DANIJEL MALIK http://arkcore.wordpress.com danijel@artifis.si @DanijelMalik