[ http://issues.apache.org/jira/browse/IBATISNET-63?page=all ]
Ron Grabowski updated IBATISNET-63: ----------------------------------- Attachment: ParseGlobalProperties.cs Support loading properties directly from <properties> node: <properties> <add key="Hello" value="World" /> </properties> as well as from external location: <properties resource="database.config" /> Added logging to indicate the number of properties that were loaded. > Allow <properties> to be set from within SqlMap.config instead of from an > external file. > ---------------------------------------------------------------------------------------- > > Key: IBATISNET-63 > URL: http://issues.apache.org/jira/browse/IBATISNET-63 > Project: iBatis for .NET > Type: Improvement > Reporter: Ron Grabowski > Assignee: Gilles Bayon > Priority: Trivial > Attachments: ParseGlobalProperties.cs > > This is a follow up to my post on the mailing list: > http://tinyurl.com/cej2y > > http://www.mail-archive.com/ibatis-user-cs@incubator.apache.org/msg00352.html > It would also be nice if I could populate the <properties> node in > SqlMap.config with global properties instead of having to specify an external > file. If a property file only has one property in it, why not just put it in > SqlMap.config? Having an external properties file is just another small file > I need to worry about. > The user would be allowed to specify an external file or specify values > inline but not both: > <!-- OK --> > <properties> > <add key="selectKey" value="SELET @@IDENTITY" /> > </properties> > <!-- OK --> > <properties url="c:/properties.xml" /> > <!-- WRONG --> > <properties url="c:/properties.xml" /> > <add key="selectKey" value="SELET @@IDENTITY" /> > </properties> -- 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