pull/1/head
a.bozhenov 5 years ago
parent 47d8d6329d
commit 12f9e7beb3

@ -17,6 +17,6 @@ namespace ZeroLevel.SqlServer
void ExecuteNonResult(IEnumerable<ZSqlCommand> commands);
int ExecuteNonResult(string query);
int ExecuteNonResult(string query, DbParameter[] par);
void LazySelect(string query, DbParameter[] par, Func<DbDataReader, bool> readHandler);
void LazySelect(string query, DbParameter[] par, Func<DbDataReader, bool> readHandler, int timeout);
}
}

@ -186,7 +186,7 @@ namespace ZeroLevel.SqlServer
#endregion
#region LazySelect
public void LazySelect(string query, DbParameter[] par, Func<DbDataReader, bool> readHandler)
public void LazySelect(string query, DbParameter[] par, Func<DbDataReader, bool> readHandler, int timeout = Timeout)
{
using (var connection = _factory.CreateConnection())
{

Loading…
Cancel
Save

Powered by TurnKey Linux.