Use Linq's Single() method (although I don't know if it's implemented in the
linq version you're using with NH)

        FB

> I'm looking for a session method wich would load entity imidiatly and
throw
> exception if no row was found in database. I need it because of truble
> load() method with polimorphic lazy loading.
> 
> Thanks!
> 
> --
> 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.

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