LiteDB
LiteDB copied to clipboard
How do I index and query a collection of subdocuments using Expressions?
Are these correct? :
ordersCollection.EnsureIndex(order => order.Products[0].Name)
and
ordersCollection
.Query()
.Include(order => order.Products)
.Where(order => order.Products[0].Name == "Awesome Product")
And also, what if Order.Products is mapped to a Product class using DbRef?