Overload | Description |
---|---|
ExecuteNonQueryAsync() | An asynchronous version of System.Data.Common.DbCommand.ExecuteNonQuery, which executes a SQL statement against a connection object. Invokes System.Data.Common.DbCommand.ExecuteNonQueryAsync(System.Threading.CancellationToken) with CancellationToken.None. (Inherited from System.Data.Common.DbCommand) |
ExecuteNonQueryAsync(CancellationToken) | This is the asynchronous version of System.Data.Common.DbCommand.ExecuteNonQuery. Providers should override with an appropriate implementation. The cancellation token may optionally be ignored. The default implementation invokes the synchronous System.Data.Common.DbCommand.ExecuteNonQuery method and returns a completed task, blocking the calling thread. The default implementation will return a cancelled task if passed an already cancelled cancellation token. Exceptions thrown by System.Data.Common.DbCommand.ExecuteNonQuery will be communicated via the returned Task Exception property. Do not invoke other methods and properties of the DbCommand object until the returned Task is complete. (Inherited from System.Data.Common.DbCommand) |