public async Task RemoveRangeAsync(IEnumerable <TIdentifier> identifiers) { var imp = TableDataServiceExtensions.GetImplementation <ICommandRangeRepository <TEntity> >(service.CreateWrapper().Repository); var es = ToEntities(identifiers); await imp.RemoveAsync(es); await wrapper.CommitAsync(); }
public async Task <IEnumerable <TModel> > EditRangeAsync(IEnumerable <TModel> models) { var imp = TableDataServiceExtensions.GetImplementation <ICommandRangeRepository <TEntity> >(service.CreateWrapper().Repository); var es = ToEntities(models, UpsertType.Update); var entities = await imp.EditAsync(es); await wrapper.CommitAsync(); return(ToModels(entities)); }