First, I would like to thanks CodeFirstStoredProcs
team for their effort and collaboration to solve this issue.
I guess, as mentioned earlier, the command timeout values might have been defaulted to 30 seconds inside CodeFirstStoredProcs
library.
With their new release (version 2.6),they have added ‘command timeout’ parameter to the CallStoredProc<>
method, that helped me set a default value for commandtimeout
and finally solved my issue.
To process nearly 70K records in my case, I set CommandTimeout = 0
to CallStoredProc<>
method. This adds an infinite waiting time to execute stored
procedure.
Thanks once again for CodeFirstStoredProcs
team. :)