예제 #1
0
 /// <summary>
 /// Gets a collections for a potentially partitioned document type.
 /// </summary>
 /// <typeparam name="TDocument">The document type.</typeparam>
 /// <param name="document">The document.</param>
 /// <returns></returns>
 public virtual IMongoCollection <TDocument> HandlePartitioned <TDocument>(TDocument document)
     where TDocument : IDocument <Guid>
 {
     return(MongoDbReader.HandlePartitioned <TDocument, Guid>(document));
 }
예제 #2
0
 /// <summary>
 /// Gets a collections for a potentially partitioned document type.
 /// </summary>
 /// <typeparam name="TDocument">The document type.</typeparam>
 /// <typeparam name="TKey">The type of the primary key.</typeparam>
 /// <param name="document">The document.</param>
 /// <returns></returns>
 public virtual IMongoCollection <TDocument> HandlePartitioned <TDocument, TKey>(TDocument document)
     where TDocument : IDocument <TKey>
     where TKey : IEquatable <TKey>
 {
     return(MongoDbReader.HandlePartitioned <TDocument, TKey>(document));
 }