my progrom need do reflection on some persisent object
like this
persisent .GetType()
now I m using NHibernate v1.20
form the following post I know that it may cause some problem when using lazy loading and reflection at the same time
and it really cause some problem when I use reflection.
e.g AmbiguousMatchException, wrong type return ...etc
http://forum.hibernate.org/viewtopic.ph ... reflection
Finally, I have rewrite the GetType method @ my persisent obj
public virtual new Type GetType()
{
return base.GetType();
}
then the problem seems solve
However, I'm not very sure that it will fix the problem, since I can't seen any connnetion between above coding and the dynamic proxy
do any one know why above work?