Page 1 of 1

OracleConnectionStringBuilder .Direct is not able to access

Posted: Wed 22 Jun 2011 04:14
by sjchin
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.

Posted: Wed 22 Jun 2011 07:45
by Shalex
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.