I tried a few variants:
entity.FirstOrDefaultAsync(x => string.Equals(x.Id, Id, StringComparison.OrdinalIgnoreCase));
entity.FirstOrDefaultAsync(x => x.Id.Equals(Id, StringComparison.OrdinalIgnoreCase));
Also tried ToUpper() method:
var IdUpper = Id.ToUpper();
entity.FirstOrDefaultAsync(x => x.Id.ToUpper() == idUpper);
But all solution throw error:
System.InvalidOperationException: The LINQ expression could not be translated
Is there a solution that would support EF Core for Cosmos Db?