Interface to support reading entities from the backing store
IRepositoryRead
00 Remarks
In this architecture there is a seperate read and write interface but often this pattern has just the one interface for both functions
Type Parameters
| Name | Description |
|---|---|
TEntity | The key-identified type of entity we are reading |
TKey | The type of the key |
01 Syntax
Microsoft.VisualBasic.ComponentModel.DataSourceModel.Repository.IRepositoryRead`2
02 Methods
03 Members
Exists(
`0)Does a record exist in the repository identified by this key
Parameters
| Name | Type | Description |
|---|---|---|
key | `0 | The unique identifier of the entity we are looking for |
GetByKey(
`0)Get the entity uniquely identified by the given key
Parameters
| Name | Type | Description |
|---|---|---|
key | `0 | The unique identifier to use to get the entity |
GetWhere(
Func(Of `1, Boolean))Get a set of entities from the repository that match the where clause
Parameters
| Name | Type | Description |
|---|---|---|
clause | Func(Of `1, Boolean) | A function to apply to filter the results from the repository |
GetAll
Get all of this type of thing from the repository
Remarks
returns an IQueryable so this request can be filtered further