Beispiel #1
0
 /// <summary>
 /// Gets a fluent find interface of the custom model log documents based on filter and the find options.
 /// </summary>
 /// <typeparam name="TDocument">your custom document model.</typeparam>
 /// <param name="filter">filter expression.</param>
 /// <param name="options">options for finding documents.</param>
 /// <returns>A fluent find iterface of custom model log documents.</returns>
 public IFindFluent <TDocument, TDocument> GetCustomLogs <TDocument>(Expression <Func <TDocument, bool> > filter = null, FindOptions options = null) =>
 _mongoDBContext.Get(filter, options);