entity framework - how to pass linq query in datatable -


i want collect rows , pass datatable. linq query:

var queryall = in db.tblmake select ; datatable dt = new datatable(); 

how can pass queryall datatable dt?

if try :

 ienumerable<datarow> queryall = in db.tblmake.asenumerable() select all; 

comes error:

 cannot implicitely convert type 'system.collection.generic.ienumerable<workshop2s.models.tblmake>' 'system.collection.generic.ienumerable<system.data.datarow>' 


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -