/// <summary> /// Load documents with the specified key prefix /// </summary> public Task <IEnumerable <T> > LoadStartingWithAsync <T>(string keyPrefix, int start = 0, int pageSize = 25) { return(AsyncDatabaseCommands.StartsWithAsync(keyPrefix, start, pageSize) .ContinueWith(task => (IEnumerable <T>)task.Result.Select(TrackEntity <T>).ToList())); }
/// <summary> /// Load documents with the specified key prefix /// </summary> public Task <IEnumerable <T> > LoadStartingWithAsync <T>(string keyPrefix, string matches = null, int start = 0, int pageSize = 25, string exclude = null, RavenPagingInformation pagingInformation = null) { return(AsyncDatabaseCommands.StartsWithAsync(keyPrefix, matches, start, pageSize, exclude: exclude, pagingInformation: pagingInformation) .ContinueWith(task => (IEnumerable <T>)task.Result.Select(TrackEntity <T>).ToList())); }