I have a project that has two tables in it. Businesses and Address. One to many...Mutiple Suit info in the address table...regardless thats not the issue here...what I am trying to do is return all the businesses and as the user selects one of the businesses in the main grid it selects all the related recrods in the address table and displays them on another grid.

I have to main grid upa dn running and on change of selection I can pop a message box up with a particular field value from the Business table...so far so good...
But I am now trying to grab that selceted record and select all the related records in the other table and populate another grid...This is what I am runnign into issues....

I am bombing out on this line:
Dim loadOp = Me._OrganizationContext.Load(query)

I get this ERROR:
Data type(s) of the type parameter(s) in method 'Public Function Load(Of TEntity As System.ServiceModel.DomainServices.Client.Entity)(query As System.ServiceModel.DomainServices.Client.EntityQuery(Of TEntity)) As System.ServiceModel.DomainServices.Client.LoadOperation(Of TEntity)' cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error.


I also tried this

Dim loadOp As LoadOperation(Of Address) = context.Load(context.query())


Any thoughts?


DOMAIN SERVICE
Code:
    Public Function GetCoreBusinesses2() As IQueryable(Of CoreBusiness)
        Return Me.ObjectContext.CoreBusinesses.OrderBy(Function(e) e.ID)
    End Function

    Public Function GetAddresses() As IQueryable(Of Address)
        Return Me.ObjectContext.Addresses.OrderBy(Function(e) e.ID)
    End Function
VB
Code:
        Dim _selectedItem = TryCast(dataGrid1.SelectedItem, CoreBusiness)
        Dim Test As String = _selectedItem.BusinessName
        MessageBox.Show(Test)

        Dim query = _OrganizationContext.Addresses().Where(Function(child) child.CB_ID = _selectedItem.ID)

        Dim loadOp = Me._OrganizationContext.Load(query)
        dataGrid2.ItemsSource = loadOp.Entities