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

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

public T QuerySingle<T>()

Remarks

Throws InvalidOperationException if no records are returned, or if more than one record is returned.

See Also


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

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

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

Remarks

Throws InvalidOperationException if no records are returned, or if more than one record is returned.

See Also