开发者

Retrieve rows, return only user selected columns from the list

I need to retrieve columns which will be decided by user at run-time. Lets assume EmpTable > EmpID, EmpName, EmpDesignation

All column will be listed in list. And then User will be select the col开发者_开发问答umn which he wanna to be export.

Can we achieve using Linq? Any help would be greatly appreciated.


String myQuery = "select "; 

// build your query with selected items
var result = datacontext.ExecuteQuery(myQuery);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