📜  以动态方式查询 mongodb 集合 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:55.751000             🧑  作者: Mango

代码示例1
# You can use the string-based syntax, since the expression doesn't offer any advantages with dynamic anyway:

var cursor = db.GetCollection("foo")
               .Find(Builders.Filter.Eq("_id", someId));