SlideShare a Scribd company logo
Integrating SharePoint
2010 and Visual Studio
LightSwitch



Rob Windsor
rwindsor@allin.com
@robwindsor          #spsvb
Sponsors
About Me
•   Lead SharePoint Consultant with Allin Consulting
•   Technical Contributor to the Pluralsight On-Demand Library
•   Microsoft MVP, MCPD, MCT
•   Founder and Past-President of the North Toronto .NET UG
•   Co-author of Prof. Visual Basic 2010 and .NET 4 (Wrox)
Disclaimers
• I am just learning LightSwitch
    That is, I’m not an expert on the subject
    I want to understand what it is and how it works
    Most of this content is “borrowed” from a TechEd talk by Robert Green
       http://channel9.msdn.com/Events/TechEd/NorthAmerica/2011/DEV211
• This session is about sharing what I’ve learned
    I’m not making judgments about whether LightSwitch is better or
     worse than any other available technologies
• Additional disclaimers
    Attending this session may cause: blurred vision, headache, or
     nausea
What is Visual Studio LightSwitch?
• According to Microsoft

 Visual Studio LightSwitch is the simplest way
    to create business applications for the
            desktop and the cloud


• Learn more at the LightSwitch Developer Center
   • http://msdn.microsoft.com/en-us/lightswitch/default.aspx
Motivation for LightSwitch
• LightSwitch is a development tool that
    Is designed to be used by business users
         In the same way they are using Excel and Access today
    Is designed to be used by developers
         Apps can be transitioned to devs if they grow beyond the workgroup
    Has built-in “plumbing” to handle common application requirements
    Uses the latest Microsoft technologies
         Silverlight, Entity Framework, WCF, SQL Server
      Uses well-known architectural patters
      Builds scalable applications
      Is extensible
      Supports Wizard driven deployment
LightSwitch Simplifies Development
• Data
    Multiple sources / kinds (including SharePoint)
    Entity model
• Screens
    No markup solution
    Extensible controls
    Extensible layouts
• Rules and validation
    Write once, execute everywhere
The LightSwitch Development Experience
DEMO
Introduction to Visual Studio
LightSwitch
LightSwitch Application Overview
    Client Tier




                                      Middle Tier




                                                                     Data Access
                  Data Workspace                    Data Workspace
                     WCF RIA                           WCF RIA




                                                                                   SQL Server


                                                                                                            SharePoint
                                                                                                SQL Azure



                                                                                                                         Other …
                     Services                          Services
                   Silverlight 4.0                   ASP.NET 4.0

                  Browser   Desktop                    IIS 7.0
                   Host      Host                   Windows Azure
Entities
• Can be local (SQL Server Express) or attached (SQL
  Server, SQL Azure, SharePoint, WCF RIA service)
• Can create relationships within and across data sources
• Custom business types
    Provide validation and formatting
• Calculated properties
    Write code to generate value
• Can validate at the entity or property level
Screens
• Variety of built in screens
    New, search, details, editable grid, list and details
• Can use auto-generated screens for adding/editing or
  create your own
• Developers can modify screens at design-time and runtime
• Always based on queries
• Generated screens do not expose XAML
    You can use Silverlight controls you create yourself
    You can add UI elements packaged as extensions
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
The LightSwitch Development Experience
DEMO
Entities, Screens, Queries,
and Code
Access Control
• Authentication
    LightSwitch supports Windows and Forms authentication
• Authorization
    Check if the user is allowed to do something
    Define permissions and check them in code at entity
     and property level
    Permissions are granted through administration screens
Access Control
•   Permissions are defined by the developer
•   The application’s administrator(s) define(s) users and roles
•   Permissions are assigned to roles
•   Users are assigned to roles
•   A user’s effective permissions are the combined
    permissions assigned to their roles
Deployment Options
• 2-tier desktop application
    Application runs entirely on user’s computer
• 3-tier desktop application
    User interface runs on user’s computer
    Middle-tier components run on Internet Information
     Services (IIS) or Windows Azure
• 3-tier web application
    User interface is browser based
    Middle-tier components run on IIS or Windows Azure
DEMO
Access control and
deployment
Thank You
• Big thanks to the organizers, sponsors and you for making
  this event possible
• Please fill out your evaluation
• Please keep in touch


    rwindsor@allin.com
    @robwindsor
    msmvps.com/blogs/windsor

More Related Content

What's hot (20)

PPTX
SharePoint Client Object Model (CSOM)
Kashif Imran
 
PDF
Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...
SPTechCon
 
PDF
JavaScript and jQuery for SharePoint Developers
Rob Windsor
 
PPT
Sharepoint Online
Shakir Majeed Khan
 
PPTX
Understanding and programming the SharePoint REST API
Chris Beckett
 
PPTX
Develop iOS and Android apps with SharePoint/Office 365
Kashif Imran
 
PPTX
SharePoint 2013 REST APIs
Giuseppe Marchi
 
