-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
You can add this test (into TestFetchXmlToQueryExpression) to check:
[Fact]
public void TestFetchXmlParallelLinkEntity()
{
using (var context = new Xrm(orgAdminUIService))
{
var fetchXml =
@"<fetch>
<entity name='opportunity'>
<link-entity name='account' from='accountid' to='customerid'>
</link-entity>
</entity>
</fetch>";
var result = orgAdminUIService.RetrieveMultiple(new FetchExpression(fetchXml));
Assert.Equal(2, result.Entities.Count);
fetchXml =
@"<fetch>
<entity name='opportunity'>
<link-entity name='contact' from='contactid' to='customerid'>
</link-entity>
</entity>
</fetch>";
result = orgAdminUIService.RetrieveMultiple(new FetchExpression(fetchXml));
Assert.Empty(result.Entities);
fetchXml =
@"<fetch>
<entity name='opportunity'>
<link-entity name='account' from='accountid' to='customerid'>
</link-entity>
<link-entity name='contact' from='contactid' to='customerid'>
</link-entity>
</entity>
</fetch>";
result = orgAdminUIService.RetrieveMultiple(new FetchExpression(fetchXml));
Assert.Empty(result.Entities);
}
}
It cann't be a result in this case.
Assert.Empty(result.Entities);
It's possible anybody can fix it?
Greeting
AnyTick
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels