[ http://issues.apache.org/jira/browse/IBATISNET-9?page=all ]
     
Gilles Bayon closed IBATISNET-9:
--------------------------------

     Resolution: Fixed
    Fix Version: DataMapper 1.2

Need to add it in the doc

> Allow providers.config to be located elsewhere
> ----------------------------------------------
>
>          Key: IBATISNET-9
>          URL: http://issues.apache.org/jira/browse/IBATISNET-9
>      Project: iBatis for .NET
>         Type: Improvement
>     Reporter: Birgir Kristmannsson
>      Fix For: DataMapper 1.2

>
> I'm coming back to iBatis.NET after about 4-6 weeks of inactivity. I did a 
> refresh of the source code (from https://wush.net/svn/ibatisnet1) and after 
> that I spent quite a bit of time figuring out why things didn't work.
> I found that the <providers url="x" /> in the sqlmap.config didn't work 
> anymore.
> I also noticed that the project has moved to apache, but couldn't find any 
> reference to a new subversion repository (e.g., on svn.apache.org), so I'm 
> guessing that I have the latest source.
> I would prefer to be able to have an entry in my sqlmap.config, like:
>     <providers url="../../../maps/providers.config"/>
> that was properly handled in DomSqlMapBuilder (#region Load providers)
>                       if (_isCallFromDao == false)
>                       {
>                               
> //GetProviders(Resources.GetConfigAsXmlDocument(PROVIDERS_FILE_NAME));
>                               
> GetProviders(Resources.GetAsXmlDocument(_sqlMapConfig.SelectSingleNode(PROVIDERS_CONFIG)));
>                       }
> where 
>               private const string PROVIDERS_CONFIG = 
> "/sqlMapConfig/providers";
> of course, without breaking backwords compatibility as my change above :) 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to