Expression<Func<Account, IEnumerable<Attachment>>> attachments = t => attachmentBuilder.Populate("COMPANYNAME", t.AccountID.ToString());
var q = cxt.Accounts.Select(e => new
{
AccountID = e.AccountID,
Description = e.AccountDescription,
});
What I ideally want is to Join attachments Expression (results) to q (accounts- IEnumerable) so I can filter by AccountID which is dynamically passed from UI "t.AccountID.ToString()" I dont want to use sub query as I have loads of attachments so I am looking for a more Join type solution with Dynamic Linq and Expression trees with passing the account id dynamically. Thanks,