PredicateBuilder を使用して where 句を生成しています
var locationFilter = PredicateBuilder.True<dbCompanyLocation>();
locationFilter = locationFilter.And(s => s.IsPrimary == true && s.State == practiceState);
var companyPredicate = PredicateBuilder.True<dbCompany>();
companyPredicate = companyPredicate.And(c => c.dbCompanyLocations.Where(locationFilter));
次のエラーが表示されます。誰かがこれを助けることができますか、それとも何か間違っていますか。
インスタンス引数: 'System.Data.Linq.EntitySet' から 'System.Linq.IQueryable' に変換できません