public DocumentRepository(DocumentServiceSettings settings, string partitionKey, Func <string> collectionNameFactory = null, Expression <Func <T, object> > idNameFactory = null) { _client = settings.Client; _databaseId = settings.DatabaseId; _partitionKey = partitionKey; _database = new AsyncLazy <Database>(async() => await GetOrCreateDatabaseAsync()); _collection = new AsyncLazy <DocumentCollection>(async() => await GetOrCreateCollectionAsync()); _collectionName = collectionNameFactory != null?collectionNameFactory() : typeof(T).Name; _repositoryIdentityProperty = TryGetIdProperty(idNameFactory); }
public GroupAccountsDocumentService(DocumentServiceSettings settings) : base(settings) { }
public UserInformationDocumentService(DocumentServiceSettings settings) : base(settings) { }
public GroupRepository(DocumentServiceSettings settings, string partitionKey) : base(settings, partitionKey) { }