C#Asp.net中的RSQLRest到MongoDb查询转换器

问题描述

基本上,我在控制器中有一个GetById方法,因此基于id可以过滤出数据,如您所见。

                                               Comment                                          sentiment
0     seni bahasa pemerintah new normal protokol kes...  Sentiment(polarity=0.1431818181818182,subject...
1     we need thanos to bring balance to the our uni...  Sentiment(polarity=0.0,subjectivity=0.0)
2     terserah lah mau ngomong apa pusing denger dia...  Sentiment(polarity=0.0,subjectivity=0.0)
3     mirip protokol di parkiran motor helm hilang r...  Sentiment(polarity=0.6,subjectivity=1.0)
4     ga kebayang kita hidup dijaman yg serba salah ...  Sentiment(polarity=0.3181818181818182,subject...
                                                ...                                                ...
4966  klu pake sarungtangan ke mall megang ini itu m...  Sentiment(polarity=0.25,subjectivity=0.3125)
4967  bukannya ini orang yg bikin mesjid dg konsep i...  Sentiment(polarity=0.0,subjectivity=0.0666666...
4968  ribet bnget cuma di tahap implementasi akan su...  Sentiment(polarity=-0.3333333333333333,subjec...
4969  mal dibuka bahasa adaptasi tau g sih covid ini...  Sentiment(polarity=0.21250000000000002,subjec...
4970  kenapa kita pilih new normal kalau ternyata ad...  Sentiment(polarity=0.053856749311294756,subje...

我的方法中还有一个参数作为字符串(rsql)。基本上,我的目标是基于我要过滤数据的RSQL查询。因此,是否有任何NuGet或自动将Rsql转换为MongoDB查询内容。因此,我可以将查询传递给过滤器,它将给出所需的输出

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)