Show / Hide Table of Contents

Method InsertScalarAsync

| Improve this Doc View Source

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

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest