/// <inheritdoc/> void IProviderExecutor.Clear(IPersistDescriptor descriptor) { Prepare(); commandProcessor.RegisterTask(new SqlPersistTask(descriptor.ClearRequest, null)); using (var context = new CommandProcessorContext()) commandProcessor.ExecuteTasks(context); }
/// <inheritdoc/> void IProviderExecutor.Store(IPersistDescriptor descriptor, IEnumerable <Tuple> tuples) { Prepare(); foreach (var tuple in tuples) { commandProcessor.RegisterTask(new SqlPersistTask(descriptor.StoreRequest, tuple)); } using (var context = new CommandProcessorContext()) commandProcessor.ExecuteTasks(context); }