Table of Contents

Method ExecuteScalar

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

ExecuteScalar()

Calls ExecuteScalar on the underlying command.

public object? ExecuteScalar()

Returns

object

The value returned from the method.

ExecuteScalar<T>()

Calls ExecuteScalar on the underlying command.

public T ExecuteScalar<T>()

Returns

T

The value returned from the method.

Type Parameters

T

The type expected.

ExecuteScalar<T>(Func<object?, T>)

Calls ExecuteScalar on the underlying command.

public T ExecuteScalar<T>(Func<object?, T> transform)

Parameters

transform Func<object, T>

Returns

T

The value returned from the method.

Type Parameters

T

The type expected.