Table of Contents

Method FirstOrDefault

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

FirstOrDefault()

Reads the first mapped row.

public T? FirstOrDefault()

Returns

T

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

Remarks

Rows after the first are not mapped. Add an ORDER BY to the SQL when "first" must be deterministic.

See Also