Esempio n. 1
0
 /// <summary>
 /// Gets a collections for the type TDocument with a partition key.
 /// </summary>
 /// <typeparam name="TDocument">The document type.</typeparam>
 /// <typeparam name="TKey">The type of the primary key.</typeparam>
 /// <param name="partitionKey">The collection partition key.</param>
 /// <returns></returns>
 public virtual IMongoCollection <TDocument> GetCollection <TDocument, TKey>(string partitionKey = null)
     where TDocument : IDocument <TKey>
     where TKey : IEquatable <TKey>
 {
     return(MongoDbReader.GetCollection <TDocument, TKey>(partitionKey));
 }