[nhusers] Re: How to get an entity/mapping + relation tree?

2010-02-19 Thread mynkow
Cool. I will try this later. I am not offensive. I just wanted to say exactly what I want ;) Thank you. On Feb 19, 12:36 pm, nadav s wrote: > sorry for not understanding. don't be so offensive > anyway, didn't try this my self, but when you use the Configuration class to > load your xmls, > i bel

Re: [nhusers] Re: How to get an entity/mapping + relation tree?

2010-02-19 Thread nadav s
sorry for not understanding. don't be so offensive anyway, didn't try this my self, but when you use the Configuration class to load your xmls, i belive that cfg.ClassMappings should contain all information, stuff like cfg.ClassMappings.First().PropertyIterator and cfg.CollectionMappings for collec

[nhusers] Re: How to get an entity/mapping + relation tree?

2010-02-18 Thread mynkow
Yes, I can. But why should I use reflection when NHibernate already loaded that information? Well I simply want to know which NHibernate's class contains this info. I dont want alternative ways of doing this. On Feb 18, 4:46 pm, Robert Rudduck wrote: > If you just want to do this, you really don'

Re: [nhusers] Re: How to get an entity/mapping + relation tree?

2010-02-18 Thread Robert Rudduck
If you just want to do this, you really don't need NHibernate. Just do a traversal of the properties using reflection. Pusedo code would looks something like: create a queue enqueue the type of the root entityType while the queue is not empty - get all the properties and their property type - add

[nhusers] Re: How to get an entity/mapping + relation tree?

2010-02-18 Thread mynkow
No, I don't wanna do this. I want to get the whole GRAPH of an entity. You know, the class structure, relations to other entities. I am not talking about data but schema of .NET types. I don't know how to describe this with other words. If you dont know what is a graph check wikipedia On Feb 17, 8