Skip to content

Enable commandtimeout override#821

Merged
sjh37 merged 1 commit intosjh37:masterfrom
dsfr-be:CommandTimeoutOverride
Nov 29, 2023
Merged

Enable commandtimeout override#821
sjh37 merged 1 commit intosjh37:masterfrom
dsfr-be:CommandTimeoutOverride

Conversation

@dsfr-be
Copy link
Contributor

@dsfr-be dsfr-be commented Nov 29, 2023

With this adjustment, it is possible to override the default commandtimeout at runtime which can be necessary for specific stored procedures.

_context.Database.CommandTimeout = 300;
return _context.spMyHeavyStoredProcedure.FirstOrDefault();

@sjh37 sjh37 merged commit c296b87 into sjh37:master Nov 29, 2023
@sjh37
Copy link
Owner

sjh37 commented Nov 29, 2023

Send me your email, I will give you a free commercial licence as a thank you :-)

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

Successfully merging this pull request may close these issues.

2 participants