Is there any way of using the QueryableDomainServiceCollectionView (for an MVVM implementation), and assigning the query using the query name rather than the query itself? We're trying to implement a generic lookup dialog that will be passed a number of parameters, including the query name, and parameters for the query, and which will then display a grid with the returned data from the query.
I've already tested out converting our DomainDataSource driven maintenance and enquiry routines to using the QueryableDomainServiceCollectionView, which works fine, but each of those is being assigned a specific query from our context.
I believe I could use reflection to find the query I'm interested in, and have already tried this partially, using:
MyContext.GetType().GetMethod("GetVehiclesForLookupQuery");
But I'm not sure where to go from here, to assign the EntityQuery<Vehicle> variable that I require to initiialise the QueryableDomainServiceCollectionView with.
Any assistance you could give would be great.
Regards,
Colin.
I've already tested out converting our DomainDataSource driven maintenance and enquiry routines to using the QueryableDomainServiceCollectionView, which works fine, but each of those is being assigned a specific query from our context.
I believe I could use reflection to find the query I'm interested in, and have already tried this partially, using:
MyContext.GetType().GetMethod("GetVehiclesForLookupQuery");
But I'm not sure where to go from here, to assign the EntityQuery<Vehicle> variable that I require to initiialise the QueryableDomainServiceCollectionView with.
Any assistance you could give would be great.
Regards,
Colin.