EntitySqlHelper.GetSingle method
namespace: Serenity.Data assembly: Serenity.Net.Services
Gets the single entity returned by executing the query. The values are loaded into the loader row of the query.
public static bool GetSingle(this SqlQuery query, IDbConnection connection)
| parameter | description |
|---|---|
| query | The query. |
| connection | The connection. |
Return Value
True if any results returned from data reader
Exceptions
| exception | condition |
|---|---|
| InvalidOperationException | Query returned more than one result! |
See Also
- class SqlQuery
- class EntitySqlHelper