public class Objekt
{
public Foo[] FooList{ get; set; }
}
public class Foo
{
public string Value{ get; set; }
}
In my query RavenDb, I want to match each Objekt having an entry in FooList which have its string property "Item" starting by any string in a table of string.
tableStrings is a string[].
var query = session.Query<Objekt>();
query = query.Where(x=> tableStrings.Any(y => x.FooList.Any(s => s.Value.StartsWith(y))));
I have this error : "Can't extract value from expression of type: Parameter"
For information, if i use just the first item of tableStrings, it is ok :
query = query.Where(x => x.FooList.Any(y => y.Value.StartsWith(tableStrings.First())));