xiaoying guo program manager -...
TRANSCRIPT
Xiaoying GuoProgram ManagerMicrosoft Server and Tools ChinaSession Code: DEV377
Agenda
Why building Business Application in Silverlight
How to build Business Applications with:Silverlight
Silverlight + ASP.NET based .NET RIA Services
How to use tools to improve productivity
Trends In Today’s Business Application
RIA
Data
Why RIA?
Rich UI experienceInteractive UI model to operate data
Internet applicationWide Internet deployment
Cross boundaries between platforms and browsers
Application logicProductive development experience
Easy to build, reuse, customize
and extend
Silverlight for RIA
Rich Internet application controlsMore than 60 built-in controls
More data visual controls at http://www.codeplex.com/Silverlight
Easy Internet deployment
Various platforms and browsers support
Productive development experience.NET runtime and Base Class Library support
Interactive UI model support
Powerful tooling support
Data! Data!! Data!!!
Business applications are all about data
Web based business applications have challenges:
Moving data between layers and boundaries
Define resources and operation
Validate data in presentation and mid-layer
Share services between different applications
Build Business Application in Silverlight
Plumbing Code
ServerBusinessObjects
ClientBusinessObjects
Create and Connect database
Write validation
logic at server
Add service reference
into the client
Bind data to the UI
Build update mechanism
Add data paging, sorting, filtering,
etc.
Create data source anddata access layer (DAL)
Create a service to
marshal data
Create UIAdd client side business logic
Server Client
Build Business Application in Silverlight
Better Silverlight for Business Application
Basic Platform
CLR
Core UI Engine
Business Logic Framework
Data Loading
Data Validation
Business Logic
Application Services
Business Controls
Basic Framework
ControlsData• XML• LINQ
Networking / Services
Data BindingControl
Model
Navigation
Simplify N-tier Business Application
Plumbing Code
ServerBusinessObjects
ClientBusinessObjects
Create and Connect database
Write validation
logic at server
Add service reference
into the client
Bind data to the UI
Build update mechanism
Add data paging, sorting, filtering,
etc.
Create data source anddata access layer (DAL)
Create a service to
marshal data
Create UIAdd client side business logic
Server Client
Simplify N-tier Business Applicaton
Create and Connect database
Create data source anddata access layer (DAL)
SharedBusinessObjects
Connect data source and UI with a set of
business objects
Support basic data analysis, sorting, paging, testing, etc.
Server Client
.NET RIA Services
Work on existing Client / Server technology
Silverlight Client
ASP.NET Server
Unified Client / Server modelThe same set of business objects
In the same application project
Simplify data movingExpose data by business objects
Provide plumbing for data
Various data sourcesEntity Framework, ADO.NET Data Services, Web Services, etc.
Data Access Layer
Business objects
Business Objects
View
Server
Client
Building Business Application In .NET RIA Services
Key Concept in .NET RIA ServicesDomainServiceMain class at Server for data operation
DomainContextClient class to invoke methods defined in DomainService
EntityListA collection for data binding
MetadataProvides data validation on data entities in a flexible way
Shared CodeShare business logic between layers and boundaries
Data Access Layer
DomainContext
View
Server
Client
Shared Code EntityList
Shared Code
DomainService
Metadata
Code Gen
Data Validation In .NET RIA Services
Meet More Needs In Business Apps
Custom operation
Authentication
Validation
Paging
Data filtering at Server
Etc.
Custom Method and Authentication In .NET RIA Services
Better Tool, Better Life
Based on Microsoft Visual StudioEasy to update with add-on package
Familiar development experience in IDE
Basic tooling support in code generation
More tooling support in Visual Studio 2010Data Source Window support
Live IntelliSense
Summary
Trends in today’s business applicationRIA: Rich interactive Internet Application
Data: complex data operation
Silverlight enables RIA in business application
.NET RIA Services provides complete business application solution
Silverlight and ASP.NET based
The same set of business objects to simplify data operation
Built-in data validation mechanism against metadata
Tooling support improves productivity
Resources
Silverlight communityhttp://silverlight.net
MSDN Silverlight forumhttp://social.msdn.microsoft.com/Forums/en-US/silverlightdeveloper
Scott Guthrie bloghttp://weblogs.asp.net/scottgu
Brad Abrams bloghttp://blogs.msdn.com/brada
Business application tooling team bloghttp://blogs.msdn.com/vsdata
XAML Power Toyshttp://karlshifflett.wordpress.com/2009/10/25/xaml-power-toys-for-visual-studio-2010-beta2-cider-designer/
http://microsoft.com/technet
Resources for IT Professionals
http://microsoft.com/msdn
Resources for Developers
www.microsoft.com/learning
Microsoft Certification & Training Resources
Resources
Housekeeping
Level 1Theater I: UNC322 – by Scott Schnoll
Theater II: BIN429 – by Donald Farmer
Level 4Room S421: DAT336 – by Andrew Coates
Room S423: SEC353 – by Mohit Saxena
Room S425: DEV423 – by Karen Liu
Room S427: WMB203 – by Jim Tsui
Room S426: SEC05-HOL – by Microsoft Certified Trainer
© 2009 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.