introducing visual studio ® lightswitch™ andrew coates microsoft blogs.msdn.com/acoat @coatsy...
TRANSCRIPT
![Page 1: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/1.jpg)
IntroducingVisual Studio® LightSwitch™
Andrew CoatesMicrosoft
blogs.msdn.com/acoat@coatsy
DEV201 #auteched#dev201
![Page 2: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/2.jpg)
The simplest way to createbusiness applications
for the desktop and the cloud
![Page 3: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/3.jpg)
LightSwitch is forEnd User Developers
![Page 4: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/4.jpg)
What do End User Developers Want?► A smooth on-ramp to development► Built-in plumbing that handles common
application requirements► Simple and flexible deployment
![Page 5: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/5.jpg)
LightSwitch is for Professional Developers
![Page 6: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/6.jpg)
The LightSwitch Development Experience
Start
Describe your data
Create screens for common tasks
Refine
Author business logic
Extend
Customise screen layouts
Define custom queries
Explore ecosystem components
Create custom Silverlight controls
Integrate with custom data sources
![Page 7: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/7.jpg)
demo
Introduction to LightSwitch
![Page 8: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/8.jpg)
LightSwitch ArchitectureCl
ient
Tie
r
Mid
dle
Tier
Dat
a Ac
cess
SQL
Serv
er
SQL
Azur
e
Shar
ePoi
nt
Oth
er
Silverlight 4.0
Desktop HostBrowser Host
Methods ControlsScreens
Data Workspace
WCF RIA Services
ASP.NET 4.0
IIS 6.0/7.0
Submit Pipeline Queries
Data Workspace
WCF RIA Services
![Page 9: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/9.jpg)
Entities
![Page 10: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/10.jpg)
Custom Business Types
http://www.flickr.com/photos/photohome_uk/1494590209/sizes/z/in/photostream/ http://www.flickr.com/photos/grongar/4965971376/sizes/l/in/photostream/
![Page 11: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/11.jpg)
Calculated Properties
partial void FullName_Compute(ref string result){
// Set result to the desired field valueresult = string.Format("{0} {1}", this.GivenName, this.FamilyName);
}
![Page 12: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/12.jpg)
Relationships
![Page 13: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/13.jpg)
Validation
![Page 14: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/14.jpg)
Validation
partial void DateOfBirth_Validate(EntityValidationResultsBuilder results) {
if(DateOfBirth.AddYears(15) > DateTime.Now){
results.AddPropertyError("Must be at least 15 years old");}
}
partial void Authors_Validate(Author entity, EntitySetValidationResultsBuilder results){
// could call out to a service here or whateverif (entity.DateOfBirth == null && entity.Age == null){
results.AddEntityError("Must set either the date of birth or the age");}
}
![Page 15: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/15.jpg)
Screens► Built in screens
– New– Search– Details– Editable grid– List and details
► Developers can modify screens at design-time and runtime
► Can use auto-generated screens for add/edit or create your own
► Generated screens do not expose XAML– Can use Silverlight controls
you create yourself– Can add UI elements
packaged as extensions
► Always based on queries
![Page 16: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/16.jpg)
Queries► LightSwitch creates
queries automatically– Select * query is a
collection, eg. CustomerCollection
– Select where query is a detail, eg. CustomerDetail
► You can edit existing queries– Filter, sort, add
parameters
► You can create new queries
► You can base queries on other queries
![Page 17: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/17.jpg)
The LightSwitch Development Experience
Start
Describe your data
Create screens for common tasks
Refine
Author business logic
Extend
Customise screen layouts
Define custom queries
Explore ecosystem components
Create custom Silverlight controls
Integrate with custom data sources
![Page 18: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/18.jpg)
The LightSwitch Development Experience
Start
Describe your data
Create screens for common tasks
Refine
Author business logic
Extend
Customise screen layouts
Define custom queries
Explore ecosystem components
Create custom Silverlight controls
Integrate with custom data sources
![Page 19: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/19.jpg)
demo
Entities, Screens, Queries and Code
![Page 20: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/20.jpg)
Access Control
► Windows and Forms authentication► Authorization– Define permissions and check them in code at
entity and property level– Permissions are granted through administration
screens
![Page 21: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/21.jpg)
Access Control
Users are assigned to roles
Permissions assigned to roles
Application’s administrators define users and roles
Permissions defined by the developer
![Page 22: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/22.jpg)
Two-tier Desktop App
UI
Logic
Data
![Page 23: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/23.jpg)
Three-tier Desktop App
UIData
Logic
![Page 24: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/24.jpg)
Three-tier Web App
UIData
Logic
![Page 25: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/25.jpg)
demo
Access Control and Deployment
![Page 26: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/26.jpg)
LightSwitch Gives You► A smooth on-ramp to development► Built-in plumbing that handles common
application requirements► Simple and flexible deployment
![Page 27: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/27.jpg)
The simplest way to createbusiness applications
for the desktop and the cloud
![Page 28: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/28.jpg)
Next Steps► MSDN LightSwitch Developer Center
http://msdn.com/lightswitch ► LightSwitch Team Blog ► Download LightSwitch Trial ► Download the LightSwitch Training Kit ► Visit the LightSwitch Forums on MSDN
![Page 29: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/29.jpg)
My Contact Information► [email protected] ► http://blogs.msdn.com/acoat ► http://twitter.com/coatsy
![Page 30: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/30.jpg)
Get Cool Stuff► Go to the Booth and install the LS Trial– T-shirt*
► Tweet LS Trial URL (http://aka.ms/lsmsau)– Hoodie*
* While Stocks Last
![Page 31: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/31.jpg)
Related Content
DEV213 Visual Studio LightSwitch - Beyond the BasicsThursday 15:30 Meeting Room 7
Developer Area DemosWednesday 12:30 (Introduction to LightSwitch)Thursday 11:00 (Advanced LightSwitch) Friday 11:00 (Introduction to LightSwitch)Friday 12:30 (Advanced LightSwitch)
![Page 32: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/32.jpg)
TECHQUESTSee me for code …
![Page 33: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/33.jpg)
QUESTION & ANSWER SESSION
![Page 34: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/34.jpg)
COMPLETE AN EVALUATION ONLINE AND ENTER TO WIN THESE PRIZES!
![Page 35: Introducing Visual Studio ® LightSwitch™ Andrew Coates Microsoft blogs.msdn.com/acoat @coatsy DEV201 #auteched #dev201](https://reader036.vdocuments.net/reader036/viewer/2022081516/56649e225503460f94b0fedd/html5/thumbnails/35.jpg)
© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market
conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.