Exemple #1
0
        public static DASDataTable ExecuteQueryForDataTable(this DAS connection, string query)
        {
            var table = new DASDataTable(connection);

            connection.FillDataTable(table, query);
            return(table);
        }
        private DataTable executeStatementForDataTable(string selectStatement)
        {
            var dataTable = new DASDataTable(_databaseObject);

            try
            {
                _databaseObject.FillDataTable(dataTable, selectStatement);
                return(dataTable);
            }
            catch (Exception e)
            {
                var t = dataTable.GetErrors();
                Console.WriteLine(e);
                throw;
            }
        }