EntityConnectionExtensions.ExistsById<TRow> method
Checks if the record with specified ID exists.
public static bool ExistsById<TRow>(this IDbConnection connection, object id)
where TRow : class, IRow, IIdRow, new()
| parameter | description |
|---|---|
| TRow | The type of the row. |
| connection | The connection. |
| id | The identifier. |
Return Value
True if the record exists.
See Also
- interface IRow
- interface IIdRow
- class EntityConnectionExtensions