SQL
select * from A ,B inner join A.field1 = B.field11
where B.name1 ="aaa" or B.name2 ="aaa"
QueryExpression
var query = new QueryExpression("A");
query.ColumnSet.AllColumns = true;
var linkEntity = new LinkEntity("A", "B", "field11", "field11", JoinOperator.Inner);
linkEntity.LinkCriteria.AddCondition(new ConditionExpression("name1", ConditionOperator.Equal, "aaa"));
linkEntity.LinkCriteria.AddCondition(new ConditionExpression("name2", ConditionOperator.Equal, "aaa"));
query.LinkEntities.Add(linkEntity);
var result = service.RetrieveMultiple(query);
var result = service.RetrieveMultiple(query);