views:

6

answers:

0

Currently I have a DomainService that gets lists of MainBusinessLines, Groups, and LOBs. It then loops and adds the Groups to the appropriate MainBusinessLine, and adds the LOBs to the appropriate Group. I have stepped through and confirmed that the collections are correct. But the issue is when the LoadOperation of the DomainContext loads the MainBusinessLine entities all except for a couple Groups and LOBs are missing. And even those that are there are in the wrong collection. It's almost as if the collections get scrubbed and mixed up during the transmission from DomainService to the DomainContext.

So my current idea is to create Query methods in the DomainService for MainBusinessLines, Groups, and LOBs. And then in my ViewModel load each of the entities and populate the collections in the callback from the load. But I'm concerned if this will raise other issues, like returning to much data to the Silverlight application.

Anyone have any comments on proper procedures? Security is key to this, so I don't want to open any holes where someone could get something they shouldn't. Thanks.

related questions