PPTX
CSOM (Client Side Object Model). Explained @ SharePoint Saturday Houston
Kunaal Kapoor
 
PDF
Hooking SharePoint APIs with Android
Kris Wagner
 
PDF
Hard learned CSOM and REST tips
SPC Adriatics
 
PPTX
SharePoint REST vs CSOM
Mark Rackley
 
PDF
Android SharePoint
BenCox35
 
PPTX
Client Object Model and REST Improvements in SharePoint 2013
Ejada
 
PPT
Asp.net.
Naveen Sihag
 
PPS
SharePoint 2007 Presentation
Ajay Jain
 
PDF
Taking Advantage of the SharePoint 2013 REST API
Eric Shupps
 
PPTX
Introduction to the SharePoint 2013 REST API
Sparkhound Inc.
 
PPTX
Office 2013 loves web developers slide
Fabio Franzini
 
PPTX
Kathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All Together
SharePoint Saturday NY
 
PPTX
Developing a Provider Hosted SharePoint app
Talbott Crowell
 
SharePoint Client Object Model (CSOM)
Kashif Imran
 
Advanced SharePoint 2010 and 2013 Web Part Development by Rob Windsor - SPTec...
SPTechCon
 
JavaScript and jQuery for SharePoint Developers
Rob Windsor
 
Sharepoint Online
Shakir Majeed Khan
 
Understanding and programming the SharePoint REST API
Chris Beckett
 
Develop iOS and Android apps with SharePoint/Office 365
Kashif Imran
 
SharePoint 2013 REST APIs
Giuseppe Marchi
 
CSOM (Client Side Object Model). Explained @ SharePoint Saturday Houston
Kunaal Kapoor
 
Hooking SharePoint APIs with Android
Kris Wagner
 
Hard learned CSOM and REST tips
SPC Adriatics
 
SharePoint REST vs CSOM
Mark Rackley
 
Android SharePoint
BenCox35
 
Client Object Model and REST Improvements in SharePoint 2013
Ejada
 
Asp.net.
Naveen Sihag
 
SharePoint 2007 Presentation
Ajay Jain
 
Taking Advantage of the SharePoint 2013 REST API
Eric Shupps
 
Introduction to the SharePoint 2013 REST API
Sparkhound Inc.
 
Office 2013 loves web developers slide
Fabio Franzini
 
Kathryn Birstein: SharePoint 2010 Business Intelligence-Brining It All Together
SharePoint Saturday NY
 
Developing a Provider Hosted SharePoint app
Talbott Crowell
 

Similar to Integrating SharePoint 2010 and Visual Studio Lightswitch (20)

PDF
Integrating SharePoint 2010, 2013 and Visual Studio Lightswitch by Rob Windso...
SPTechCon
 
PPTX
Build and Deploy LightSwitch Application on Windows Azure
K.Mohamed Faizal
 
PPTX
Vincent biret azure functions and flow (toronto)
Vincent Biret
 
PPTX
Vincent biret azure functions and flow (ottawa)
Vincent Biret
 
PPTX
DevOps and Cloud at NI
Ernest Mueller
 
PPTX
SPS calgary 2017 introduction to azure functions microsoft flow
Vincent Biret
 
DOC
Arun Kumar(7.8Yrs).DOC
Arun Kumar Rajamandrapu
 
PDF
Spca2014 harbar wac
NCCOMMS
 
PPTX
Using logic apps for dynamics 365 integration
Peter Haggert
 
PPTX
Introducing Office Web Apps as a Tool for Developing Content Rich Applications
Ryan McIntyre
 
PPTX
Visual Studio LightSwitch (Beta 1) Overview
Steve Lange
 
PDF
AAI-2075 Evolving an IBM WebSphere Topology to Manage a Changing Workloa
WASdev Community
 
PPTX
SharePoint 2010 as a Development Platform
Ayman El-Hattab
 
PPTX
SPS- Share Point 2010 and Windows Azure
Shakir Majeed Khan
 
PPTX
Azure in Developer Perspective
rizaon
 
PPTX
Developing Apps for SharePoint 2013
SPC Adriatics
 
PPTX
Session 7 - Integrating share point with silverlight firestarter
Mithun T. Dhar
 
PPTX
Back to [Jaspersoft] basics: visualize.js 101
TIBCO Jaspersoft
 
PPTX
#SPSBrussels 2017 vincent biret #azure #functions microsoft #flow
Vincent Biret
 
Integrating SharePoint 2010, 2013 and Visual Studio Lightswitch by Rob Windso...
SPTechCon
 
Build and Deploy LightSwitch Application on Windows Azure
K.Mohamed Faizal
 
Vincent biret azure functions and flow (toronto)
Vincent Biret
 
Vincent biret azure functions and flow (ottawa)
Vincent Biret
 
DevOps and Cloud at NI
Ernest Mueller
 
SPS calgary 2017 introduction to azure functions microsoft flow
Vincent Biret
 
Arun Kumar(7.8Yrs).DOC
Arun Kumar Rajamandrapu
 
