When using IDbConnection.ExecuteSql how do I set the Command Timeout?
IDbConnection db = ConnectionFactory.OpenDbConnection();
db.ExecuteSql("...");
If I use the IDbCommand.ExecuteSql ( See below ) method I can set the Command Timeout, but I get a bunch of warnings about deprecated methods.
IDbCommand comm = db.CreateCommand()
comm.CommandTimeout = 240;
comm.ExecuteSql("...");