System.Data.Common.DbCommand.Cancel()

Here are the examples of the csharp api class System.Data.Common.DbCommand.Cancel() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

11 Examples 7

1. Example

Project: EDDiscovery
Source File: SQLiteCommandED.cs
public override void Cancel() { InnerCommand.Cancel(); }

2. Example

Project: Glimpse
Source File: GlimpseDbCommand.cs
public override void Cancel()
        {
            InnerCommand.Cancel();
        }

3. Example

Project: ALinq
Source File: AccessDbConnection.cs
public override void Cancel()
        {
            source.Cancel();
        }

4. Example

Project: ALinq
Source File: Connection.cs
public override void Cancel()
        {
            source.Cancel();
        }

5. Example

Project: referencesource
Source File: DBCommand.cs
internal void CancelIgnoreFailure() {
            // This method is used to route CancellationTokens to the Cancel method.
            // Cancellation is a suggestion, and exceptions should be ignored
            // rather than allowed to be unhandled, as there is no way to route
            // them to the caller.  It would be expected that the error will be
            // observed anyway from the regular method.  An example is cancelling
            // an operation on a closed connection.
            try
            {
                Cancel();
            } catch(Exception) {
            }
        }

6. Example

Project: NServiceKit
Source File: ProfiledDbCommand.cs
public override void Cancel()
        {
            _cmd.Cancel();
        }

7. Example

Project: openpetra
Source File: Access.cs
public void CancelFillOperation()
        {
            FDataAdapter.SelectCommand.Cancel();
        }

8. Example

Project: SmartStoreNET
Source File: CachingCommand.cs
public override void Cancel()
		{
			_command.Cancel();
		}

9. Example

Project: DNTProfiler
Source File: ProfiledDbCommand.cs
public override void Cancel()
        {
            InternalCommand.Cancel();
        }

10. Example

Project: nhibernate-core
Source File: AbstractBatcher.cs
public void CancelLastQuery()
		{
			try
			{
				if (_lastQuery != null)
				{
					_lastQuery.Cancel();
				}
			}
			catch (HibernateException)
			{
				// Do not call Convert on HibernateExceptions
				throw;
			}
			catch (Exception sqle)
			{
				throw Convert(sqle, "Could not cancel query");
			}
		}

11. Example

Project: anycmd
Source File: SqlMapperAsync.cs
public static async Task<GridReader> QueryMultipleAsync(this IDbConnection cnn, CommandDefinit/n ..... /n //View Source file for more details /n }