MongoDB with C# - query with dynamically generated predicate

后端 未结 2 1480
南笙
南笙 2021-01-25 05:49

I am having trouble querying a MongoDB database using a predicate which is dynamically generated.

The document structue i am trying to query on is:

{ 
          


        
2条回答
  •  不思量自难忘°
    2021-01-25 06:11

    Not sure it's a solution for mongodb, but could you try to use AsExpandable() coming from linqkit (made by the same guy as PredicateBuilder).

    LinqKit (and more info about AsExpandable() and relation with PredicateBuilder) can be found here

提交回复
热议问题