[ http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66392 ] Gilles Bayon commented on IBATISNET-74: ---------------------------------------
Ron suggestion are nices, just some note, if I want to use an absolutePath, I'am obliged to instanciate and use a FileInfo, the framework can take care of this form me, to use an embedded resssource, we can keep SqlMapper.Configure("resource://sqlMap.Config") or SqlMapper.Configure("sqlMap.Config") for relative SqlMapper.Configure("file://c:\MyDirectory\sqlMap.Config") for absolute SqlMapper.Configure("embedded://A.B.SqlMap.Config, assembyName") for embedded and also add SqlMapper.Configure(FileInfo absolutePath) SqlMapper.Configure(Stream embeddedResource) SqlMapper.Configure(Uri externalLocation) idem SqlMapper.ConfigureAndWatch("resource://sqlMap.Config") or SqlMapper.ConfigureAndWatch("sqlMap.Config") for relative SqlMapper.ConfigureAndWatch("file://c:\MyDirectory\sqlMap.Config") for absolute SqlMapper.ConfigureAndWatch(FileInfo absolutePath) > 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