diff --git a/src/Simple.OData.Client.Core/ODataClient.Internals.cs b/src/Simple.OData.Client.Core/ODataClient.Internals.cs index f6a6e932..aca4addf 100644 --- a/src/Simple.OData.Client.Core/ODataClient.Internals.cs +++ b/src/Simple.OData.Client.Core/ODataClient.Internals.cs @@ -344,7 +344,7 @@ private async Task EnrichWithMediaPropertiesAsync(AnnotatedEntry entry, IEnumera { var entityMediaPropertyName = mediaProperties.FirstOrDefault(x => !entry.Data.ContainsKey(x)); entityMediaPropertyName ??= FluentCommand.AnnotationsLiteral; - if (entry.Annotations != null) + if (Session.Settings.IncludeAnnotationsInResults && entry.Annotations != null) { await GetMediaStreamValueAsync(entry.Data, entityMediaPropertyName, entry.Annotations.MediaResource, cancellationToken).ConfigureAwait(false); }