DbConnectorCommand.QueryFirstOrDefault<T> method (1 of 2)

Executes the query, converting the first record to the specified type.

public T QueryFirstOrDefault<T>()

Remarks

Returns default(T) if no records are returned.

See Also


DbConnectorCommand.QueryFirstOrDefault<T> method (2 of 2)

Executes the query, converting the first record to the specified type with the specified delegate.

public T QueryFirstOrDefault<T>(Func<IDataRecord, T> map)

Remarks

Returns default(T) if no records are returned.

See Also