2009/8/24 Guga Oliveira <[email protected]> > > I am getting some problems when we get a list of objects from a lazy > initialization, some times the object is not recognized as the main > class of the object. We have debugged and the list return a CTypeProxy > or something like that instead of the Class of the object.
It is how DynamicProxy work. > > > This is turning us with some troubles, because when we will use the > object to pass it to do some search in criteria, for exemple, it is > not recognized as their class, because of this returned CTytpeProxy. > We are Loading againd the object to get the correct type. If you do a session.Get<T>(id) that is not a problem because NH does not need to hit DB. -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
