Yes.
The user type I'm currently developing is bound to a string column of
a legacy DB.
The value of this column consists of several substrings which can be
considered as "foreign keys" to other tables.
So in the NullSafeGet method I need to split this value into
substrings and query DB for additional data.
Then I need to assemble the data retrieved from DB and return as a
class.

On Mar 7, 3:02 pm, Fabio Maulo <[email protected]> wrote:
> query DB inside an implementation of IUserType ?
>
> 2010/3/7 hival <[email protected]>
>
>
>
>
>
> > In my current implementation of NH user type I need to query a DB for
> > some additional data. What is the safe/correct way to obtain a session
> > in this case? Can I use a current/ambient session or I should open a
> > new session based on the DB connection of the current session? Thank
> > you in advance.
>
> > --
> > 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]<nhusers%[email protected]­>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/nhusers?hl=en.
>
> --
> Fabio Maulo- Hide quoted text -
>
> - Show quoted text -

-- 
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