Using Microsoft LightSwitch for Visual Studio Sergey Barskiy SergeyB@Magenic
description
Transcript of Using Microsoft LightSwitch for Visual Studio Sergey Barskiy SergeyB@Magenic
![Page 2: Using Microsoft LightSwitch for Visual Studio Sergey Barskiy SergeyB@Magenic](https://reader036.fdocuments.net/reader036/viewer/2022062811/56815f24550346895dcdf07f/html5/thumbnails/2.jpg)
What is LightSwitch?• Visual Studio project type that allows developers and technically
savvy business users to build Silverlight applications with little or no coding required
• Targets data centric RIA applications• LightSwitch is currently in beta• It will be paid-for SKU when shipped• Will be available for free if you have any paid-for version of Visual
Studio
![Page 3: Using Microsoft LightSwitch for Visual Studio Sergey Barskiy SergeyB@Magenic](https://reader036.fdocuments.net/reader036/viewer/2022062811/56815f24550346895dcdf07f/html5/thumbnails/3.jpg)
LightSwitch Architecture• LightSwitch applications are 3 tier Silverlight applications• They use MVVM pattern• They use WCF RIA Services to communicate with a server
component• Support SQL Server or SQL Azure
![Page 4: Using Microsoft LightSwitch for Visual Studio Sergey Barskiy SergeyB@Magenic](https://reader036.fdocuments.net/reader036/viewer/2022062811/56815f24550346895dcdf07f/html5/thumbnails/4.jpg)
LightSwitch Application Project
![Page 5: Using Microsoft LightSwitch for Visual Studio Sergey Barskiy SergeyB@Magenic](https://reader036.fdocuments.net/reader036/viewer/2022062811/56815f24550346895dcdf07f/html5/thumbnails/5.jpg)
LightSwitch Application Properties• General properties
– Icon– Title
• Screen navigation• Access Control Security
– None– Windows– Forms / Custom
• Application Type– Desktop client, 2-tier deployment creates an application that runs on the end-user’s Windows
desktop; the database and server components run on a networked computer.– Desktop client, 3-tier deployment creates an application that runs on the end-user’s Windows
desktop; the database and server components run on an Internet Information Services (IIS) server.
– Browser client, 3-tier deployment creates an application that runs in the end-user’s web browser; the database and server components run on an Internet Information Services (IIS) server.
![Page 6: Using Microsoft LightSwitch for Visual Studio Sergey Barskiy SergeyB@Magenic](https://reader036.fdocuments.net/reader036/viewer/2022062811/56815f24550346895dcdf07f/html5/thumbnails/6.jpg)
Building LightSwitch Application• Data
– Point to existing database– Create new database
• Tables • Relationships• Rules / read-only data
– Required– Lists– Field Type
– “Write Code” Link
![Page 7: Using Microsoft LightSwitch for Visual Studio Sergey Barskiy SergeyB@Magenic](https://reader036.fdocuments.net/reader036/viewer/2022062811/56815f24550346895dcdf07f/html5/thumbnails/7.jpg)
Building LightSwitch Application• User Interface
– Forms– Form Navigation
• Publish Wizard (Build menu)– Create MSDeploy package– Deploy immediately
![Page 8: Using Microsoft LightSwitch for Visual Studio Sergey Barskiy SergeyB@Magenic](https://reader036.fdocuments.net/reader036/viewer/2022062811/56815f24550346895dcdf07f/html5/thumbnails/8.jpg)
LightSwitch Resources• http://lightswitch.adefwebserver.com/• http://blogs.msdn.com/b/lightswitch/archive/2010/08/06/the-
anatomy-of-a-lightswitch-application-overview.aspx• http://blogs.msdn.com/b/lightswitch/• http://blogs.msdn.com/b/lightswitch/archive/2010/09/15/lightswitch-
how-do-i-videos-on-the-developer-center-beth-massi.aspx• http://msdn.microsoft.com/en-us/library/ff852064.aspx
![Page 9: Using Microsoft LightSwitch for Visual Studio Sergey Barskiy SergeyB@Magenic](https://reader036.fdocuments.net/reader036/viewer/2022062811/56815f24550346895dcdf07f/html5/thumbnails/9.jpg)
Questions