class first
{
private int? firstID;
}
class second
{
private int secondID;
private int secondField;
}
public override Expression<Func<first, bool>> FirstFilter()
{
Contex db = new Contex();
List<second> list = (from p in db.second select p).ToList();
return b => list.Select(p => p.secondID).Contains(b.firstID);
}
cannot convert from 'System.Collections.Generic.IEnumerable' to 'System.Collections.Generic.IEnumerable'
我已經嘗試了很多不同的方式,但我只是不知道我該如何解決它。
完美,非常感謝,我知道哪裏出了問題,但din't知道怎麼投 – kosnkov 2011-01-08 13:55:54