public DocumentDbRepository(IDocumentDbConfigurationOptions configuration) { var resources = DocumentDbResources.CreateResources(configuration); Client = resources.DocumentClient; DocumentCollection = resources.DocumentCollection; }
public DocumentDbRepository(string cosmosDatabase, IDocumentDbConfiguration configuration) { var resources = DocumentDbResources.CreateResources(configuration, typeof(T).Name); Client = resources.DocumentClient; DocumentCollection = resources.DocumentCollection; }
public DocumentDbRepository(IDocumentDbConfiguration configuration) { var resources = DocumentDbResources.CreateResources(configuration, typeof(T).Name); Client = resources.DocumentClient; DocumentCollection = resources.DocumentCollection; database = configuration.DatabaseName; }