使用Lambda表达式和在节流使用Lambda表达式和在节流
我有一个查询,我想基于一个字段的值来限制的结果,如果它包含在值列表。
public List<Client> GetClientsByExtractIds(List<Guid> extractIds)
{
AJGDMSStagingContext context = new AJGDMSStagingContext(STAGING_CONNECTION_STRING);
return context.Clients.ToList();
}
所以它需要是这样的:Clients.ExtractId.Contains(ExtractIds)
一种选择我是获得所有客户端,然后只需通过所有的人都骑自行车在内存,但我宁愿直接从得到它D B。
什么是“限制器”? – SLaks 2011-05-02 18:11:22
你的数据来自何方? – SLaks 2011-05-02 18:11:41
限制器....在(extractId1,extractId2,extractId3) – 2011-05-02 18:43:11