Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给定一个;
Expression<Func<T, bool>> criteria;
是否可以IMongoQuery 使用驱动程序将其转换为?
IMongoQuery
看起来它可能在某个地方的 QueryBuilder 中,但我看不到它。
这是一个例子:
public class C { public int Id; public int N; } Expression<Func<C, bool>> criteria = x => x.N == 2; var query = Query<C>.Where(criteria);