Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

nhibernate class question

Status
Not open for further replies.

dinger2121

Programmer
Sep 11, 2007
439
US
Hello,
I am using nhibernate along with criterias to interact with my database (mySql). I have everything working just fine. I have created my mapping files and classes to relate back to my database.
I have created a DAL which gets all of my data for me. I have been using IList to return data to my application. I would now like to create a joined query that will return fields from multiple tables. Do I have to create a new class for the result set so that I can use an IList to return the data?
Or is there a better way to return the data to my application (as opposed to using an IList)?

I hope that makes sense. Any help is appreciated.

carl
MCSD, MCTS:MOSS
 
Hello Jason,
I was thinking that this may have been more of a c# (application structure) type of question as opposed to a NH question.

Fortunately, I have figured out the answer to my question in the meantime.
For what it's worth, I realized that if I have my mappings set up correctly in NH, I can just use my base class and rely on my relationship mapping to get to the related data.

Thanks for the help and sorry for the confusion.

carl
MCSD, MCTS:MOSS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top