This is a quick blog post to share slides and demos from my presentations at TechEd in South Africa. Feel free to post questions here...
From the talk on ViewModel and Application Patterns for Silverlight...
The app I built was a mini-Twitter client named TwitterBug. The demo covered the following:
- The ViewModel pattern using data-binding and commanding
- Behaviors as a mechanism to encapsulate repetitive view functionality
- Implementing an IoC container and dependency injection using MEF
- EventAggregator pattern to facilitate view model to view model communication
- Designer/developer workflow
- Unit testing of view models
- Using .NET RIA Services and building a DomainService that uses LINQ to Twitter as its DAL
.NET RIA Services…
For this session I built a basic library management front-end. The code demonstrates a simple CRUD app for managing a list of books:
- Unified client and server as part of a single application
- LINQ as a cross-tier query language and mechanism
- A metadata pipeline from the database to the middle-tier to the client
- Validation and authorization
- Shared code
- Using POCO/non-DAL types in conjunction with Linq to SQL DAL types
- Imperative use of client framework, as well as declarative use of DomainDataSource
- Use of the DataForm, and customizing it for read-only and editable views
Additionally I also demo’d using the DomainService/DomainContext pattern in a broader variety of application contexts:
- Using Azure storage as the DAL
- Creating jQuery/Ajax and ASP.NET MVC-based front-ends/presentation layers
- Creating an ADO.NET Data Service (aka Astoria service) based on a domain service
- Implementing a proof-of-concept offline data model for use in Silverlight Out-of-Browser applications
Most of these scenarios were described at greater length in my MIX blog post. I’ll go over more details on various topics with individual blog posts when I am back in Redmond.
Posted on Tuesday, 8/4/2009 @ 3:02 PM
| #
Silverlight