开发者

Linq to SQL Contains Method Throwing Unsupported Overload Exception

I have a List and each Filter object has a property called "Id". I want to fetch all the records from my database using Linq to SQ开发者_StackOverflow社区L that contains those ids. The List is not part of the database it is just an independent list.


not very clear question. however this is what, i suppose, u r trying to do

from c in datacontext.TableName where
IndependentList.Contains(c=>c.id)
select c
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