Exemplo n.º 1
0
        private DataTable FillData(DbCommand command, string tableName)
        {
            var dataTable = new DataTable(tableName);

            using (var adapter = new AdapterFactory(_server.Engine).CreateAdapter())
            {
                adapter.SelectCommand = command;
                adapter.Fill(dataTable);
                return(dataTable);
            }
        }