EntityConnectionExtensions.Count<TRow> method (1 of 2)

namespace: Serenity.Data   assemblySerenity.Net.Entity

Gets count of all records.

public static int Count<TRow>(this IDbConnection connection)
    where TRow : class, IRow, new()
parameter description
TRow The type of the row.
connection The connection.

Return Value

Number of records in the table

See Also


EntityConnectionExtensions.Count<TRow> method (2 of 2)

namespace: Serenity.Data   assemblySerenity.Net.Entity

Gets count of records matching a specified criteria.

public static int Count<TRow>(this IDbConnection connection, ICriteria where)
    where TRow : class, IRow, new()
parameter description
TRow The type of the row.
connection The connection.
where The where criteria.

Return Value

Number of records matching the specified criteria

See Also