Page 1 of 1

DataContext.CommandTimeout problem

Posted: Mon 07 Sep 2009 18:09
by dilbert
Hi,
according to the previous "New features announcements" support for property DataContext.CommandTimeout should be added.

However, currently I'm using dotconnect for MySQL 5.40.42 and I've got "Specified method is not supported." exception for the following code:

Code: Select all

_dbContext = new DBContext(ConnectionString);
_dbContext.CommandTimeout = 120;
It seems strange to me because I think this property was really available in previous versions. (Although, I'm not sure about it.)

(Setting command timeout for MySqlCommand works correctly. It's just Linq DataContext issue.)

So, I'd like to ask if it's really problem of the latest build.
Thank you in advance.

Posted: Wed 09 Sep 2009 12:37
by Shalex
Support for the DataContext.CommandTimeout property is implemented in dotConnect for PostgreSQL and dotConnect for Oracle (the Direct mode only). We plan to implement DataContext.CommandTimeout in dotConnect for MySQL in the nearest build.

Posted: Tue 22 Sep 2009 14:11
by Shalex
We have supported the DataContext.CommandTimeout property in our LINQ to MySQL support. I will post here when the next build of dotConnect for MySQL is available for download.

Posted: Fri 25 Sep 2009 07:45
by Shalex
The new build of dotConnect for MySQL 5.40.44 is available for download now.
It can be downloaded from http://www.devart.com/dotconnect/mysql/download.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://www.devart.com/forums/viewtopic.php?t=15925 .

Posted: Thu 03 Dec 2009 12:53
by dilbert
CommandTimeout method is now implemented. However it has no effect (in dotConnect for MySQL 5.50.57). The connection is always lost after 30 seconds.

Posted: Fri 04 Dec 2009 13:35
by AndreyR
Thank you for the report, we have reproduced the problem.
I will let you know as soon as it is fixed.

Posted: Mon 14 Dec 2009 10:17
by AndreyR
The problem is fixed, the fix will be included in the nearest build.

Posted: Fri 15 Jan 2010 16:27
by AndreyR
The new build is available. Please let me know if the error persists.