You'll want to inject your own DbContext for SharpRepository to use, then you can set the Command timeout however you like before it gets injected. Here is some info that might help.
https://fairwaytech.com/2013/02/sharprepository-configuration/
Check out the "Entity Framework and Sharing the DbContext" section
https://stackoverflow.com/questions/10549640/how-to-set-commandtimeout-for-dbcontext
General info on setting the Command timeout.
Hope that helps.
Jeff
You'll want to inject your own DbContext for SharpRepository to use, then you can set the Command timeout however you like before it gets injected. Here is some info that might help.
https://fairwaytech.com/2013/02/sharprepository-configuration/
Check out the "Entity Framework and Sharing the DbContext" section
https://stackoverflow.com/questions/10549640/how-to-set-commandtimeout-for-dbcontext
General info on setting the Command timeout.
Hope that helps.
Jeff
From: sharprepository@googlegroups.com <sharprepository@googlegroups.com> on behalf of Arie Zaks <ar...@cliclap.com>
Sent: Thursday, June 1, 2017 3:34:18 AM
Hi there,
Is there a way to set the Command timeout without changing the base code? there must be an easy way that I have missed :-)
Thanks in advance
Arie
--
You received this message because you are subscribed to the Google Groups "SharpRepository" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sharprepository+unsubscribe@googlegroups.com.
To post to this group, send email to sharprepository@googlegroups.com.