Allow one complete <provider> node SqlMap.config
------------------------------------------------
Key: IBATISNET-59
URL: http://issues.apache.org/jira/browse/IBATISNET-59
Project: iBatis for .NET
Type: New Feature
Versions: DataMapper 1.2
Reporter: Ron Grabowski
Assigned to: Gilles Bayon
Priority: Trivial
Attachments: ParseProvider.cs
This is a follow up to my post on the mailing list:
http://tinyurl.com/cej2y
http://www.mail-archive.com/[email protected]/msg00352.html
I suspect that many IBatisNet apps are not designed to work against all 10
providers currently in the providers.config file. I think the common case is
for an application to run on one or perhaps two databases.
I propose making the providers.config file optional and allowing the user to
embed a single <provider> node into the SqlMap.config file:
<database>
<provider
assemblyName="System.Data, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
connectionClass="System.Data.OleDb.OleDbConnection"
commandClass="System.Data.OleDb.OleDbCommand"
parameterClass="System.Data.OleDb.OleDbParameter"
parameterDbTypeClass="System.Data.OleDb.OleDbType"
parameterDbTypeProperty="OleDbType"
dataAdapterClass="System.Data.OleDb.OleDbDataAdapter"
commandBuilderClass="System.Data.OleDb.OleDbCommandBuilder"
usePositionalParameters = "true"
useParameterPrefixInSql = "false"
useParameterPrefixInParameter = "false"
parameterPrefix = "" />
<dataSource
name="abc"
connectionString="def"/>
</database>
One of the changes to the source would be to the ParseProvider() method of
IBatisNet.DataMapper.Configuration.DomSqlMapBuilder. It would need to know to
parse a complete <provider> node if the <provider> had more than just a "name"
attribute.
--
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