I have a Windows x64 installed on my machine, of course Oracle hadn't made a Driver for using their client in Oracle10g
, this is seems to be a huge problem for me (stop whining)....
So i actually have to connect to DB with Direct Mode.
This is the way it works:
OracleConnectionStringBuilder oraCsb = new OracleConnectionStringBuilder {
Direct = true,
Server = "xxx",
Port = 1521,
Sid = "xxx",
UserId = "xxx",
Password = "xxx"
};
OracleConnection myConnection = new OracleConnection(oraCsb.ConnectionString);
myConnection.Open();
const string myInsertQuery = "SELECT * FROM MEMBERS WHERE ID = 1";
OracleCommand myCommand = new OracleCommand(myInsertQuery) { Connection = myConnection };
myConnection.Open();
try {
var source = myCommand.ExecuteReader();
} finally {
myConnection.Close();
}
Actually this way it's works.
But here is my problem how to Integrate it into FluentNHibernate?
How to use it in here?
_configuration = Fluently.Configure().Database(OracleClientConfiguration.Oracle10 .ConnectionString(@"server=xxx;user id=xxx;password=xxx;SID=xxx;port=1521;Direct=True;")
.UseReflectionOptimizer()
.AdoNetBatchSize(5000)
.ShowSql().FormatSql())
How to make it work without a OracleClient (for 10g)
?