我有两个IEnumerables
调用IEnumerable<TBL_Country>
,IEnumberable<TBL_City>
它们的表定义来自我的 ORM,我想执行以下表达式函数以加入 IEnumerables,但这是不可能的。任何想法!
IEnumerable<TBL_COUNTRY> country = new IEnumerable<TBL_Country>();
IEnumerable<TBL_COUNTRY> city = new IEnumerable<TBL_CITY>();
Expression<Func<TBL_COUNTRY,TBL_CITY,bool>> func =
(p,q) => p.fk_city_id = q.pk_city_id & p.name = "SomeName";