EntityConnectionExtensions.ExistsById<TRow> method
namespace: Serenity.Data assembly: Serenity.Net.Entity
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 record exists
See Also
- interface IRow
- interface IIdRow
- class EntityConnectionExtensions