开发者

Linq to SQL Contains Method Throwing Unsupported Overload Exception

开发者 https://www.devze.com 2023-01-19 11:18 出处:网络
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 p

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

精彩评论

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