How would one do this in llblgen
select col1,col2
From table1 T
inner join table2 T2
on T.col3 = T2.col3
where T.col3 = 'whatever' and T2.col3 = 'whatever'
I am using
RelationPredicateBucket bucket = new RelationPredicateBucket();
// relations
bucket.Relations.Add(AccountEntity.Relations.InvoiceEntityUsingAccountId);
// filters
bucket.PredicateExpression.Add(AccountFields.AccountId == AccountId);
bucket.PredicateExpression.AddWithAnd(InvoiceFields.InvoiceId == InvoiceId);
This filters for the account but not the invoice