EntityCommand.ExecuteNonQueryAsync Method
Namespace:
System.Data.Entity.Core.EntityClient
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | ExecuteNonQueryAsync() | (Inherited from DbCommand.) |
![]() | ExecuteNonQueryAsync(CancellationToken) | Asynchronously executes the command and discard any results returned from the command(Overrides DbCommand.ExecuteNonQueryAsync(CancellationToken).) |
EntityCommand.ExecuteNonQueryAsync Method (CancellationToken)
Asynchronously executes the command and discard any results returned from the command
[DebuggerStepThroughAttribute] public override Task<int> ExecuteNonQueryAsync( CancellationToken cancellationToken )
Parameters
- cancellationToken
-
Type:
System.Threading.CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Return Value
Type: System.Threading.Tasks.Task<Int32>A task that represents the asynchronous operation. The task result contains the number of rows affected.