I have the following use of Linq from a datatable:
var query = dt.AsEnumerable();
query = dt.AsEnumerable().Where(log => log.Field<byte>("Day") == day).Take(10);
The following error:
Cannot implicitly convert type
'System.Collections.Generic.IEnumerable<System.Data.DataRow>'
to'System.Data.EnumerableRowCollection<System.Data.DataRow>'
. An explicit conversion exists (are you missing a cast?)
I have tried take(10) - Please can you advise?