OracleConnectionStringBuilder .Direct is not able to access

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
sjchin
Posts: 1
Joined: Wed 22 Jun 2011 04:05

OracleConnectionStringBuilder .Direct is not able to access

Post by sjchin » Wed 22 Jun 2011 04:14

Greeting,
I had download the trial version of devart mobile edition for oracle. While I follow the sample provided in the website , it seem like .Direct is not able to access. Below is the sample code i Use:


using Devart.Data.Oracle;
...
OracleConnectionStringBuilder oraCSB = new OracleConnectionStringBuilder();
oraCSB.Direct = true; <== error happen at here
oraCSB.Server = "192.168.0.1";
oraCSB.Port = 1521;
oraCSB.Sid = "orcl";
oraCSB.UserId = "scott";
oraCSB.Password = "tiger";
OracleConnection myConnection = new OracleConnection(oraCSB.ConnectionString);
myConnection.Open();

As mention in document, Direct feature will be enable if we set Direct = true.
FYI, I am using under VS2008 professional edition , for Window CE 5.0, i tried CF2.0 & CF3.5, both also having similar issue.

Is there any steps I miss and cause of this? Wait for your prompts reply.
Thanks.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Wed 22 Jun 2011 07:45

Mobile Edition works only in Direct mode. Do not use Direct parameter of connection string with Mobile Edition. We will add this information to the Using Direct Mode article.

Post Reply