public async Task CanHandleEntityTypeWithStringBasedPartition() { Expression <Func <DocumentDbFoo1, string> > expression = x => x.MyStringCategory; var configurations = GetBaseConfigurations <DocumentDbFoo1>((MemberExpression)expression.Body); TableStorageRepository.Configure(typeof(DocumentDbFoo1), configurations); const string id = "3"; await TableStorageRepository.AddAsync(new DocumentDbFoo1 { Id = id, Name = "Foo 1", MyStringCategory = "cat 1" }, null); await TableStorageRepository.UpdateAsync(new DocumentDbFoo1 { Id = id, Name = "Foo 1 v2", MyStringCategory = "cat 1" }, null); try { var item = (await GetByIdAsync <DocumentDbFoo1>(id)).Single(); item.Name.ShouldBe("Foo 1 v2"); } finally { TableStorageRepository.DeleteAllAsync <DocumentDbFoo1>(null).GetAwaiter().GetResult(); } }
public void Dispose() { TableStorageRepository.DeleteAllAsync <DocumentDbFoo3>(null).GetAwaiter().GetResult(); }
private async Task RemoveAll() { await TableStorageRepository.DeleteAllAsync <DocumentDbFoo3>(null); }
public async Task <Result <TableStorageRepositoryStatus> > DeleteAllAsync(IList <PolicyServerMap> models) { return(await _repository.DeleteAllAsync(models)); }