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);
}
に 'System.Collections.Generic.IEnumerable
cannot convert from 'System.Collections.Generic.IEnumerable' to 'System.Collections.Generic.IEnumerable'
私はさまざまな方法を試してみましたが、私はそれをどのように修正できるのか分かりません。
完璧、ありがとう、私はどこに問題があるのか知っていたが、キャストする方法を知っていなかった – kosnkov
すてきな男、これがスタックトップを作る! – MvcCmsJon