1. A STEP IN FRONT OF OTHERS
VISUAL STUDIO LIGHTSWITCH
Danijel Malik
Artifis Danijel Malik s.p.
2. 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
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”
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
• …