Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/304.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 使用C将SQL查询动态转换为Mongo Shell scritp#_C#_Sql Server_Mongodb_Mongo Shell - Fatal编程技术网

C# 使用C将SQL查询动态转换为Mongo Shell scritp#

C# 使用C将SQL查询动态转换为Mongo Shell scritp#,c#,sql-server,mongodb,mongo-shell,C#,Sql Server,Mongodb,Mongo Shell,我们正在从SQL Server升级到MongoDB。我们所有的写操作都发生在SQL+Mongo上,读操作都发生在Mongo上 根据我们的应用程序架构,我们将一些SQL查询存储在一个表中,并根据需要执行它们 由于我们现在正在对Mongo执行所有读取操作,我想知道是否有办法在运行时将SQL查询转换为Mongo 范例 select field1, field2 from mytable where ((TagId = 11232 OR TagId = 40923) AND (TagId = 4467

我们正在从SQL Server升级到MongoDB。我们所有的写操作都发生在SQL+Mongo上,读操作都发生在Mongo上

根据我们的应用程序架构,我们将一些SQL查询存储在一个表中,并根据需要执行它们

由于我们现在正在对Mongo执行所有读取操作,我想知道是否有办法在运行时将SQL查询转换为Mongo

范例

select field1, field2 from mytable where ((TagId = 11232 OR TagId = 40923) AND (TagId = 4467 OR TagId = 3245))

因为这看起来像是一个不错的功能请求,所以没有类似的工具。

因为这看起来像是一个不错的功能请求,所以没有类似的工具