0

I am using ODP.NET's Oracle.DataAccess.Client 4.112.2 as my Oracle Data Provider and EntLib 6.0. Does anyone know of someone that has implemented this functionality having created your own OracleDatabase that derives from EntLib's Database. I have tried the following:

var factory = new DatabaseProviderFactory("Oracle.DataAccess.Client");
var db = factory.Create("MyConnection");
var conn = (Oracle.DataAccess.Client.OracleConnection)db.CreateConnection();
conn.Open();
Console.WriteLine("Connection Successful!!!\nDatabase Type: \n" + db.GetType());
conn.Close();

This connects fine, however when I call db.ExecuteNonQuery(), I get an error "Parameter discovery is not supported for connections using GenericDatabase" as the generic database return does not know how to check for parameters, using ODP.NET. EntLib Contrib project has a solution to this problem for EntLib v5.0 however some of the stuff there is not supported in 6.0 and the latest release they have is for 2011. Please if anyone can assist with a solution?

4

1 回答 1

0

Oracle 客户端在 Windows 8 和 Windows Server 2012 下不受支持(无法正常运行)。预计在不久的将来(希望不久的)11.2.0.4 版本(您使用的是 11.2.0.2)提供支持。请参阅 Oracle 的方向声明

于 2013-05-17T17:40:37.473 回答