Beispiel #1
0
        public MongoDbQueryableWrapper(IMongoCollection <T> collection)
        {
            var queryable = collection?.AsQueryable() ?? throw new ArgumentNullException(nameof(collection));

            _provider  = new MongoDbQueryableWrapperProvider(queryable.Provider);
            Expression = queryable.Expression;
        }
Beispiel #2
0
 public MongoDbQueryableWrapper(MongoDbQueryableWrapperProvider provider, Expression expression)
 {
     _provider  = provider ?? throw new ArgumentNullException(nameof(provider));
     Expression = expression ?? throw new ArgumentNullException(nameof(expression));
 }