Skip to content

Commit cbfa9a7

Browse files
author
Demetris Manikas
committed
moved mapping initialization in Reset and made Reset the first call of Configuration(). Previous changes had broken adding the mappings in the app.config file
SVN: trunk@1745
1 parent 36fbb9d commit cbfa9a7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/NHibernate/Cfg/Configuration.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,15 @@ private void Reset()
107107
propertyReferences = new ArrayList();
108108
interceptor = emptyInterceptor;
109109
caches = new Hashtable();
110+
mapping = new Mapping( this );
110111
}
111112

112113
/// <summary>
113114
/// Create a new Configuration object.
114115
/// </summary>
115116
public Configuration()
116117
{
118+
Reset();
117119
Environment.Configure();
118120
XmlNode confNode = Environment.ConfigurationNode;
119121
if ( confNode != null )
@@ -128,9 +130,6 @@ public Configuration()
128130
{
129131
properties = Environment.Properties;
130132
}
131-
132-
mapping = new Mapping( this );
133-
Reset();
134133
}
135134

136135
/// <summary></summary>

0 commit comments

Comments
 (0)