using System.Collections.Generic;
static void Main(string[] args)
List<Key> keys = new List<Key>()
new Key { IdA = Guid.NewGuid(), IdB = Guid.NewGuid(), IdC = DateTime.Now.AddDays(-1) },
new Key { IdA = Guid.NewGuid(), IdB = Guid.NewGuid(), IdC = DateTime.Now },
new Key { IdA = Guid.NewGuid(), IdB = Guid.NewGuid(), IdC = DateTime.Now.AddDays(1) },
new Key { IdA = Guid.NewGuid(), IdB = Guid.NewGuid(), IdC = DateTime.Now.AddDays(2) },
string baseUrl = "https://example.com/api/data";
string filter = string.Join(" or ", keys.Select(k => $"(IdA eq {k.IdA} and IdB eq {k.IdB} and IdC eq {k.IdC:o})"));
UriBuilder uriBuilder = new UriBuilder(baseUrl);
uriBuilder.Query = $"$filter={filter}";
Console.WriteLine(uriBuilder.Uri);
public Guid IdA { get; set; }
public Guid IdB { get; set; }
public DateTime IdC { get; set; }