diff --git a/ZeroLevel.SqlServer/Contracts/IDbProvider.cs b/ZeroLevel.SqlServer/Contracts/IDbProvider.cs index ec3738a..df9d8bc 100644 --- a/ZeroLevel.SqlServer/Contracts/IDbProvider.cs +++ b/ZeroLevel.SqlServer/Contracts/IDbProvider.cs @@ -17,6 +17,6 @@ namespace ZeroLevel.SqlServer void ExecuteNonResult(IEnumerable commands); int ExecuteNonResult(string query); int ExecuteNonResult(string query, DbParameter[] par); - void LazySelect(string query, DbParameter[] par, Func readHandler); + void LazySelect(string query, DbParameter[] par, Func readHandler, int timeout); } } diff --git a/ZeroLevel.SqlServer/SqlDbProvider.cs b/ZeroLevel.SqlServer/SqlDbProvider.cs index 1ef406d..a756c26 100644 --- a/ZeroLevel.SqlServer/SqlDbProvider.cs +++ b/ZeroLevel.SqlServer/SqlDbProvider.cs @@ -186,7 +186,7 @@ namespace ZeroLevel.SqlServer #endregion #region LazySelect - public void LazySelect(string query, DbParameter[] par, Func readHandler) + public void LazySelect(string query, DbParameter[] par, Func readHandler, int timeout = Timeout) { using (var connection = _factory.CreateConnection()) {