Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public GroupAccountsDocumentService(DocumentServiceSettings settings) : base(settings)
 {
 }
Ejemplo n.º 3
0
 public UserInformationDocumentService(DocumentServiceSettings settings) : base(settings)
 {
 }
Ejemplo n.º 4
0
 public GroupRepository(DocumentServiceSettings settings, string partitionKey)
     : base(settings, partitionKey)
 {
 }