Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Timeout #11

Closed
Steve0212a opened this issue Apr 3, 2018 · 1 comment
Closed

Command Timeout #11

Steve0212a opened this issue Apr 3, 2018 · 1 comment

Comments

@Steve0212a
Copy link

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.

2018-04-03_0949

verdie-g added a commit that referenced this issue Apr 3, 2018
@Steve0212a
Copy link
Author

Thanks.

@verdie-g verdie-g closed this as completed Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants