Setting Timeout in Entity Model
Posted: Thu 15 Dec 2011 21:25
I'v built an entity model for my database using Entity Developer. Everything is running great. However, the default command timeout property for my connection is the default of 30 seconds. This is fine for most of my operations, however, I have a couple of stored procedures that I've mapped to methods that can take a lot longer than 30 seconds to run.
1. Is there a way I can change the timeout for those operations without affecting other "normal" queries?
2. If I set the timeout to 0, will the code wait until the stored procedure finishes and never timeout?
Tony
1. Is there a way I can change the timeout for those operations without affecting other "normal" queries?
2. If I set the timeout to 0, will the code wait until the stored procedure finishes and never timeout?
Tony