Visual Studio LightSwitch

1,440 views

Published on

Published in: Technology
  • Be the first to comment

Visual Studio LightSwitch

  1. 1. A STEP IN FRONT OF OTHERSVISUAL STUDIO LIGHTSWITCH Danijel Malik Artifis Danijel Malik s.p.
  2. 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
  3. 3. DEMOSimple LightSwitch Application
  4. 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. 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. 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. 7. STORAGEData Storage Service Data Provider Supported Features Not SupportedMicrosoft SQL Server SqlClient for the Entity • Referential integrity • SQL Server CompactSQL Server 2005 Framework • Transactions • Stored ProceduresSQL Server 2008 • SQL authenticationSQL Server 2008 R2 • Integrated Windowsincluding Express versions authenticationMicrosoft SQL Azure SqlClient for the Entity • Referential integrity • Stored Procedures Framework • Transactions • Integrated Windows • SQL authentication authentication • Azure Federated authenticationMicrosoft SharePoint OData client • Lists • AttachmentsSharePoint 2010 DataServiceContext • Relationships • TransactionsOther (RIA) Requires a custom WCF • Default queries • Entity operations RIA DomainService.. • Parameterized queries • Custom operations • Transactions • Complex types • Query “Includes”
  8. 8. DEMOAdvanced Application
  9. 9. SUMMARYPROS 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. 10. RESOURCES• http://blogs.msdn.com/b/lightswitch/• http://blogs.msdn.com/b/bethmassi/
  11. 11. QUESTIONS?
  12. 12. DANIJEL MALIKhttp://arkcore.wordpress.com danijel@artifis.si @DanijelMalik

×