开发者

Linq macro substitution

开发者 https://www.devze.com 2022-12-20 20:01 出处:网络
I can build up a sql string by concatenatinga string i.e. String fieldname =”Company”; String tableName= 开发者_StackOverflow社区“Address”;

I can build up a sql string by concatenating a string i.e.



String fieldname =”Company”;

String tableName= 开发者_StackOverflow社区“Address”;

 “select  “+fieldname+” from “+tableName

How can I do this with Linq?

TIA

Stuart


Scott Gu talks about Dynamic linq here

0

精彩评论

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