Login Skip Navigation LinksWilsonORMapper > Forums Search
Demo Version Demo Version
Download and try for yourself a fully working demo version, including sample apps and documentation.  The only limitation is that the demo version only works inside the debugger.

PayPal Subscribe
Get It All for $50 USD:
WebPortal, ORMapper,
Source Code, All Updates
PayPal

User Login User Login
Log In
 
 
Reset Password

Wilson ORMapper Forums Wilson ORMapper Forums : Advanced Topics : Querying fields across many objects

Date Post
2/2/2007 9:31:11 PM

Lets say I have a search page with a grid that I want to populate with fields from 3 different objects, but that I only want a subset of the fields for each object. How do I use WORM to create a query that will return a dataset/xml from this query. I won't be able to return an object because the data I will be returning won't be of any object type that I've created.

 

-meppum

2/3/2007 12:15:29 AM There is a GetDataSet method which you can use to simply return a DataSet.
3/26/2007 6:38:15 PM

If you're willing to take the performance hit for a more OO design and you have small objects and a small number of objects being returned, you might be able to create a property on your main object that just passes through to the object which has the property you need. Then you can bind the grid to the object collection.

For example, suppose you have an Invoice object which a Customer object.  You could add a CustomerName property to Invoice like so:

Public ReadOnly Property CustomerName() As String
   Get
      Return Me.Customer.Name
   End Get
End Property

--Bill Daly