假如我有一个sql语句select * from News where fatherId in {1,2,3}
用linq怎么转换呀!好像有一个是Containts,但是我的fatherId字段为整形
应该怎么写呀
man
Hi.. try:
var query=from n in News
where new int[]{1,2,3}.Contains(n.fatherId)
select n;
http://blog.csdn.net/q107770540/archive/2010/03/17/5387946.aspx
Best Regards,
If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".