From: <fab...@us...> - 2011-04-02 21:18:54
|
Revision: 5584 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5584&view=rev Author: fabiomaulo Date: 2011-04-02 21:18:48 +0000 (Sat, 02 Apr 2011) Log Message: ----------- Minor Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Mapping/ByCode/ExplicitlyDeclaredModel.cs Modified: trunk/nhibernate/src/NHibernate/Mapping/ByCode/ExplicitlyDeclaredModel.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Mapping/ByCode/ExplicitlyDeclaredModel.cs 2011-04-02 20:54:38 UTC (rev 5583) +++ trunk/nhibernate/src/NHibernate/Mapping/ByCode/ExplicitlyDeclaredModel.cs 2011-04-02 21:18:48 UTC (rev 5584) @@ -29,7 +29,7 @@ private readonly HashSet<System.Type> tablePerClassHierarchyJoinEntities = new HashSet<System.Type>(); private readonly HashSet<System.Type> tablePerConcreteClassEntities = new HashSet<System.Type>(); private readonly HashSet<MemberInfo> versionProperties = new HashSet<MemberInfo>(); - private Dictionary<System.Type, Action<System.Type>> delayedTypeRegistration = new Dictionary<System.Type, Action<System.Type>>(); + private readonly Dictionary<System.Type, Action<System.Type>> delayedEntityRegistrations = new Dictionary<System.Type, Action<System.Type>>(); #region IModelExplicitDeclarationsHolder Members @@ -544,14 +544,15 @@ private void EnlistTypeRegistration(System.Type type, Action<System.Type> registration) { - delayedTypeRegistration.Add(type, registration); + delayedEntityRegistrations.Add(type, registration); } private void ExecuteDelayedTypeRegistration(System.Type type) { Action<System.Type> registration; - if(delayedTypeRegistration.TryGetValue(type, out registration)) + if(delayedEntityRegistrations.TryGetValue(type, out registration)) { + delayedEntityRegistrations.Remove(type); registration(type); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |