I have a following line of code:
var availableClients = (Controller.ListClientsForCurrentUser() as DataTable).AsEnumerable();
and I want to
Are you missing
using System.Linq;
by any chance? Once you've got an EnumerableRowCollection<TRow>
it should be fine. (The main problem using a DataTable
if if you forget to call AsEnumerable
, but that isn't a problem here.)
Check that there are
using System.Data;
using System.Linq;
and that you are referencing System.Core
and System.Data