I need some advice on how to create and fill a custom return object
that returns a string list (as opposed to a class list).

Here's the relevant underlying table structure:

Company
----------
id (id)
Name (varchar)
RoutingID (varchar)


Contact
-----------
id (id)
CompanyID (FK to Company.id)
Email (varchar)


I want to create a return object with the following members:

string CompanyName;
string CompanyRoutingID;
string[] Emails;

Or, in an XML Serialized world (where this is eventually headed):

<CustomObject>
   <CompanyName>Name</CompanyName>
   <CompanyRoutingID>RoutingID</CompanyRoutingID>
   <Email>email1</Email>
   <Email>email2</Email>
   <Email>emailn</Email>
</CustomObject>

How would I go about creating a mapping file for this, and how would I
set up a Criteria query to get the info needed?

--
Dave Savitsky

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to