.Select<T>()
Selects all records in a table, or a specific record, from the database.
Method Syntax
await db.Select<T>(resource)
Arguments
| Arguments | Description |
|---|
thing required | The table name or a RecordId to select. |
cancellationToken optional | The cancellationToken enables graceful cancellation of asynchronous operations. |
Example usage
var people = await db.Select<Person>("person");
var person = await db.Select<Person>(("person", "h5wxrf2ewk8xjxosxtyc"));
var person = await db.Select<Person>(new StringRecordId("person:h5wxrf2ewk8xjxosxtyc"));
var person = await db.Select<Person>(("person", new Guid("8424486b-85b3-4448-ac8d-5d51083391c7")));