FakeDatabaseTable<T> class

A fake database table.

public sealed class FakeDatabaseTable<T> : IEnumerable<T>
parameter description
T The type of record stored by the table.

Public Members

name description
Add(…) Adds a record to the table.
AddRange(…) Adds records to the table.
GetEnumerator() Enumerates the records in the table.
GetNextAutoId() Gets the next automatic ID for this table.
RemoveWhere(…) Removes records from the table that match the specified condition.
SetNextAutoId(…) Sets the next automatic ID for this table.
UpdateWhere(…) Updates records from the table that match the specified condition.

Remarks

The owning database must be locked when any method of this class is called.

The first auto ID used by the table is arbitrary to help prevent bugs related to predictable auto IDs.

See Also