SyntaxFix
Write A Post
Hire A Developer
Questions
You can use DbContext.Database.CommandTimeout = 180; // seconds
DbContext.Database.CommandTimeout = 180; // seconds
It's pretty simple and no cast required.