Method InsertScalarAsync
| Improve this Doc View SourceInsertScalarAsync(DbSelectStatement, Boolean, CancellationToken)
Executes query to insert scalar values into table.
Declaration
protected abstract Task<InsertScalarResult> InsertScalarAsync(DbSelectStatement statement, bool outputIdentity, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
DbSelectStatement | statement | The SQL SELECT statement. |
System.Boolean | outputIdentity | Specifies whether newly generated identity value should be returned. |
System.Threading.CancellationToken | cancellationToken | The async cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<InsertScalarResult> | The InsertScalarResult. |