This is a migrated thread and some comments may be shown as answers.

Broken Connection

1 Answer 35 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike
Top achievements
Rank 1
Mike asked on 23 Oct 2015, 12:11 AM

Hi,

 

I have a win forms application which loads up a unit of work when the form loads. This is due to having drop downs bound to the unit of work etc. Now if i leave the screen open for an extended period of time and then start adding data and go to save, the connection state is then broken and i tried re-opening a connection which i got an exception.

 Due to having some entities in the unit of work and cache, is there a way to re-open the connection without creating a new unit of work OR copying the entities from the context to the new context???? 

 

Cheers

Mike

1 Answer, 1 is accepted

Sort by
0
Doroteya
Telerik team
answered on 28 Oct 2015, 03:29 PM
Hi Mike,

Thank you for contacting us.

In general, you could adjust the ActiveConnectionTimeout property of the connection pool configuration in a way that satisfies the usage you expect.

In the specific situation, however, I was unable to completely understand the situation on your side. In order to troubleshoot further, could you provide me with the text message of the error you observe and the code of the form, which produces the error?

I am looking forward to your feedback.

Regards,
Doroteya
Telerik
 
Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
Tags
Data Access Free Edition
Asked by
Mike
Top achievements
Rank 1
Answers by
Doroteya
Telerik team
Share this question
or