Example #1
0
        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);
        }
Example #2
0
 public async Task <int> GetRowsCount(string InitialCatalog, string tableName)
 {
     return(await Task.Run(() => TableTools.GetRowsCount(InitialCatalog, tableName)));
 }
Example #3
0
 public void DataFilter(string filter)
 {
     TableTools.DataFilter(filter);
 }
Example #4
0
 public bool SearchRow(string columnName, string value, int selectRowId, out int index)
 {
     return(TableTools.SearchRow(columnName, value, selectRowId, out index));
 }
Example #5
0
 public void ChangeRow()
 {
     TableTools.ChangeRow();
 }
Example #6
0
 public void DeleteRow(int index)
 {
     TableTools.DeleteRow(index);
 }
Example #7
0
 public async Task <DataTable> FillingTable(string InitialCatalog)
 {
     return(await Task.Run(() => TableTools.FillingTable(InitialCatalog)));
 }
Example #8
0
 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)));
 }
Example #9
0
 private static void ClearStaticData()
 {
     TableTools.ClearCurrentTable();
 }
 internal static void Disconnect()
 {
     _connectionStr = default;
     TableTools.ClearCurrentTable();
 }