Table of Contents

Method SingleOrDefault

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

SingleOrDefault()

Reads the only mapped row.

public T? SingleOrDefault()

Returns

T

The single row, or default if the query returns no rows.

Exceptions

InvalidOperationException

The query returns more than one row.

See Also