I have two IEnumerables
called IEnumerable<TBL_Country>
and IEnumberable<TBL_City>
which their table definitions came from my ORM and I would like to execute the following Expression Function in order to join the IEnumerables but it's not possible.
Any Idea!
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";