We are getting the result of dynamic GroupJoin query as IQueryable and we have to perform Union or concat on IQueryable. Below is the code which calls dynamic groupjoin function which return result as IQueryable and we are using the link How do I do a left outer join with Dynamic Linq? to get IQueryable result returned by GroupJoin
IQueryable leftOuterJoin= destination.AsQueryable().GroupJoin(source.AsQueryable(), "new(outer.SecurityID as SecurityID,outer.CUSIP as CUSIP)", "new(inner.SecurityID as SecurityID,inner.CUSIP as CUSIP)",
"new (outer as source, group as destination )");
and
var rightOuterJoin= source.AsQueryable().GroupJoin(destination, "new(outer.SecurityID as SecurityID,outer.CUSIP as CUSIP)",
"new(inner.SecurityID as SecurityID,inner.CUSIP as CUSIP)",
"new (outer as source, group as destination )");
We need to perform something like below
var fullOuterJoin = leftOuterJoin.Union(rightOuterJoin);
help will be appreciated.