Esempio n. 1
0
 public Task <int> DeleteAsync(
     CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Task.Factory.StartNew(
                () =>
     {
         cancellationToken.ThrowIfCancellationRequested();
         using (_db.Lock())
             return _innerQuery.Delete();
     }, cancellationToken, _taskCreationOptions,
                _taskScheduler ?? TaskScheduler.Default));
 }
Esempio n. 2
0
 public virtual void TearDown()
 {
     connection.RunAsync(testTable.Delete()).Wait();
 }
 public virtual void TearDown()
 {
     connection.Run(testTable.Delete());
 }