Having taken a look into the service side of WCF RIA Services in the previous post , it seems natural to have a bit of a look into the client side. If we make a “vanilla” WCF RIA Services project in Visual Studio 2010 as in; File->New Project Choose a Silverlight Application Choose a Web Application Project and elect to use RIA Services Add a new project item to the web application project; A new Domain Service like the simple DomainService that I added below; [EnableClientAccess()] public class MyDomainService : DomainService { [Invoke] public int Add(int x, int y) { return (x + y); } } then what is it that we’re programming against on the client side? The DomainContext The build process leaves us with a generated class MyDomainContext on the client side which derives from a framework class DomainContext. What’s a DomainContext? It’s quite a big class – here’s its definition taken from a Visual Studio diagram; I brought in the DomainContext’s friends – DomainClient and EntityContainer onto that diagram. The...(read more)