Thanks David,
IsActive is in the ServiceProvider table not the link table ClientServiceProvider and I think that's where I'm having trouble. These two flags are in different tables.
I tried filtering on IsActive in the overload and it worked but it gave me all ClientServiceProvider entities but if the ServiceProvider entity was not active I didn't get it (so the filter worked) and I got a null reference exception on clientServiceProvider.ServiceProvider.
What I need is ONLY the ClientServiceProvider entities for which the ServiceProvider entity IsActive. So:
Client.ClientServiceProvider.ServiceProvider.IsActive == true
But I also need the ClientServiceProvider so I can tell if the provider IsPrimary so I have to use ClientEntity.PrefetchPathServiceProviderCollectionViaClientServiceProvider rather than just ClientEntity.PrefetchPathClientServiceProvider.
Maybe ClientEntity.PrefetchPathClientServiceProvider.SubPath.Add(ClientServiceProviderEntity.PrefetchPathServiceProvider) with an appropriate filter somewhere?
Any more help you could provide would be appreciated.
Thanks,
Jay