/// <summary> /// Gets the minimum value of a property in a mongodb collections that is satisfying the filter. /// </summary> /// <typeparam name="TDocument">The document type.</typeparam> /// <typeparam name="TValue">The type of the value used to order the query.</typeparam> /// <param name="filter">A LINQ expression filter.</param> /// <param name="minValueSelector">A property selector to order by ascending.</param> /// <param name="partitionKey">An optional partition key.</param> public virtual TValue GetMinValue <TDocument, TValue>(Expression <Func <TDocument, bool> > filter, Expression <Func <TDocument, TValue> > minValueSelector, string partitionKey = null) where TDocument : IDocument <TKey> { return(MongoDbReader.GetMinValue <TDocument, TKey, TValue>(filter, minValueSelector, partitionKey)); }