Chapter 36WCF RIA Services
- Understanding WCF RIA Services
- Creating a domain service
- Exposing data
- Consuming WCF RIA Services in Silverlight
In Chapter 32, “Windows Communication Foundation (WCF),” you saw how WCF provided a standardized means of communication in a technology-agnostic manner. WCF RIA Services (commonly referred to as RIA Services) is a layer on top of WCF that provides a prescriptive pattern and framework for designing data-driven applications that consume data from a server. WCF RIA Services currently target Silverlight applications, but with a view to support additional presentation technologies. This chapter looks at how to use RIA Services to create an end-to-end Silverlight application.
GETTING STARTED
RIA Services is currently most closely associated with and geared toward Silverlight for the client platform, so you start by creating a Silverlight project. You can find a Navigation Application template (as shown in Figure 36-1 under the Silverlight category), which can create all the solution structure required to start with RIA Services (a Silverlight project, an ASP.NET web application, and the RIA Services link between the two).
After clicking OK, you are prompted to add an ASP.NET hosting application to your project, as seen in Figure 36-2. Do so, along with ensuring that the Enable WCF RIA services check ...
Get Professional Visual Studio 2013 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.