EntityConnectionExtensions.List<TRow> method (1 of 3)
namespace: Serenity.Data assembly: Serenity.Net.Entity
Lists all records. This method selects only the table fields, and no foreign / calculated fields. Use other overloads if you want to select different set of fields.
public static List<TRow> List<TRow>(this IDbConnection connection)
where TRow : class, IRow, new()
parameter | description |
---|---|
TRow | The type of the row. |
connection | The connection. |
Return Value
All records
See Also
- class TRow
- interface IRow
- class EntityConnectionExtensions
EntityConnectionExtensions.List<TRow> method (2 of 3)
namespace: Serenity.Data assembly: Serenity.Net.Entity
Lists the records, allowing the caller to specify criteria and set of fields to select through an editQuery callback.
public static List<TRow> List<TRow>(this IDbConnection connection, Action<SqlQuery> editQuery)
where TRow : class, IRow, new()
parameter | description |
---|---|
TRow | The type of the row. |
connection | The connection. |
editQuery | The edit query callback. |
Return Value
List of records matching the edited query.
See Also
- class TRow
- class SqlQuery
- interface IRow
- class EntityConnectionExtensions
EntityConnectionExtensions.List<TRow> method (3 of 3)
namespace: Serenity.Data assembly: Serenity.Net.Entity
Lists the records matching specified where criteria. This method selects only the table fields, and no foreign / calculated fields. Use other overloads if you want to select different set of fields.
public static List<TRow> List<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
Records matching the specified criteria
See Also
- class TRow
- interface ICriteria
- interface IRow
- class EntityConnectionExtensions