:D I'll get working on it untill I find out where did I go wrong. Many thanks again!!
On Feb 18, 4:25 pm, Fabio Maulo <[email protected]> wrote: > You must execute that code after configuration... immediately before > BuildSessionFactory.If you think that not are working we have a BIG problem > because NH are using that property to manage lazy-loading. > > NOTE: That is for lazy relationship as one-to-one, many-to-one.... > > 2009/2/18 Nieve <[email protected]> > > > > > > > Hey Fabio, > > Many thanks for that- this is exactly what I was looking for!! > > However, I seem to get always false for that IsLazy prop, regardless > > of what the lazy attribute in my hbm says... I've tried calling > > BuildSessionFactory() before, but I still get falses for all > > properties... Any ideas? > > > On Feb 18, 4:01 pm, Fabio Maulo <[email protected]> wrote: > > > This is an example of "mapping source" meaning... > > > > > foreach(var persistentClass in cfg.ClassMappings) > > > > { > > > > foreach(var property in persistentClass.PropertyClosureIterator) > > > > { > > > > bool isLazy = property.IsLazy; > > > > // your code > > > > } > > > > } > > > > The matter here is that some other "mapping source" had generate all > > > mappings; with that two foreach you can even change the mapping (before > > > BuildSessionFactory). > > > > -- > > > Fabio Maulo > > -- > 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 -~----------~----~----~----~------~----~------~--~---
