Uploaded image for project: 'iBatis for .NET'
  1. iBatis for .NET
  2. IBATISNET-58

Allow all attributes in SqlMap.config file to be aware of ${xyz} properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • DataMapper 1.1
    • DataMapper 1.3
    • 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.

      Attachments

        Activity

          People

            gilles Gilles Bayon
            ron liu ron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: