Best practice Silverlight + RIA Entity Domain Service: how many objects per domain?

I have a database with gazillion objects, I watched a Tim Heuer video about Silverlight and RIA Services, and he explained how to create a DomainService.

My question is: should I use many domain services for each object or combine them together with all my requests in one big DomainService?

+4
source share
1 answer

Usually you use a domain service for domain information (i.e. related objects).

It will usually be either:

  • all / most tables / entities or
  • groups of closely related tables / entities or
  • odd single table / entity

With RIA services, of course, it’s easier to immediately import them into one model, and RIA issues one (very large) domain service file.

Make sure you try out the new RIA Services SP1 (now in beta), as it now supports complex types and some other new things.

+3
source

All Articles