|
From: <fab...@us...> - 2010-08-02 17:56:27
|
Revision: 5095
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5095&view=rev
Author: fabiomaulo
Date: 2010-08-02 17:56:21 +0000 (Mon, 02 Aug 2010)
Log Message:
-----------
Partial fix of NH-2263 (thanks to Patrick Earl for the issue)
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/Driver/OracleClientDriver.cs
trunk/nhibernate/src/NHibernate/NHibernate.csproj
Modified: trunk/nhibernate/src/NHibernate/Driver/OracleClientDriver.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Driver/OracleClientDriver.cs 2010-08-02 17:30:36 UTC (rev 5094)
+++ trunk/nhibernate/src/NHibernate/Driver/OracleClientDriver.cs 2010-08-02 17:56:21 UTC (rev 5095)
@@ -1,5 +1,4 @@
using System.Data;
-using System.Data.OracleClient;
using NHibernate.Engine.Query;
using NHibernate.SqlTypes;
@@ -8,20 +7,13 @@
/// <summary>
/// A NHibernate Driver for using the Oracle DataProvider.
/// </summary>
- public class OracleClientDriver : DriverBase
+ public class OracleClientDriver : ReflectionBasedDriver
{
private static readonly SqlType GuidSqlType = new SqlType(DbType.Binary, 16);
- public override IDbConnection CreateConnection()
- {
- return new OracleConnection();
- }
+ public OracleClientDriver() :
+ base("System.Data.OracleClient", "System.Data.OracleClient.OracleConnection", "System.Data.OracleClient.OracleCommand") { }
- public override IDbCommand CreateCommand()
- {
- return new OracleCommand();
- }
-
public override bool UseNamedPrefixInSql
{
get { return true; }
Modified: trunk/nhibernate/src/NHibernate/NHibernate.csproj
===================================================================
--- trunk/nhibernate/src/NHibernate/NHibernate.csproj 2010-08-02 17:30:36 UTC (rev 5094)
+++ trunk/nhibernate/src/NHibernate/NHibernate.csproj 2010-08-02 17:56:21 UTC (rev 5095)
@@ -49,7 +49,6 @@
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
- <Reference Include="System.Data.OracleClient" />
<Reference Include="System.ServiceModel">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|