Command Timeout
Steve0212a opened this issue · 1 comments
Steve0212a commented
I am setting the command timeout on the database context as such:
dbContext.Database.SetCommandTimeout(3600);
However, your software is not honoring it. In the StoredProcBuilder constructor, you get a command by callling CreateCommand(). This apparently does not honor the timeout set above. Could you please add this code to set the timeout on the command based on the timeout on the context?
// added for command timeout handlilng
var commandTimeout = ctx.Database.GetCommandTimeout();
if (commandTimeout.HasValue)
cmd.CommandTimeout = commandTimeout.Value;
I am attaching a print screen illustrating the issue.
Thank you.
Steve0212a commented
Thanks.