LINQ extension methods not available for EnumerableRowCollection

前端 未结 2 1427
傲寒
傲寒 2021-01-18 08:41

I have a following line of code:

var availableClients = (Controller.ListClientsForCurrentUser() as DataTable).AsEnumerable();

and I want to

2条回答
  •  庸人自扰
    2021-01-18 09:26

    Check that there are

    using System.Data;
    using System.Linq;
    

    and that you are referencing System.Core and System.Data

提交回复
热议问题