IEnumerable<datarow> Query = from P in db.Coustomer.AsEnumerable() where (P.CoustomerCode == Code && P.Report == report) select P; DataTable dt = query.CopyToDataTable<datarow>();
Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<datalayer.coustomer>' to 'System.Collections.Generic.IEnumerable<system.data.datarow>'. An explicit conversion exists (are you missing a cast?)
IEnumerable<datarow> Query = (from P in db.Coustomer.AsEnumerable() where (P.CoustomerCode == Code && P.Report == report) select P).Cast<datarow>();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)