Is there relunctance to use file urls?

Because  SqlMapper.Configure(Uri externalLocation) can handle the
absolute path option. I read in some Blog that MS is going to
encourage the use of the Uri class in the next .NET framework.


On 5/26/05, Ron Grabowski (JIRA) <ibatis-dev@incubator.apache.org> wrote:
>      [ 
> http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66354 ]
> 
> Ron Grabowski commented on IBATISNET-74:
> ----------------------------------------
> 
> I like Rick's idea but this doesn't seem very .Net-ish to me:
> 
> assembly://System.Data, Version=1.0.5000.0, Culture=neutral, 
> PublicKeyToken=b77a5c561934e089/namespace/resourceName
> 
> On the flip side, it seems like System.Uri would be able to handle that 
> string well.
> 
> Gilles idea is similiar to what log4net and nlog use when they need to pass 
> in additional information about the string.
> 
> I think we're giving the user to much freedom when we accept just a string. 
> This is how log4net does it:
> 
> http://tinyurl.com/8bqlm
> http://logging.apache.org/log4net/release/sdk/log4net.Config.XmlConfigurator.Configure_overloads.html
> 
> I propose this:
> 
>  SqlMapper.Configure(string relativePath)
>  SqlMapper.Configure(FileInfo absolutePath)
>  SqlMapper.Configure(Stream embeddedResource)
>  SqlMapper.Configure(Uri externalLocation)
>  SqlMapper.ConfigureAndWatch(string relativePath)
>  SqlMapper.ConfigureAndWatch(FileInfo absolutePath)
> 
> That would also address IBATISNET-31 and allow the config file to come from 
> http://
> 
> > Improvement for configuration
> > -----------------------------
> >
> >          Key: IBATISNET-74
> >          URL: http://issues.apache.org/jira/browse/IBATISNET-74
> >      Project: iBatis for .NET
> >         Type: Improvement
> >  Environment: .NET
> >     Reporter: Gilles Bayon
> >     Assignee: Gilles Bayon
> >     Priority: Minor
> >      Fix For: DataMapper 1.2
> 
> >
> > To improve loading of sqlMap/dao.config files and make it more clearly, I 
> > propose to use the same syntax as for other tag.
> > Loading of sqlMap/dao.config files with relative path : 
> > SqlMapper.Configure("resource:sqlMap.Config") or 
> > SqlMapper.Configure("sqlMap.Config") [to keep old syntax][+ idem for 
> > ConfigureAndWatch]
> > Loading of sqlMap/dao.config files with absolute path : 
> > SqlMapper.Configure("url:c:\MyDirectory\sqlMap.Config") [+ idem for 
> > ConfigureAndWatch]
> > Loading of sqlMap/dao.config files embedded : 
> > SqlMapper.Configure("embedded:A.B.SqlMap.Config, assembyName") 
> > [ConfigureAndWatch will not be allow]
> 
> --
> 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