You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by gb...@apache.org on 2005/04/28 21:02:03 UTC
svn commit: r165177 -
/incubator/ibatis/trunk/cs/mapper/IBatisNet.Common/Provider.cs
/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/providers.config
Author: gbayon
Date: Thu Apr 28 12:02:02 2005
New Revision: 165177
URL: http://svn.apache.org/viewcvs?rev=165177&view=rev
Log:
- Added definition for SQLite3 provider + fixed to used parameterDbTypeClass as "System.Data.DbType, System.Data"
Modified:
incubator/ibatis/trunk/cs/mapper/IBatisNet.Common/Provider.cs
incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/providers.config
Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.Common/Provider.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.Common/Provider.cs?rev=165177&r1=165176&r2=165177&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.Common/Provider.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.Common/Provider.cs Thu Apr 28 12:02:02 2005
@@ -35,6 +35,7 @@
using IBatisNet.Common.Exceptions;
using IBatisNet.Common.Logging;
+using IBatisNet.Common.Utilities.TypesResolver;
using log4net;
#endregion
@@ -411,6 +412,7 @@
{
Assembly assembly;
Type type;
+ CachedTypeResolver cachedTypeResolver = new CachedTypeResolver();
try
{
@@ -429,7 +431,14 @@
_dataParameterType = assembly.GetType(_dataParameter, true);
// Get the CommandBuilder Type
_commandBuilderType = assembly.GetType(_commandBuilderClass, true);
- _parameterDbType = assembly.GetType(_parameterDbTypeClass, true);
+ if (_parameterDbTypeClass.IndexOf(',')>0)
+ {
+ _parameterDbType = cachedTypeResolver.Resolve(_parameterDbTypeClass);
+ }
+ else
+ {
+ _parameterDbType = assembly.GetType(_parameterDbTypeClass, true);
+ }
_templateConnectionIsICloneable = _templateConnection is ICloneable;
_templateCommandIsICloneable = _templateCommand is ICloneable;
Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/providers.config
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/providers.config?rev=165177&r1=165176&r2=165177&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/providers.config (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/bin/Debug/providers.config Thu Apr 28 12:02:02 2005
@@ -156,5 +156,25 @@
useParameterPrefixInParameter = "true"
parameterPrefix="@"
/>
+ <provider
+ name="SQLite3"
+ description="SQLite.NET, SQLite provider V0.21.1869.3794"
+ enabled="false"
+ assemblyName="SQLite.NET, Version=0.21.1869.3794, Culture=neutral, PublicKeyToken=c273bd375e695f9c"
+ connectionClass="Finisar.SQLite.SQLiteConnection"
+ commandClass="Finisar.SQLite.SQLiteCommand"
+ parameterClass="Finisar.SQLite.SQLiteParameter"
+ parameterDbTypeClass="System.Data.DbType, System.Data"
+ parameterDbTypeProperty="DbType"
+ dataAdapterClass="Finisar.SQLite.SQLiteDataAdapter"
+ commandBuilderClass="Finisar.SQLite.SQLiteCommandBuilder"
+ usePositionalParameters = "true"
+ useParameterPrefixInSql = "false"
+ useParameterPrefixInParameter = "false"
+ parameterPrefix=""
+ setDbParameterPrecision="false"
+ setDbParameterScale="false"
+ setDbParameterSize="false"
+ />
</providers>