Skip to content

EntitySqlHelper.GetFirst method

Gets the first entity returned by executing the query. The result is loaded into the loader row of the query.

public static bool GetFirst(this SqlQuery query, IDbConnection connection, 
    IReadOnlyDictionary<string, object?>? parameters = null)
parameter description
query The query.
connection The connection.
parameters Values that override the query's parameters for this execution.

Return Value

True if any rows were returned.

See Also