internal async static Task <bool> IsFullTable(string InitialCatalog, string tableName) { _maxRows = await Task.Run(() => TableTools.GetRowsCount(InitialCatalog, tableName)); if (TableTools.CurrentRowsCount >= _maxRows) { return(true); } if (TableTools.CurrentRowsCount + TableTools.startRows >= _maxRows) { return(true); } return(false); }
public async Task <int> GetRowsCount(string InitialCatalog, string tableName) { return(await Task.Run(() => TableTools.GetRowsCount(InitialCatalog, tableName))); }