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

    Resolution: Won't Fix

>It would be nice to be able to specify where the sqlMap.config file is located 
>when using >IBatisNet.DataMapper.Mapper.Instance(). 

The Mapper is here to show you how to configure of IBATIS.NET in a basic use, 
(I don't use it, and Java version don't have it). With the DomSqlMapBuilder you 
have the full power at your finger and can create your own Mapper class.

>The Configure method is the callback method called when the config file 
>changes. Perhaps >a better name would be ConfigurationChanged or Reset.

The Configure method implement a delegate (define by iBATIS). The 
implementation and his name is not the concern of iBATIS, you can use what you 
want.

> Make _mapper in IBatisNet.DataMapper.Mapper protected, not private
> ------------------------------------------------------------------
>
>          Key: IBATISNET-86
>          URL: http://issues.apache.org/jira/browse/IBATISNET-86
>      Project: iBatis for .NET
>         Type: Improvement
>     Versions: DataMapper 1.1, DataMapper 1.2.0, DataMapper 1.2.1
>     Reporter: Chris Weisel
>     Assignee: Gilles Bayon
>     Priority: Trivial

>
> I'm setting up IBatisNet DataMapper to use an embedded sqlmap.config, and so 
> I can't use the provided Mapper class.  The only difference between what I'm 
> doing and the standard (and I would guess that this applies to most other 
> users as well) is that I need to change the InitMapper() method.  
> protected static void InitMapper()
> {
>       DomSqlMapBuilder builder = new DomSqlMapBuilder();
>       _mapper = builder.Configure("Resources.sqlmap.config, 
> Project.Name.Persistence);
> }
> This is an example of the change I need to make.  If the _mapper variable 
> were protected, instead of private, I could simply extend Mapper and override 
> InitMapper and be done with it.  

-- 
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