Spca2014 harbar wac
NCCOMMS
 
Using logic apps for dynamics 365 integration
Peter Haggert
 
Introducing Office Web Apps as a Tool for Developing Content Rich Applications
Ryan McIntyre
 
Visual Studio LightSwitch (Beta 1) Overview
Steve Lange
 
AAI-2075 Evolving an IBM WebSphere Topology to Manage a Changing Workloa
WASdev Community
 
SharePoint 2010 as a Development Platform
Ayman El-Hattab
 
SPS- Share Point 2010 and Windows Azure
Shakir Majeed Khan
 
Azure in Developer Perspective
rizaon
 
Developing Apps for SharePoint 2013
SPC Adriatics
 
Session 7 - Integrating share point with silverlight firestarter
Mithun T. Dhar
 
Back to [Jaspersoft] basics: visualize.js 101
TIBCO Jaspersoft
 
#SPSBrussels 2017 vincent biret #azure #functions microsoft #flow
Vincent Biret
 
Ad

Recently uploaded (20)

PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Ad

Integrating SharePoint 2010 and Visual Studio Lightswitch

  • 1. Integrating SharePoint 2010 and Visual Studio LightSwitch Rob Windsor [email protected] @robwindsor #spsvb
  • 3. About Me • Lead SharePoint Consultant with Allin Consulting • Technical Contributor to the Pluralsight On-Demand Library • Microsoft MVP, MCPD, MCT • Founder and Past-President of the North Toronto .NET UG • Co-author of Prof. Visual Basic 2010 and .NET 4 (Wrox)
  • 4. Disclaimers • I am just learning LightSwitch  That is, I’m not an expert on the subject  I want to understand what it is and how it works  Most of this content is “borrowed” from a TechEd talk by Robert Green  http://channel9.msdn.com/Events/TechEd/NorthAmerica/2011/DEV211 • This session is about sharing what I’ve learned  I’m not making judgments about whether LightSwitch is better or worse than any other available technologies • Additional disclaimers  Attending this session may cause: blurred vision, headache, or nausea
  • 5. What is Visual Studio LightSwitch? • According to Microsoft Visual Studio LightSwitch is the simplest way to create business applications for the desktop and the cloud • Learn more at the LightSwitch Developer Center • http://msdn.microsoft.com/en-us/lightswitch/default.aspx
  • 6. Motivation for LightSwitch • LightSwitch is a development tool that  Is designed to be used by business users  In the same way they are using Excel and Access today  Is designed to be used by developers  Apps can be transitioned to devs if they grow beyond the workgroup  Has built-in “plumbing” to handle common application requirements  Uses the latest Microsoft technologies  Silverlight, Entity Framework, WCF, SQL Server  Uses well-known architectural patters  Builds scalable applications  Is extensible  Supports Wizard driven deployment
  • 7. LightSwitch Simplifies Development • Data  Multiple sources / kinds (including SharePoint)  Entity model • Screens  No markup solution  Extensible controls  Extensible layouts • Rules and validation  Write once, execute everywhere
  • 9. DEMO Introduction to Visual Studio LightSwitch
  • 10. LightSwitch Application Overview Client Tier Middle Tier Data Access Data Workspace Data Workspace WCF RIA WCF RIA SQL Server SharePoint SQL Azure Other … Services Services Silverlight 4.0 ASP.NET 4.0 Browser Desktop IIS 7.0 Host Host Windows Azure
  • 11. Entities • Can be local (SQL Server Express) or attached (SQL Server, SQL Azure, SharePoint, WCF RIA service) • Can create relationships within and across data sources • Custom business types  Provide validation and formatting • Calculated properties  Write code to generate value • Can validate at the entity or property level
  • 12. Screens • Variety of built in screens  New, search, details, editable grid, list and details • Can use auto-generated screens for adding/editing or create your own • Developers can modify screens at design-time and runtime • Always based on queries • Generated screens do not expose XAML  You can use Silverlight controls you create yourself  You can add UI elements packaged as extensions
  • 13. 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
  • 16. Access Control • Authentication  LightSwitch supports Windows and Forms authentication • Authorization  Check if the user is allowed to do something  Define permissions and check them in code at entity and property level  Permissions are granted through administration screens
  • 17. Access Control • Permissions are defined by the developer • The application’s administrator(s) define(s) users and roles • Permissions are assigned to roles • Users are assigned to roles • A user’s effective permissions are the combined permissions assigned to their roles
  • 18. Deployment Options • 2-tier desktop application  Application runs entirely on user’s computer • 3-tier desktop application  User interface runs on user’s computer  Middle-tier components run on Internet Information Services (IIS) or Windows Azure • 3-tier web application  User interface is browser based  Middle-tier components run on IIS or Windows Azure
  • 20. Thank You • Big thanks to the organizers, sponsors and you for making this event possible • Please fill out your evaluation • Please keep in touch [email protected] @robwindsor msmvps.com/blogs/windsor