Yes, that’s right… we now have a component that is a big step toward addressing the request for an MVVM-Friendly DomainDataSource. As of this posting, that feature was the #2 requested item on the RIA Services wish list, and we’ve been pondering its design for a long time. Kyle McClellan has delivered on this and he is posting details to his blog. This feature is completely separate from the DomainDataSource, and it’s built from the ground up with ViewModel usage in mind.
Here are some specific links from Kyle’s blog:
Here are the links you need to get up and running:
Install WCF RIA Services SP1 for Silverlight 4
The RIA Services Essentials project contains sample applications/extensions demonstrating using and extending WCF RIA Services v1.
- Entity framework data model with one-to-many and many-to-many relationships as well as use of stored procedures
- Local data model augmented/mixed with a web service-based data model (in this case Amazon).
- CRUD and more (queries, insert, update, delete, as well as named update methods, and invoke methods)
- Use of convention and configuration for identifying CRUD operations
- Validation (field level, entity level, operation level, change-set scoped, server-only validation, async validation)
- Custom authentication (i.e. using your DAL/user table, rather than asp.net membership)
- Authorization (including custom authorization rules)
- Using authentication service and your User object in server code
- Usage of DomainServiceFactory
- Exposing reference data
- Presentation model for defining custom (non-DAL) types for use between client and server
- Shared code between client and server for validation rules
- Query limits, and caching
- Using RIA Services with MVVM on the client
- Adding computed properties on Entities on the client along with propagation of change notifications
- "More" style paging (as seen for example on twitter.com)
- Display of pending changes, validation errors
- Reference data used to fill lookup dropdown lists.
A sample Silverlight business application using MEF, MVVM Light, and WCF RIA Services.
A common question in the RIA Services forums is how RIA Services fit into best practices architecture. I was always impressed with the basic forms-over-data capabilities of RIA Services, but I definitely saw the opportunity to better architect my application so the framework concerns didn’t leak into the logic of my application.
Fore more -> RIA Services – Enterprise Patterns with WCF RIA Services