Search Wiki:

WCF RIA Services


Microsoft WCF RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms using WCF. The RIA Services provides a prescriptive pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier. It includes rich tooling for integrating client and mid-tier projects and for building rich UI through the simplicity of drag-drop support.

For more information on RIA Services (Download Link, MSDN Docs, Talks ...) click here.
For help porting your existing applications to the latest bits click here - Breaking Changes from July CTP to PDC 2009

Please use the forums to provide feedback or post questions.

Getting Started - RIA Services HRApp Walkthrough


The walkthrough provides a step by step guide to building your first RIA services application.
The application we will be building here is an HR Application for an Enterprise.

Click here to download: Getting Started - RIA Services HRApp Walkthrough
To download a flavor of the walkthrough that highlights the VS2010 Tooling features click here.

Feature Samples


WCF extensibility sample

This sample demonstrates how RIA Service's developers can leverage the power and flexibility of the WCF platform. It demonstares how WCF behaviors can be added to a Domain Service, how an explicit .SVC file can be generated for the default Domain Service WCF endpoint and how a custom ServiceHost can be defined for a Domain Service.

Click here to download: WCF extensibility sample

'Add Service Reference' to a Domain Service

This sample demonstrates a WPF (Windows Presentaion Foundation) Application communicating with the WCF service exposed by a DomainService. The application does an AddServiceReference to the WCF DomainService to get a ServiceReferenceClient. It then queries the service for data, as well as makes updates to the data model.
The sample also shows has a Silverlight head working against the same Domain Service.

Click here to download: 'Add Service Reference' to a Domain Service

Authentication Quick Starts

These quick starts cover the key use cases for the Authentication Service. While some show basic integration with ASP.NET, others tackle more complex scenarios including Custom Authentication, Out of Browser & Offline Autnentication, and Windows Live ID support. 'Quick Start' comments have been included in the source to highlight and explain the implementation.

Click here to download: Authentication Quick Starts

Custom Metadata Provider

This sample serves two purposes. First, it demonstrates how to create a custom metadata provider that can participate in the RIA Services metadata pipeline. Secondly, the sample also provides a solution to the existing problem of providing additional metadata for types that you don’t own or can’t modify.

Click here to download: Custom Metadata Provider

Testing Domain Services [demos Repository pattern]

This sample demonstrates how DAL layer can be mocked to Unit Test business logic code implemented in DomainService class. In this sample this is done my implementing a repository pattern, specifically a repository pattern with Linq To SQL as DAL. Instructions on using the sample can be found in the ReadMe doc included with the sample.

Click here to download: Testing Domain Services [demos Repository pattern]

Custom Domain Service DAL Provider

This sample demonstrates how to create a RIA Services DomainService Base Class for a particular Data Source or Data Access Layer (DAL). Two such providers ship with the framework already – the LinqToSql and LinqToEntities DomainService base classes. All the APIs and functionality needed to create these providers is public, which supports the creation of providers targeting other sources of data, for example NHibernate, Amazon Web Services ...

Click here to download: Custom Domain Service DAL Provider

Hosting RIA Services Apps in Azure

This sample demonstrates hosting WCF RIA Services application in Windows Azure.

Click here to download: Hosting RIA Services Apps in Azure


Application Samples


Contoso Sales Application

Contoso Sales is the RIA Services application demoed at PDC 2009 in Scott Guthrie's Keynote.

Click here to download: Contoso Sales Application

Sample Classifieds Application

CyclingClassifieds sample is an ad-sharing intranet Web-application that lets users browse existing ads and post new ads. This sample demonstrates end to end usage of RIA Services and Silverlight features.

Click here to download: Sample Classifieds Application

Silverlight Store [demos POCO and SEO support]

This simple application demonstrates the use of XML data, a Plain Old CLR Object (POCO) DomainService and Search Engine Optimization (SEO). The ASP.NET DomainDataSource control is used to render content as well as a XML sitemap, all indexable by search engines. The down-level content is only visible to clients viewing the site without the required version of Silverlight installed (or JavaScript disabled).

Since ASP.NET DomainDataSource only supports .NET 4, this sample will only work on the VS 2010 release of RIA Services.
Click here to download: Silverlight Store [demos POCO and SEO support]


Tools

Visual Studio 2010 Update Tool

The tool updates RIA Services VS 2008 projects to VS 2010.
For users upgrading their July CTP VS 2008 project to Dev 2010, it is recommend they first upgrade to the PDC bits on VS 2008 (i.e. consume all the breaking changes) and then move to Dev 2010.

Click here to download: Visual Studio 2010 Update Tool
Last edited Sat at 10:43 PM  by SaurabhPant, version 73
Comments
adityavoleti wrote  Sat at 5:47 PM  
Please fix the download link for Authentication Samples for VS/VWD 2008. Thanks for the material.

SaurabhPant wrote  Today at 8:30 AM  
@aditya - The link has been fixed

Updating...
Page view tracker