Method | Description | |
---|---|---|
Consumers ( ) : System |
Initialises a new instance of the Consumers class.
|
|
Consumers ( string connectionString ) : System |
Initialises a new instance of the Consumers class.
|
|
Create ( |
Create a new consumer.
|
|
Get ( string id ) : Database.Consumer |
Retrieve a consumer from the database.
|
|
List ( int offset, int limit ) : IList |
List all consumers by name. If there are no results with the given range, an empty list should be returned. |
Method | Description | |
---|---|---|
EnsureIndexesExist ( ) : void |
Ensure the relevant indexes exist.
|
|
InitialiseClass ( ) : void |
Initialise the class.
|
public Consumers ( string connectionString ) : System | ||
connectionString | string | The connection string. |
return | System |
public Create ( |
||
newConsumer | The |
|
return | Database.Consumer |
public Get ( string id ) : Database.Consumer | ||
id | string | The identifier of the consumer to retrieve. |
return | Database.Consumer |
public List ( int offset, int limit ) : IList |
||
offset | int | The amount to offset the results by. Minimum of 0. |
limit | int | The maximum number of results to return. Maximum of 100. |
return | IList |