I have a result object in litedb with a collection property, as below:
public class Result
{
public int Id { get; set; }
public ICollection<Entity> ExtractedEntities { get; set; }
}
public class Entity
{
public string Value { get; set; }
public int Id { get; set; }
}
Is it possible to index the properties of the entity class so that I can do something like:
collection.Find(r => r.ExtractedEntities.Any(ee => ee.Value == "test" && ee.Id == 1));
Thanks