I am using ServiceStack OrmLite SqlServer v3.9.71 and have the following connection string:
<add key="ConnStr" value="Data Source=my-db;Initial Catalog=Users;Integrated Security=SSPI;Connection Timeout=666"/>
and I use the following to run a query that takes 2-3 minutes to return:
using (Db) { var result = new ResultDto(); Parallel.Invoke( () => { result.StatOne = Db.Dictionary<DateTime, int>(query1); }, () => { result.StatTwo = Db.Dictionary<DateTime, int>(query2); } ); return result; }
When you put a breakpoint on the Db object, I see that the connection time is not 666 , but I canβt figure out how to set / increase the command timeout every time I run the above time after 30 seconds, which is the default timeout .
Any ideas?
MaYaN source share