Table of Contents

Method Scalar

Namespace
Open.Database.Extensions
Assembly
Open.Database.Extensions.Core.dll

Scalar<T>()

Reads one value, the first column of the first row, as a T, and returns the scalar definition.

public ScalarDbQuery<T> Scalar<T>()

Returns

ScalarDbQuery<T>

The scalar definition.

Type Parameters

T

The type of the value.

Remarks

The result is immutable and has no connection yet, so it can be held in a static field; give it a source with Using and run it with ExecuteScalarAsync. It keeps the timeout of this definition.