Revision: 5060
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5060&view=rev
Author: ayenderahien
Date: 2010-07-26 09:30:53 +0000 (Mon, 26 Jul 2010)
Log Message:
-----------
Adding a way to reset the Any cached type, useful if user is programatically modifying the Any instance
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/Mapping/Any.cs
Modified: trunk/nhibernate/src/NHibernate/Mapping/Any.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Mapping/Any.cs 2010-07-24 12:25:11 UTC (rev 5059)
+++ trunk/nhibernate/src/NHibernate/Mapping/Any.cs 2010-07-26 09:30:53 UTC (rev 5060)
@@ -48,6 +48,13 @@
}
}
+ public void ResetCachedType()
+ {
+ // this is required if the user is programatically modifying the Any instance
+ // and need to reset the cached type instance;
+ type = null;
+ }
+
public override void SetTypeUsingReflection(string className, string propertyName, string access)
{
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|