mbdavid / LiteDB

LiteDB - A .NET NoSQL Document Store in a single data file
http://www.litedb.org
MIT License
8.62k stars 1.25k forks source link

[BUG] List<Type> Query.Contains No Working #2354

Closed melinyi closed 1 year ago

melinyi commented 1 year ago

`Class A { public int Id { get; set; } public string Hash { get; set; } public List Bs{ get; set; } = new List(); }

Class B { public string Name{ get; set; } public string Url{ get; set; } }

query.Where.Add(Query.Contains("Bs", "my word"))

var Collection = DB.ILiteCollection.Find(query).ToList(); `

return no result,no working

melinyi commented 1 year ago

SELECT $ FROM A where Bs[*].name any like "%xx%";

melinyi commented 1 year ago

ok