EntityCommand.ExecuteNonQueryAsync Method

 

Namespace:   System.Data.Entity.Core.EntityClient
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodExecuteNonQueryAsync()

(Inherited from DbCommand.)

System_CAPS_pubmethodExecuteNonQueryAsync(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.