to create a proxy instance you can use : session.Load<YourEntityType>(thePOID)
On Sat, Sep 18, 2010 at 1:48 AM, Daniel Ferreira Monteiro Alves < [email protected]> wrote: > Just setting more information of what I really need. > > I see that the NHibernate (thanks Reflector) can create proxies by using an > instance of an entity persister, which is associated with each entity type > on the session. So how could I get the entity persister for a type and, if > necessary, how can I set it up to then create a proxy instance. > > > 2010/9/18 Daniel Alves <[email protected]> > > Hi guys, >> >> I am working with a fork of the FluorineFx... So I need to pass entity >> types in c# to AS3 on Flex, and vice-versa. Ok, that is easy! >> >> But I need a way to recreate proxy instances, for not uninitialized >> instances, when receiving data from Flex to the server. >> >> I can easily identify proxy objects when sending them to the Client >> (flex), so I can use a custom type to hold the information needed (on >> the client). And then, if this instance goes back to the server again, >> I can recreate the proxy instance. >> >> The idea is to reconstruct the object graph just like it was sended, >> but reassociating with the current session, when needed. So I need a >> way to create the nhibernate proxies again and, if possible, check and >> reassociate them with the current session, without bugging the >> nhibernate cache. > > > > > -- > Daniel Ferreira Monteiro Alves > Mestrando - Ciência da Computação - UFG > (62) 9112-6512 > > -- > 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 -- 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.
