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))); }
public void DataFilter(string filter) { TableTools.DataFilter(filter); }
public bool SearchRow(string columnName, string value, int selectRowId, out int index) { return(TableTools.SearchRow(columnName, value, selectRowId, out index)); }
public void ChangeRow() { TableTools.ChangeRow(); }
public void DeleteRow(int index) { TableTools.DeleteRow(index); }
public async Task <DataTable> FillingTable(string InitialCatalog) { return(await Task.Run(() => TableTools.FillingTable(InitialCatalog))); }
public async Task <DataTable> GetNewTable(string InitialCatalog, string tableName, int startRow = 0, int maxRows = 1000) { return(await Task.Run(() => TableTools.GetNewTable(InitialCatalog, tableName, startRow, maxRows))); }
private static void ClearStaticData() { TableTools.ClearCurrentTable(); }
internal static void Disconnect() { _connectionStr = default; TableTools.ClearCurrentTable(); }