Skip to content

Commit

Permalink
Update src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsVocabulary…
Browse files Browse the repository at this point in the history
…Annotation.cs

Co-authored-by: John Gathogo <[email protected]>
  • Loading branch information
marabooy and gathogojr authored Apr 19, 2021
1 parent 87fba3e commit a88c44c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ private IEdmVocabularyAnnotatable ComputeTarget()
container = this.schema.FindEntityContainer(targetSegments[0]);
if (container != null)
{
// Using the methods here results in a much faster lookup as it used a dictionary instead of using the list of container elements.
// Using the methods here results in a much faster lookup as it uses a dictionary instead of using the list of container elements.

IEdmEntityContainerElement containerElement = container.FindEntitySetExtended(targetSegments[1])
?? container.FindSingletonExtended(targetSegments[1]) as IEdmEntityContainerElement;
if (containerElement != null)
Expand Down

0 comments on commit a88c44c

Please sign in to comment.