Author: rgrabowski
Date: Tue Nov 10 03:23:38 2009
New Revision: 834320

URL: http://svn.apache.org/viewvc?rev=834320&view=rev
Log:
Override CreateCommand/Connection to return new SqlCommand/Connection.

Modified:
    
ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common/Data/SqlServerDbProvider.cs

Modified: 
ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common/Data/SqlServerDbProvider.cs
URL: 
http://svn.apache.org/viewvc/ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common/Data/SqlServerDbProvider.cs?rev=834320&r1=834319&r2=834320&view=diff
==============================================================================
--- 
ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common/Data/SqlServerDbProvider.cs
 (original)
+++ 
ibatis/cs/ibatisnet-3/trunk/src/Apache.Ibatis.Common/Data/SqlServerDbProvider.cs
 Tue Nov 10 03:23:38 2009
@@ -1,4 +1,8 @@
-namespace Apache.Ibatis.Common.Data
+using System;
+using System.Data;
+using System.Data.SqlClient;
+
+namespace Apache.Ibatis.Common.Data
 {
     /// <summary>
     /// System.Data, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089
@@ -32,5 +36,35 @@
             // parameterClass="System.Data.SqlClient.SqlParameter"
             // dataAdapterClass="System.Data.SqlClient.SqlDataAdapter"
         }
+
+        public void Initialize()
+        {
+            // empty
+        }
+
+        public override IDbConnection CreateConnection()
+        {
+            return new SqlConnection();
+        }
+
+        public override IDbCommand CreateCommand()
+        {
+            return new SqlCommand();
+        }
+
+        public override IDbDataParameter CreateDataParameter()
+        {
+            return new SqlParameter();
+        }
+
+        public Type CommandBuilderType
+               {
+                       get { return typeof (SqlCommandBuilder); }
+               }
+
+        public Type ParameterDbType
+        {
+            get { return typeof (SqlDbType); }
+        }
     }
 }


Reply via email to