-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Load an object IDataReader
PostPosted: Mon Jan 21, 2008 12:04 am 
Newbie

Joined: Sun Jan 20, 2008 11:54 pm
Posts: 2
Location: Australia
Hi,

I am wondering if it is possible to load an object with NHibernate, where I can pass in an IDataReader.

An example where this might be used would be in unit tests.
Assume I create a DataTable with some known data, then I use a situation like the following:

Code:
IDataReader dr = myDataTable.CreateDataReader();


Is it possible for me to hydrate objects using NHibernate, assuming the column mappings matched?

Just wanting to hear your thoughts?

Brendan.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.