Method DeleteAsync
| Improve this Doc View SourceDeleteAsync<TSource, TTarget>(DataSet<TSource>, DbTable<TTarget>, CandidateKey, CancellationToken)
Executes query to delete database table data from DataSet.
Declaration
protected abstract Task<int> DeleteAsync<TSource, TTarget>(DataSet<TSource> source, DbTable<TTarget> target, CandidateKey targetKey, CancellationToken ct)
where TSource : class, IEntity, new()
where TTarget : class, IEntity, new()
Parameters
| Type | Name | Description |
|---|---|---|
| DataSet<TSource> | source | The source DataSet. |
| DbTable<TTarget> | target | The target database table. |
| CandidateKey | targetKey | The key of target database table. |
| System.Threading.CancellationToken | ct | The async cancellation token. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Int32> | Number of rows deleted. |
Type Parameters
| Name | Description |
|---|---|
| TSource | Entity type of source DataSet. |
| TTarget | Entity type of target database table. |