Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
DataMapper 1.1
-
None
-
None
-
[assembly: AssemblyVersion("1.1.458")]
Description
As of 5/5/2005, not all attributes in SqlMap.config are aware of ${xyz} style global properties.
IBatisNet.DataMapper.Configuration.Initialize() should be checked to make sure ParsePropertyTokens is called on everything. For example, when a TypeAlias is deserialized its settable properties should be run through ParsePropertyTokens:
typeAlias = (TypeAlias) serializer.Deserialize(new XmlNodeReader(xmlNode));
typeAlias.Class = Resources.ParsePropertyTokens(typeAlias.Class, _configScope.Properties);
typeAlias.ClassName = Resources.ParsePropertyTokens(typeAlias.ClassName, _configScope.Properties);
typeAlias.Name = Resources.ParsePropertyTokens(typeAlias.Name, _configScope.Properties);
before it is initialized:
typeAlias.Initialize();
IBatisNet.DataMapper.Configuration.ConfigureSqlMap() should also be updated to allow global properties to be substituted.